/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ── Global ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  background: #f4f4f1;
  margin: 0;
  padding: 0;
}

/* ── Site nav ── */
.site-nav {
  background: #111;
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 1px solid #222;
}

.site-nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  margin-right: 10px;
}

.site-nav-brand:hover { color: #fff; opacity: 0.85; }

.site-nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 6px;
}

.site-nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}

.site-nav-link {
  color: #999;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 5px 9px;
  border-radius: 5px;
}

.site-nav-link:hover { color: #fff; background: #222; }

.site-nav-auth {
  margin-left: auto;
  flex-shrink: 0;
}

.site-nav-auth-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 5px 12px;
  border: 1px solid #333;
  border-radius: 5px;
  white-space: nowrap;
}

.site-nav-auth-link:hover { color: #fff; border-color: #555; }

/* Hamburger — hidden on desktop */
.site-nav-hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.site-nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #aaa;
  border-radius: 1px;
}

.site-nav-hamburger:hover span { background: #fff; }

/* Mobile nav */
@media (max-width: 640px) {
  .site-nav-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: 50px;
    align-items: center;
  }

  .site-nav-brand {
    margin-right: 0;
    padding: 16px 0;
  }

  .site-nav-hamburger {
    display: flex;
  }

  .site-nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid #1e1e1e;
  }

  .site-nav-menu--open {
    display: flex;
  }

  .site-nav-links {
    flex-direction: column;
    gap: 0;
    flex: none;
  }

  .site-nav-link {
    font-size: 0.9rem;
    padding: 11px 2px;
    border-radius: 0;
    border-bottom: 1px solid #1a1a1a;
    color: #bbb;
  }

  .site-nav-link:hover { background: transparent; color: #fff; }

  .site-nav-auth {
    margin-left: 0;
    padding-top: 12px;
  }

  .site-nav-auth-link {
    border: none;
    padding: 0 2px;
    font-size: 0.875rem;
    color: #888;
  }

  .site-nav-auth-link:hover { border-color: transparent; color: #ccc; }
}

/* ── Phone-only upgrade banner ── */
.phone-upgrade-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 10px 20px;
}

.phone-upgrade-banner-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.phone-upgrade-banner-text {
  color: #78350f;
  flex: 1;
  min-width: 0;
}

.phone-upgrade-banner-link {
  color: #92400e;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.phone-upgrade-banner-link:hover { text-decoration: underline; }

/* ── Dev toolbar (development only) ── */
.dev-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: #1a1200;
  border-top: 1px solid #f59e0b;
  font-size: 0.75rem;
  font-family: monospace;
}

.dev-bar-label {
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.dev-bar-info {
  color: #d4a;
  color: #fcd34d;
  flex: 1;
}

.dev-bar-btn {
  background: none;
  border: 1px solid #f59e0b;
  color: #f59e0b;
  font-size: 0.72rem;
  font-family: monospace;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.dev-bar-btn:hover {
  background: #f59e0b;
  color: #000;
}

body:has(.dev-bar) {
  padding-bottom: 36px;
}

/* ── Site footer ── */
.site-footer {
  background: #111;
  border-top: 1px solid #222;
  padding: 20px;
  margin-top: 48px;
}

.site-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #555;
}

.site-footer-link {
  color: #555;
  text-decoration: none;
}

.site-footer-link:hover {
  color: #888;
}

/* ── Page container (buildings index, violations index) ── */
.page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header--flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-back-link {
  font-size: 0.82rem;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 6px;
}

.page-back-link:hover { color: #1a1a1a; }

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
}

/* ── Narrow page container (forms) ── */
.page-container--narrow {
  max-width: 480px;
}

/* ── Generic form styles ── */
.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 0.875rem;
  padding: 10px 14px 10px 28px;
  margin-bottom: 20px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.form-submit-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 4px;
}
.form-submit-btn:hover { background: #1d4ed8; }

/* ── Building show ── */
.building-show {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.building-header {
  margin-bottom: 28px;
}

.building-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.building-address-sub {
  font-size: 0.875rem;
  color: #888;
  margin: -6px 0 10px;
}

.building-name-form {
  display: flex;
  gap: 8px;
  margin: 6px 0 12px;
}

.building-name-input {
  flex: 1;
  padding: 7px 12px;
  font-size: 0.875rem;
  border: 1px solid #d0d0cc;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  min-width: 0;
  max-width: 360px;
}

.building-name-input:focus {
  outline: none;
  border-color: #2563eb;
}

.building-name-btn {
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.building-name-btn:hover { background: #333; }

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

.meta-tag {
  background: #e8e8e4;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  display: inline-block;
}

.meta-tag--link {
  background: #dbeafe;
  color: #1d4ed8;
}

.meta-tag--link:hover { background: #bfdbfe; }

/* ── Building map ── */
.map-pin {
  width: 18px;
  height: 18px;
  background: #2563eb;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.map-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 0;
}

.map-popup .leaflet-popup-content {
  margin: 12px 14px;
}

.map-popup .leaflet-popup-tip-container { display: none; }

.map-popup-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.map-popup-link {
  font-size: 0.78rem;
  color: #2563eb;
  text-decoration: none;
}

.map-popup-link:hover { text-decoration: underline; }

.building-map {
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid #e2e2de;
}

@media (max-width: 600px) {
  .building-map { height: 160px; margin-bottom: 20px; }
}

/* ── Summary cards ── */
.summary-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.summary-card {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 8px;
  padding: 16px 24px;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.summary-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
}

.summary-label {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-card--accent {
  border-color: #fca5a5;
  background: #fff5f5;
}

.summary-card--accent .summary-value { color: #b91c1c; }
.summary-card--accent .summary-label { color: #b91c1c; opacity: 0.7; }

.summary-card--muted {
  opacity: 0.65;
}

.summary-card--clean .summary-value { color: #16a34a; }
.summary-card--clean .summary-label { color: #16a34a; opacity: 0.75; }

/* ── Section heading ── */
.section-heading {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 14px;
}

/* ── Tenant prompt ── */

.tenant-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 13px 16px;
  background: #f0f7ff;
  border: 1.5px solid #bdd7f7;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.tenant-prompt:hover {
  background: #e4f0fd;
  border-color: #2563eb;
}

.tenant-prompt-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  white-space: nowrap;
}

.tenant-prompt-text {
  font-size: 0.9rem;
  color: #333;
  flex: 1;
}

.tenant-prompt-arrow {
  font-size: 1rem;
  color: #2563eb;
  flex-shrink: 0;
}

/* ── Take action ── */
.take-action-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.take-action {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e8e8e4;
}

.take-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .take-action-cards { grid-template-columns: 1fr; }
}

.action-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e8e8e4;
  border-radius: 10px;
  background: #fafaf8;
}

.action-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.action-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.action-card-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
}

.action-card-legal {
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 600;
  margin-top: -2px;
}

.action-card-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  background: #2563eb;
  color: #fff;
  align-self: flex-start;
}
.action-card-btn:hover { background: #1d4ed8; }

.action-card-btn--secondary {
  background: #f0f0ec;
  color: #333;
  border: 1px solid #ddd;
}
.action-card-btn--secondary:hover { background: #e4e4e0; }

.action-card-btn--report {
  background: #f0f0ec;
  color: #333;
  border: 1px solid #ddd;
}
.action-card-btn--report:hover { background: #e4e4e0; }

.action-card--connect {
  border-color: #bdd7f7;
  background: #f0f7ff;
}

.action-card-btn--connect {
  background: #2563eb;
  color: #fff;
}
.action-card-btn--connect:hover { background: #1d4ed8; }

.take-action-secondary {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #888;
}

.take-action-secondary a {
  color: #888;
  text-decoration: underline;
}

/* ── Violation groups ── */
.violations-search-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.violations-search-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.92rem;
  border: 1px solid #d0d0cc;
  border-radius: 7px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  box-sizing: border-box;
}

.violations-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.violations-search-btn {
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}

.violations-search-btn:hover { background: #1d4ed8; }

mark.search-highlight {
  background: #fef08a;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.violations-search-empty {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  padding: 32px 0;
}

.violation-group {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 8px;
  margin-bottom: 12px;
}

.violation-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0ec;
}

.violation-text {
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.violation-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fine-badge {
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.fine-per {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.75rem;
}

.fine-badge--sm {
  padding: 1px 6px;
  font-size: 0.75rem;
}

.count-badge {
  background: #dc2626;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Occurrences ── */
.violation-occurrences {
  padding: 0 16px;
}

.occurrence-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f3;
  font-size: 0.82rem;
  color: #555;
}

.occurrence-row:last-child {
  border-bottom: none;
}

.occ-date {
  min-width: 100px;
  font-variant-numeric: tabular-nums;
}

.occ-cap {
  color: #888;
}

.occ-floor {
  color: #aaa;
}

.no-violations {
  color: #888;
  font-style: italic;
}

.building-empty-state {
  text-align: center;
  padding: 40px 24px 24px;
  color: #555;
}

.building-empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.building-empty-body {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

/* ── Violations index ── */
.page-subtitle {
  color: #888;
  font-size: 0.9rem;
  margin: 4px 0 28px;
}

.vindex-rank {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ccc;
  min-width: 32px;
  flex-shrink: 0;
  padding-top: 1px;
}

.vindex-body {
  flex: 1;
  min-width: 0;
}

.vindex-statute {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.occ-building-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.82rem;
}

.occ-building-link:hover {
  text-decoration: underline;
}

/* ── Collapsible extra occurrences ── */
.more-occurrences {
  border-top: 1px dashed #e8e8e4;
}

.violation-group-signal {
  border-top: 1px solid #f0f0ec;
  padding: 10px 16px 12px;
}

.vg-occurrences-details {
  border-top: 1px solid #f0f0ec;
}

.vg-occurrences-toggle {
  display: block;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: #999;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.vg-occurrences-toggle::-webkit-details-marker { display: none; }
.vg-occurrences-toggle:hover { color: #555; }

.more-toggle {
  display: block;
  padding: 7px 0;
  font-size: 0.8rem;
  color: #2563eb;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.more-toggle::-webkit-details-marker {
  display: none;
}

.more-toggle:hover {
  color: #1d4ed8;
}

/* ── Violation groups expand ── */
.more-violation-groups {
  margin-top: 0;
}

.more-violation-groups-toggle {
  display: block;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  list-style: none;
  user-select: none;
  text-align: center;
  border-top: 1px solid #e8e8e4;
  border-bottom: 1px solid #e8e8e4;
  margin-bottom: 4px;
}

.more-violation-groups-toggle::-webkit-details-marker { display: none; }
.more-violation-groups-toggle:hover { color: #1d4ed8; }

/* ── Home page ── */
.home-hero {
  background: #111;
  color: #fff;
  padding: 64px 20px 72px;
}

.home-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.home-headline {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.home-subtext {
  font-size: 1.05rem;
  color: #aaa;
  line-height: 1.6;
  margin: 0 0 36px;
}

.home-search-form {
  display: flex;
  gap: 10px;
}

.home-search-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  min-width: 0;
  box-sizing: border-box;
}

.home-search-input::placeholder {
  color: #aaa;
}

.home-search-btn {
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-search-btn:hover {
  background: #1d4ed8;
}

.home-stats {
  background: #1a1a1a;
  padding: 20px 24px;
}

.home-stats-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.home-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.home-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.home-stat-label {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-stat-divider {
  width: 1px;
  height: 36px;
  background: #333;
  flex-shrink: 0;
}

.home-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* ── Spotlights ── */
.home-spotlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
}

@media (max-width: 600px) {
  .home-spotlights { grid-template-columns: 1fr; }
  .home-headline { font-size: 1.7rem; }
  .home-search-form { flex-direction: column; }
  .home-hero { padding: 44px 16px 52px; }
  .home-body { padding: 36px 16px 48px; }
  .home-stats { padding: 16px 12px; }
  .home-stat-number { font-size: 1.2rem; }
  .home-stat-label { font-size: 0.65rem; }
  .home-stat-divider { height: 28px; }
  .building-show { padding: 20px 14px 48px; }
  .page-container { padding: 24px 14px 48px; }
  .summary-card { padding: 12px 16px; min-width: 110px; }
  .summary-value { font-size: 1.35rem; }
}

.spotlight-card {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 8px;
  overflow: hidden;
}

.spotlight-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0ec;
}

.spotlight-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin: 0;
}

.spotlight-link {
  font-size: 0.78rem;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.spotlight-link:hover {
  text-decoration: underline;
}

.spotlight-card .violation-occurrences {
  padding: 0 16px;
}

.spotlight-card .occurrence-row {
  justify-content: space-between;
}

/* ── Feature columns ── */
.home-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 700px) {
  .home-features { grid-template-columns: 1fr; gap: 24px; }
}

.home-feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.home-feature-body {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ── Tenant Reports ── */
.tenant-reports-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e8e8e4;
}

.tenant-reports-label {
  font-size: 0.78rem;
  color: #aaa;
  margin: -8px 0 16px;
  font-style: italic;
}

.tenant-report-list {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.tenant-report-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid #f5f5f3;
  font-size: 0.875rem;
}

.tenant-report-row:last-child {
  border-bottom: none;
}

.tenant-report-cat {
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tenant-report-mine {
  font-size: 0.72rem;
  color: #fff;
  background: #2563eb;
  border-radius: 3px;
  padding: 1px 6px;
  font-weight: 500;
}

.tenant-report-count {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.tenant-report-thanks {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.tenant-report-thanks::-webkit-details-marker {
  display: none;
}

.report-another-link {
  color: #2563eb;
}

.report-another[open] .tenant-report-thanks {
  margin-bottom: 12px;
}

.tenant-report-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #f7f7f5;
  border: 1px solid #e2e2de;
  border-radius: 8px;
}

.tenant-report-form-row {
  display: flex;
  gap: 10px;
}

.tenant-report-select {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.9rem;
  border: 1px solid #d0d0cc;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  min-width: 0;
}

.tenant-report-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.tenant-report-btn:hover {
  background: #333;
}

.report-signup-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.report-signup-body {
  font-size: 0.875rem;
  color: #1e40af;
  line-height: 1.4;
}

.report-signup-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.report-signup-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 600px) {
  .report-signup-cta { flex-direction: column; align-items: flex-start; }
}

.tenant-report-list--pending {
  border-style: dashed;
  background: #fafaf8;
}

.tenant-report-pending {
  font-size: 0.72rem;
  color: #92400e;
  background: #fef3c7;
  border-radius: 3px;
  padding: 1px 6px;
  font-weight: 500;
}

.tenant-report-main {
  flex: 1;
  min-width: 0;
}

.tenant-report-note {
  font-size: 0.8rem;
  color: #777;
  font-style: italic;
  margin: 3px 0 0;
}

/* ── Quick report buttons ── */

.quick-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.quick-report-form {
  margin: 0;
}

.quick-report-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid #d0d0cc;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
  line-height: 1.3;
  font-family: inherit;
}

.quick-report-btn:hover {
  border-color: #2563eb;
  background: #f5f8ff;
}

.quick-report-btn--done {
  background: #f0faf2;
  border-color: #6dbb85;
  color: #1a6b2a;
  cursor: default;
}

.quick-report-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.quick-report-other {
  margin-top: 6px;
}

.quick-report-other-toggle {
  font-size: 0.82rem;
  color: #888;
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
  user-select: none;
}

.quick-report-other-toggle::-webkit-details-marker { display: none; }
.quick-report-other-toggle::before { content: "+ "; }
details[open] > .quick-report-other-toggle::before { content: "− "; }

.quick-report-other .tenant-report-form {
  margin-top: 8px;
}

/* ── Inline description form ── */

.inline-description-details {
  margin-top: 6px;
}

.inline-description-summary {
  font-size: 0.8rem;
  color: #6b7280;
  cursor: pointer;
  list-style: none;
  display: inline-block;
}

.inline-description-summary::-webkit-details-marker { display: none; }

.inline-description-summary::before { content: "✏ "; }

.inline-description-form {
  margin-top: 8px;
}

.inline-description-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.85rem;
  border: 1px solid #d0d0cc;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.inline-description-input:focus {
  outline: none;
  border-color: #2563eb;
}

.inline-description-actions {
  margin-top: 6px;
}

.inline-description-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.inline-description-btn:hover { background: #1d4ed8; }

.report-cta {
  margin-top: 36px;
  padding: 24px 20px 24px 24px;
  border-left: 4px solid #2563eb;
  background: #f6f9ff;
  border-radius: 0 8px 8px 0;
}

.report-cta-text {
  margin-bottom: 16px;
}

.report-cta-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 5px;
  letter-spacing: -0.01em;
}

.report-cta-body {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.55;
  margin: 0;
}

.report-cta .tenant-report-form {
  background: transparent;
  border: none;
  padding: 0;
}

.report-cta .tenant-report-select {
  border-color: #c0cfe8;
}

.report-cta .tenant-report-btn {
  background: #2563eb;
}

.report-cta .tenant-report-btn:hover {
  background: #1d4ed8;
}

.tenant-report-count--muted {
  color: #bbb;
  font-style: italic;
}

/* ── Account upgrade ── */
.account-upgrade {
  margin-top: 16px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.account-upgrade--success {
  font-size: 0.875rem;
  color: #166534;
}

.account-upgrade-header {
  margin-bottom: 12px;
}

.account-upgrade-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
  background: #dcfce7;
  border-radius: 3px;
  padding: 1px 6px;
  margin-bottom: 6px;
}

.account-upgrade-header strong {
  display: block;
  font-size: 0.9rem;
  color: #14532d;
}

.account-upgrade-header p {
  font-size: 0.82rem;
  color: #4ade80;
  color: #166534;
  margin: 4px 0 0;
  line-height: 1.4;
}

.account-upgrade-skip-form {
  margin-top: 8px;
}

.account-upgrade-skip {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  color: #6b8cc7;
  cursor: pointer;
  text-decoration: underline;
}

.account-upgrade-skip:hover {
  color: #2563eb;
}

/* ── Inline registration ── */
.inline-reg {
  margin-top: 16px;
  padding: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.inline-reg-header {
  margin-bottom: 12px;
}

.inline-reg-header strong {
  font-size: 0.9rem;
  color: #1e3a8a;
}

.inline-reg-header p {
  font-size: 0.82rem;
  color: #3b5fc0;
  margin: 4px 0 0;
  line-height: 1.4;
}

.inline-reg-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 5px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #dc2626;
  list-style: none;
}

.inline-reg-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-reg-fields {
  display: flex;
  gap: 8px;
}

.inline-reg-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.9rem;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  min-width: 0;
}

.inline-reg-input:focus {
  outline: none;
  border-color: #2563eb;
}

.inline-reg-btn {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.inline-reg-btn:hover {
  background: #1d4ed8;
}

.inline-reg-privacy {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #4b6fad;
  line-height: 1.4;
}

.inline-reg-fine {
  font-size: 0.75rem;
  color: #6b8cc7;
  margin: 6px 0 0;
}

.inline-reg-fine a {
  color: #2563eb;
}

@media (max-width: 600px) {
  .inline-reg-fields { flex-direction: column; }
}

.tenant-report-body {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.875rem;
  border: 1px solid #d0d0cc;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.tenant-report-body::placeholder {
  color: #bbb;
}

/* ── Account page ── */
.account-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.account-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.account-identity {
  font-size: 0.875rem;
  color: #888;
  margin: 0;
}

.account-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.account-change-password-link {
  font-size: 0.8rem;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}
.account-change-password-link:hover { text-decoration: underline; }

.account-signout-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #f0f0ec;
  color: #555;
  border: 1px solid #e0e0dc;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.account-signout-btn:hover {
  background: #e4e4e0;
}

.account-home-building {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 4px;
}

.account-building-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.account-building-link:hover {
  text-decoration: underline;
}

.account-building-block {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

/* Block header: address on the left, "View & edit →" on the right */
.account-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0ec;
  font-size: 0.9rem;
}

.account-view-link {
  font-size: 0.78rem;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.account-view-link:hover { text-decoration: underline; }

.account-building-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0ec;
  font-weight: 600;
  font-size: 0.95rem;
}

.account-building-meta {
  font-size: 0.78rem;
  color: #aaa;
  font-weight: 400;
}

/* ── Signal list in account ── */
.account-signal-list {
  padding: 0 16px;
}

.account-signal-row {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f3;
}
.account-signal-row:last-child { border-bottom: none; }

.account-signal-subject {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.account-signal-what {
  font-size: 0.875rem;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-signal-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #888;
  margin-top: 3px;
}

.account-signal-date {
  color: #bbb;
  flex-shrink: 0;
}

/* Status badges */
.account-status-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}

.account-status-tag--resolved { background: #f0f0ec; color: #888; }
.account-status-tag--pending  { background: #fef3c7; color: #92400e; }

/* ── Report list in account ── */
.account-report-list {
  padding: 0 16px;
}

.account-report-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f3;
  font-size: 0.875rem;
}

.account-report-row:last-child {
  border-bottom: none;
}

.account-report-main {
  flex: 1;
  min-width: 0;
}

.account-report-cat {
  color: #1a1a1a;
  font-weight: 500;
  display: block;
}

.account-report-body {
  color: #888;
  font-style: italic;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-report-date {
  color: #bbb;
  font-size: 0.78rem;
  flex-shrink: 0;
  padding-top: 1px;
}

.account-report-note {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-section {
  margin-bottom: 40px;
}

.account-section-sub {
  font-size: 0.82rem;
  color: #999;
  margin: -8px 0 14px;
}

.account-change-details {
  margin-top: 8px;
}

.account-change-link {
  font-size: 0.8rem;
  color: #888;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.account-change-link::-webkit-details-marker { display: none; }
.account-change-link:hover { color: #444; }

.account-change-body {
  margin-top: 10px;
}

.account-signal-meta {
  font-size: 0.78rem;
  color: #666;
}

.account-signal-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.account-signal-tag--resolved { background: #f0f0ec; color: #888; }
.account-signal-tag--pending  { background: #fef3c7; color: #92400e; }

.account-current-building {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.account-no-building {
  font-size: 0.875rem;
  color: #aaa;
  margin: 0 0 14px;
}

.account-clear-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.account-clear-btn:hover { color: #555; }

.account-building-search {
  display: flex;
  gap: 8px;
}

.account-building-input {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.9rem;
  border: 1px solid #d0d0cc;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  min-width: 0;
}

.account-building-input:focus {
  outline: none;
  border-color: #2563eb;
}

.account-building-search-btn {
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.account-building-search-btn:hover { background: #333; }

.account-building-results {
  margin-top: 10px;
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 8px;
  overflow: hidden;
}

.account-building-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f3;
  font-size: 0.875rem;
}

.account-building-result-row:last-child { border-bottom: none; }

.account-result-address { color: #1a1a1a; }

.account-set-btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.account-set-btn:hover { background: #1d4ed8; }

.account-no-results {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #aaa;
}

.account-notice {
  font-size: 0.85rem;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 16px;
}

/* ── Registration ── */
.registration-page {
  max-width: 460px;
  margin: 64px auto;
  padding: 0 20px;
}

.registration-card {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 10px;
  padding: 36px 32px;
}

.registration-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.registration-sub {
  font-size: 0.88rem;
  color: #666;
  margin: 0 0 28px;
  line-height: 1.5;
}

.registration-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #dc2626;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reg-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
}

.reg-input {
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #d0d0cc;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
}

.reg-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.reg-submit {
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 4px;
}

.reg-submit:hover {
  background: #1d4ed8;
}

.reg-login-link {
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  margin: 20px 0 0;
}

.reg-login-link a {
  color: #2563eb;
  text-decoration: none;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #e2e2de;
  margin: -36px -32px 28px;
}

.auth-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: #777;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-tab:first-child { border-radius: 10px 0 0 0; }
.auth-tab:last-child  { border-radius: 0 10px 0 0; }

.auth-tab--active {
  color: #1a1a1a;
  font-weight: 600;
  border-bottom-color: #2563eb;
}

.auth-tab:hover:not(.auth-tab--active) {
  background: #f7f7f5;
  color: #333;
}

.auth-benefits {
  background: #f7f9ff;
  border: 1px solid #dbe6ff;
  border-radius: 7px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.6;
}

.auth-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li::before {
  content: "✓ ";
  color: #2563eb;
  font-weight: 700;
}

/* ── Address search autocomplete ── */
.search-field-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 200;
  overflow: hidden;
  margin-top: 2px;
}

.sug-item {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.35;
}

.sug-item:last-child { border-bottom: none; }
.sug-item:hover { background: #f0f4ff; }

.sug-name {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
}

.sug-addr {
  display: block;
  font-size: 0.83rem;
  color: #555;
}

.sug-name + .sug-addr { margin-top: 1px; }

/* ── Buildings index search ── */
.index-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 100%;
}

.index-search-form .search-field-wrap {
  flex: 1;
  min-width: 0;
}

.index-search-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.95rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  outline: none;
  min-width: 0;
}

.index-search-input:focus { border-color: #2563eb; }

.index-search-btn {
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.index-search-btn:hover { background: #1d4ed8; }

/* ── Buildings list (index) ── */
.buildings-list {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 10px;
  overflow: hidden;
}

.buildings-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 52px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  border-bottom: 1px solid #f0f0ec;
}

.ward-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
}

.ward-btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #ddd;
  border-radius: 20px;
  text-decoration: none;
  color: #555;
  background: #fff;
  transition: all 0.1s;
}

.ward-btn:hover { border-color: #999; color: #1a1a1a; }

.ward-btn--active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.building-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #f5f5f3;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.building-list-row--top {
  background: #fffdf5;
}

.building-list-row--top:hover { background: #fff8e6; }

.building-list-row:last-child { border-bottom: none; }
.building-list-row:hover { background: #fafaf8; }

.blr-rank {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ccc;
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.blr-rank--top {
  color: #b45309;
  font-size: 0.85rem;
}

.blr-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.blr-address {
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blr-name {
  font-size: 0.78rem;
  color: #888;
}

.blr-stats {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.blr-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.blr-badge--hot     { background: #fee2e2; color: #b91c1c; }
.blr-badge--total   { background: #f0f0ec; color: #666; }
.blr-badge--fine    { background: #fef3c7; color: #92400e; }
.blr-badge--reports { background: #ede9fe; color: #5b21b6; }
.blr-badge--signals { background: #dcfce7; color: #166534; }

.page-breadcrumb {
  font-size: 0.82rem;
  color: #888;
  margin: 0 0 4px;
}

.page-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.neighbors-empty {
  color: #888;
  font-size: 0.9rem;
  padding: 32px 0;
  text-align: center;
}

@media (max-width: 540px) {
  .buildings-list-header { display: none; }
  .blr-badge--total { display: none; }
  .building-list-row { gap: 10px; padding: 10px 14px; }
}

/* ── Tenant Signals ──────────────────────────────────────────────── */

.signal-summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px 6px;
  font-size: 0.8rem;
  color: #555;
  margin: 6px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-summary-count { font-weight: 600; color: #1a1a1a; }
.signal-summary-dot   { color: #bbb; }
.signal-summary-scope,
.signal-summary-duration { color: #444; }

.signal-summary-recency {
  color: #444;
}

.signal-summary-recency--stale { color: #aaa; font-style: italic; }

.signal-details {
  margin-top: 0;
}

.signal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1.5px solid #2563eb;
  border-radius: 6px;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.signal-toggle::-webkit-details-marker { display: none; }
.signal-toggle:hover { background: #eff6ff; }

.signal-details[open] .signal-toggle {
  background: #eff6ff;
  border-color: #1d4ed8;
  color: #1d4ed8;
}

.signal-details--submitted .signal-toggle {
  border-color: #d1d5db;
  color: #555;
  font-weight: 500;
}
.signal-details--submitted .signal-toggle:hover { background: #f9f9f8; }
.signal-details--submitted[open] .signal-toggle { background: #f9f9f8; border-color: #bbb; }

.signal-form-body {
  margin-top: 8px;
  padding: 12px 14px;
  background: #f0f0ec;
  border-radius: 6px;
  border: 1px solid #e4e4e0;
}

.signal-field {
  margin-bottom: 12px;
}

.signal-field:last-child { margin-bottom: 0; }

.signal-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.signal-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.signal-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #333;
  cursor: pointer;
}

.signal-option--checkbox { margin-top: 2px; }

.signal-radio,
.signal-checkbox {
  accent-color: #2563eb;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.signal-submit-btn {
  margin-top: 12px;
  padding: 7px 18px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.signal-submit-btn:hover { background: #1d4ed8; }

.signal-submitted-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #16a34a;
}

.signal-submitted-check {
  font-weight: 700;
}

.signal-submitted-check--resolved {
  color: #888;
}

.signal-submitted-check--pending {
  color: #d97706;
}

.signal-pending-badge {
  font-size: 0.7rem;
  color: #92400e;
  background: #fef3c7;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 2px;
}

.signal-edit-hint {
  color: #888;
  font-size: 0.72rem;
}

.signal-limit-notice {
  font-size: 0.78rem;
  color: #92400e;
  background: #fef3c7;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 8px 0 4px;
}

.signal-verify {
  margin-top: 24px;
  scroll-margin-top: 80px;
}

.signal-verified-confirmation {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #16a34a;
  padding: 10px 0 4px;
}

.signal-limit-gate {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 0.85rem;
  color: #1e40af;
}

.signal-limit-gate p { margin: 0 0 6px; }
.signal-limit-gate p:last-child { margin-bottom: 0; }

.signal-limit-gate-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
}


/* ── Wards ── */
.ward-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.ward-index-card {
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}

.ward-index-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-color: #ccc;
}

.ward-index-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ward-index-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  color: #888;
}

.ward-index-violations {
  color: #b91c1c;
  font-weight: 500;
}

.ward-show-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.ward-col-heading {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 12px;
}

.ward-col-sub {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .ward-show-grid { grid-template-columns: 1fr; gap: 24px; }
}

.page-header-actions {
  margin-bottom: 24px;
}

.btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f0ec;
  color: #333;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #e4e4de;
}

.walk-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.walk-controls .walk-count-picker {
  margin-bottom: 0;
}

.walk-count-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.walk-count-label {
  font-size: 13px;
  color: #666;
}

.walk-count-btn {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  background: #f0f0ec;
  text-decoration: none;
}
.walk-count-btn:hover { background: #e4e4de; }
.walk-count-btn--active {
  background: #2563eb;
  color: #fff;
}
.walk-count-btn--active:hover { background: #1d55d4; }

.walk-actions {
  margin-bottom: 20px;
}

.walk-map {
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid #e8e8e4;
}

.walk-map-pin {
  width: 28px;
  height: 28px;
  background: #2563eb;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.walk-stop-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #3a6bdb;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
}

/* ── Rights page ─────────────────────────────────────── */

.rights-page {
  max-width: 760px;
}

.rights-disclaimer {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
}

/* Chapter sections */

.rights-chapter {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e8e8e8;
}

.rights-chapter:first-of-type {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

.rights-chapter-title {
  font-size: 21px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.rights-chapter-intro {
  font-size: 15px;
  color: #444;
  line-height: 1.65;
  margin: 0 0 20px;
}

.rights-chapter-cta {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

.rights-chapter-cta a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.rights-chapter-cta a:hover { text-decoration: underline; }

/* SOS chapter variant */

.rights-chapter--sos {
  background: #f0f7ff;
  border: 1.5px solid #bdd7f7;
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 48px;
}

/* Urgent chapter variant */

.rights-chapter--urgent {
  background: #fff8f0;
  border: 1.5px solid #f5c08a;
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 48px;
}

.rights-urgent-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.rights-urgent-card {
  background: #fff;
  border: 1px solid #f5c08a;
  border-radius: 8px;
  padding: 16px 18px;
}

.rights-urgent-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.rights-urgent-detail {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
}

.rights-urgent-detail a {
  color: #b45309;
  text-decoration: none;
  font-weight: 500;
}

.rights-urgent-detail a:hover {
  text-decoration: underline;
}

/* Ordered steps list inside rights items */

.rights-steps {
  margin: 10px 0 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rights-steps li {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.rights-steps a {
  color: #2563eb;
  text-decoration: none;
}

.rights-steps a:hover {
  text-decoration: underline;
}

/* Accordion (details/summary) */

.rights-accordion {
  display: flex;
  flex-direction: column;
}

.rights-item {
  border-bottom: 1px solid #eee;
}

.rights-item:first-child {
  border-top: 1px solid #eee;
}

.rights-item-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
  gap: 12px;
}

.rights-item-summary::-webkit-details-marker { display: none; }

.rights-item-summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #888;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.15s;
}

details[open] > .rights-item-summary::after {
  content: "−";
}

.rights-item-summary:hover {
  color: #2563eb;
}

.rights-item-body {
  padding: 0 4px 20px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

.rights-item-body p {
  margin: 0 0 12px;
}

.rights-item-body p:last-child {
  margin-bottom: 0;
}

/* Shared actions */

.rights-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.rights-action {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.rights-action a { color: #2563eb; }

.rights-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.rights-link:hover { text-decoration: underline; }

/* Win cards */

.rights-win-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rights-win-card {
  background: #f8faf8;
  border: 1.5px solid #c6e0c6;
  border-radius: 10px;
  padding: 22px 24px;
}

.rights-win-amount {
  font-size: 22px;
  font-weight: 800;
  color: #1a6b2a;
  margin-bottom: 4px;
}

.rights-win-name {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.rights-win-building-link {
  color: #1a6b2a;
  text-decoration: underline;
  font-weight: 700;
}

.rights-win-body {
  font-size: 14px;
  color: #333;
  line-height: 1.65;
  margin: 0 0 12px;
}

.rights-win-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1a6b2a;
  text-decoration: none;
}

.rights-win-link:hover { text-decoration: underline; }

/* Resource grid */

.rights-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.rights-resource-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rights-resource-card:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.rights-resource-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.rights-resource-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.rights-resource-url {
  font-size: 12px;
  color: #2563eb;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .rights-chapter--sos { padding: 20px 18px; }
  .rights-chapter--urgent { padding: 20px 18px; }
  .rights-urgent-cards { grid-template-columns: 1fr; }
  .rights-win-card { padding: 18px 16px; }
  .rights-resource-grid { grid-template-columns: 1fr; }
}
