:root {
  --ink: #111827;
  --muted: #65717d;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --line: #dce3dd;
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --teal-soft: #d9f4ef;
  --coral: #e05d44;
  --blue: #2563eb;
  --gold: #b7791f;
  --green: #23864f;
  --map-bg: #102321;
  --map-land: #173c37;
  --map-land-2: #24564f;
  --shadow: 0 18px 42px rgba(15, 23, 42, .14);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, .18), transparent 34rem),
    linear-gradient(180deg, #fbfcfb 0%, var(--paper) 52%, #edf2ef 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  padding: 18px 14px 92px;
}

.top-bar,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.top-bar {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(30px, 7.5vw, 56px);
  line-height: .98;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.avatar-button,
.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 118, 110, .24);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.avatar-button {
  color: white;
  background: linear-gradient(145deg, var(--teal), #101820);
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 1180px;
  margin: 18px auto 0;
}

.insight-card {
  display: grid;
  gap: 2px;
  min-height: 72px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
}

.insight-card span {
  font-size: 24px;
  font-weight: 950;
}

.insight-card small,
.muted {
  color: var(--muted);
}

.search-panel {
  max-width: 1180px;
  margin: 16px auto 0;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfcfb;
  outline: none;
}

.search-box input:focus {
  border-color: rgba(15, 118, 110, .48);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}

.filter-row,
.intent-cloud,
.sync-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.chip:hover,
.map-control:hover,
.event-card:hover {
  transform: translateY(-1px);
}

.chip.active {
  border-color: rgba(15, 118, 110, .42);
  color: #0d403d;
  background: var(--teal-soft);
  font-weight: 850;
}

.map-layout {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 16px auto 0;
}

.map-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 22px;
  background: var(--map-bg);
  box-shadow: var(--shadow);
}

.map-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 10px 12px;
  color: white;
  background: rgba(10, 22, 21, .72);
  backdrop-filter: blur(14px);
}

.map-toolbar .eyebrow {
  color: #8ee8db;
}

.map-actions {
  display: flex;
  gap: 6px;
}

.map-control {
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 900;
}

.map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.map-viewport:active {
  cursor: grabbing;
}

.map-world {
  position: absolute;
  inset: 0;
  min-width: 100%;
  min-height: 100%;
  transform-origin: center;
}

.map-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 34%, rgba(20, 184, 166, .18), transparent 13rem),
    radial-gradient(circle at 74% 22%, rgba(37, 99, 235, .17), transparent 10rem),
    linear-gradient(145deg, var(--map-bg), #102c29 54%, #0b1717);
}

.map-base::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  background:
    linear-gradient(24deg, transparent 0 34%, rgba(255, 255, 255, .12) 34.5% 35.5%, transparent 36% 100%),
    linear-gradient(132deg, transparent 0 41%, rgba(255, 255, 255, .12) 41.5% 42.6%, transparent 43% 100%),
    linear-gradient(88deg, transparent 0 51%, rgba(255, 255, 255, .1) 51.2% 52%, transparent 52.2% 100%),
    linear-gradient(8deg, transparent 0 62%, rgba(255, 255, 255, .08) 62.4% 63.2%, transparent 63.5% 100%);
  border-radius: 28px;
}

.map-base::after {
  content: "Savassi  Lourdes  Centro  Pampulha  Nova Lima  Santa Tereza";
  position: absolute;
  inset: 0;
  display: block;
  color: rgba(255, 255, 255, .13);
  font-size: 52px;
  font-weight: 950;
  line-height: 2.3;
  overflow: hidden;
  padding: 86px 34px;
  word-spacing: 38px;
}

.map-marker {
  position: absolute;
  display: grid;
  gap: 5px;
  width: min(190px, 42vw);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  padding: 10px 11px;
  color: white;
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
  text-align: left;
  backdrop-filter: blur(16px);
}

.map-marker::before {
  content: "";
  position: absolute;
  right: calc(50% - 5px);
  bottom: -14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal-2);
  box-shadow: 0 0 0 7px rgba(20, 184, 166, .18);
}

.map-marker.active {
  border-color: rgba(20, 184, 166, .74);
  background: rgba(15, 118, 110, .72);
}

.map-marker strong {
  font-size: 13px;
}

.map-marker span {
  color: rgba(255, 255, 255, .74);
  font-size: 11px;
}

.map-marker small {
  color: #a6fff0;
  font-size: 10px;
  font-weight: 850;
}

.map-footnote {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
}

.event-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.event-card,
.stat-tile,
.connection-row,
.ride-row,
.recommendation-box {
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 16px;
  padding: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
}

.event-card {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.meta-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mini-intents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-intents span,
.sync-pill {
  border-radius: 999px;
  padding: 6px 8px;
  color: #24413e;
  background: #edf3ee;
  font-size: 12px;
  font-weight: 750;
}

.sync-pill {
  display: grid;
  min-width: 138px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.sync-pill.api-online {
  border-color: rgba(20, 184, 166, .36);
  background: #e9fbf7;
}

.sync-pill.api-offline {
  border-color: rgba(224, 93, 68, .28);
  background: #fff1ee;
}

.sync-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.tag {
  border-radius: 999px;
  padding: 5px 8px;
  color: #19312f;
  background: #eef1ea;
  font-size: 12px;
  font-weight: 800;
}

.tag.sympla {
  background: #e8eefc;
  color: var(--blue);
}

.tag.meetup {
  background: #fae9e5;
  color: var(--coral);
}

.tag.eventbrite {
  background: #f7edcf;
  color: #745400;
}

.tag.avulso {
  background: #e6f1e6;
  color: var(--green);
}

.primary-button,
.secondary-button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 13px;
  font-weight: 850;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--teal), #101820);
}

.secondary-button {
  color: var(--ink);
  background: #edf2ef;
}

.drawer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 16;
  max-height: 82vh;
  overflow: auto;
  border-radius: 22px 22px 0 0;
  padding: 10px 18px 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(105%);
  transition: transform .22s ease;
}

.drawer.open {
  transform: translateY(0);
}

.drawer-handle {
  width: 54px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--line);
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 24;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  backdrop-filter: blur(16px);
}

.nav-item {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
}

.nav-item.active {
  color: white;
  background: #101820;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: flex-end;
  padding: 18px;
  background: rgba(15, 23, 42, .42);
}

.modal.open {
  display: flex;
}

.modal-content {
  width: 100%;
  border-radius: 20px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-grid,
.stat-grid,
.safety-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

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

.safety-hero {
  background: linear-gradient(180deg, rgba(8, 127, 116, .08), rgba(244, 247, 242, .92));
}

.safety-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.safety-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  border: 1px solid rgba(8, 127, 116, .18);
  background: rgba(8, 127, 116, .07);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.safety-log-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f8f4;
}

.safety-log-item strong {
  color: var(--ink);
  font-size: 13px;
}

.safety-log-item p {
  margin: 0;
}

.toggle-line,
.field-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.field-line {
  display: grid;
  align-items: initial;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field-line input {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  outline: none;
}

.view-panel {
  display: grid;
  gap: 12px;
}

.split-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.recommendation-box {
  display: grid;
  gap: 9px;
}

.recommendation-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--ink);
  background: #f3f5f0;
  text-align: left;
}

.recommendation-line small {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .map-panel {
    min-height: 480px;
  }

  .map-toolbar {
    display: grid;
  }

  .map-actions {
    overflow-x: auto;
  }

  .map-marker {
    width: 154px;
  }
}

/* Round 16: geographic discovery and a calmer mobile-first surface. */
:root {
  --ink: #18212b;
  --muted: #66717d;
  --paper: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --line: #dbe2e8;
  --teal: #087f74;
  --teal-2: #0ea89a;
  --teal-soft: #def4f1;
  --coral: #e85d45;
  --blue: #3569e8;
  --gold: #d89b26;
  --green: #23885b;
  --shadow: 0 14px 34px rgba(24, 33, 43, .12);
  --shadow-soft: 0 5px 16px rgba(24, 33, 43, .07);
}

body {
  color: var(--ink);
  background: var(--paper);
}

.app-shell {
  padding: 14px 12px 92px;
}

.top-bar,
.search-panel,
.map-layout {
  max-width: 1180px;
}

.top-bar {
  min-height: 48px;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: #087f74;
  font-size: 18px;
  font-weight: 900;
}

.top-bar .eyebrow {
  margin-bottom: 2px;
  color: var(--coral);
  font-size: 10px;
}

.top-bar h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.avatar-button {
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: #e85d45;
  box-shadow: var(--shadow-soft);
}

.search-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.discovery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.search-box,
.city-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.search-box input,
.city-box select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface-2);
  outline: none;
}

.search-box input::placeholder {
  color: #8a949e;
}

.quick-filter {
  margin-top: 12px;
}

.filter-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-row {
  margin-top: 7px;
}

.chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
}

.chip.active {
  border-color: #087f74;
  color: #ffffff;
  background: #087f74;
}

.advanced-filters {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.advanced-filters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

.advanced-filters summary::-webkit-details-marker {
  display: none;
}

.advanced-filters summary small {
  color: var(--muted);
  font-weight: 600;
}

.advanced-filter-body {
  padding: 2px 0 4px;
}

.advanced-filter-body .filter-label:not(:first-child) {
  margin-top: 13px;
}

.sync-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  overflow: visible;
  border-top: 1px solid var(--line);
  padding: 13px 0 0;
}

.catalog-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.catalog-status div {
  display: grid;
  gap: 1px;
}

.catalog-status strong {
  color: var(--ink);
  font-size: 12px;
}

.catalog-status small {
  color: var(--muted);
  font-size: 10px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a9b1b9;
}

.status-dot.online {
  background: var(--green);
}

.source-links {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px;
}

.source-links a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.map-layout {
  gap: 12px;
  margin-top: 12px;
}

.map-panel {
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce6e4;
  box-shadow: var(--shadow);
}

.map-toolbar {
  top: 10px;
  right: 10px;
  left: 62px;
  z-index: 500;
  min-height: 44px;
  border: 1px solid rgba(24, 33, 43, .12);
  border-radius: 7px;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}

.map-toolbar .eyebrow {
  margin-bottom: 1px;
  color: var(--teal);
  font-size: 9px;
}

.map-toolbar strong {
  font-size: 12px;
}

.map-control {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-size: 19px;
}

.geo-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.leaflet-container {
  background: #dce6e4;
  font-family: inherit;
}

.leaflet-bar a,
.leaflet-bar a:hover {
  color: var(--ink);
  background: #ffffff;
}

.leaflet-control-attribution {
  color: #46515b;
  font-size: 9px;
}

.map-popup {
  display: grid;
  gap: 5px;
  min-width: 190px;
}

.map-popup span,
.map-popup small {
  color: #66717d;
  font-size: 10px;
}

.map-popup strong {
  color: #18212b;
  font-size: 14px;
  line-height: 1.25;
}

.map-popup a {
  margin-top: 3px;
  color: #087f74;
  font-size: 12px;
  font-weight: 850;
}

.map-fallback {
  display: grid;
  place-content: center;
  gap: 5px;
  height: 100%;
  padding: 24px;
  color: var(--ink);
  background: #dce6e4;
  text-align: center;
}

.map-fallback span {
  color: var(--muted);
  font-size: 12px;
}

.event-results {
  min-width: 0;
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 0 2px;
}

.results-heading .eyebrow {
  margin-bottom: 2px;
  color: var(--coral);
}

.results-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.result-count {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 16px;
  color: #ffffff;
  background: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.event-list {
  gap: 8px;
}

.event-card,
.stat-tile,
.connection-row,
.ride-row,
.recommendation-box,
.producer-form,
.producer-head,
.producer-lock {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.event-card {
  display: block;
  overflow: hidden;
  padding: 0;
}

.event-card.selected {
  border-color: rgba(8, 127, 116, .55);
  box-shadow: 0 0 0 2px rgba(8, 127, 116, .1);
}

.event-card-select {
  display: block;
  width: 100%;
  border: 0;
  padding: 13px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.event-card-main strong {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.event-card-main small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.event-card-date {
  color: var(--teal);
  font-size: 10px;
}

.platform-dot {
  min-height: 25px;
  border-radius: 5px;
  padding: 5px 7px;
  color: #69470c;
  background: #fff0c9;
  font-size: 9px;
}

.platform-dot.sympla {
  color: #244da8;
  background: #e4ebff;
}

.platform-dot.meetup {
  color: #9f2337;
  background: #ffe4e8;
}

.platform-dot.eventbrite {
  color: #984915;
  background: #ffeadc;
}

.event-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 9px 13px;
  background: var(--surface-2);
  font-size: 10px;
}

.event-card-actions span {
  color: var(--muted);
}

.event-card-actions a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.bottom-nav {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(24, 33, 43, .16);
}

.nav-item {
  border-radius: 8px;
  color: var(--muted);
}

.nav-item.active,
.primary-button {
  color: #ffffff;
  background: #087f74;
}

.nav-item.producer-focus:not(.active) {
  color: var(--teal);
  background: var(--teal-soft);
}

.drawer,
.modal-content,
.onboarding-card {
  color: var(--ink);
  background: #ffffff;
}

.drawer h2,
.drawer h3,
.modal-content h2,
.modal-content h3,
.onboarding-card h2,
.onboarding-card h3 {
  color: var(--ink);
}

.drawer-hero {
  color: #ffffff;
  background: #087f74;
}

.drawer-hero h2,
.drawer-hero p {
  color: #ffffff;
}

.secondary-mode {
  grid-template-columns: 1fr;
}

.secondary-mode .event-results {
  width: min(100%, 760px);
  margin: 0 auto;
}

@media (min-width: 680px) {
  .discovery-toolbar {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

@media (min-width: 900px) {
  .app-shell {
    padding: 20px 22px 30px;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .72fr);
  }

  .map-layout.secondary-mode {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 680px;
  }

  .event-results {
    max-height: 680px;
  }

  .event-list {
    max-height: 636px;
    overflow: auto;
    padding-right: 3px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-inline: 10px;
  }

  .top-bar h1 {
    font-size: 17px;
  }

  .brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .map-panel {
    min-height: 470px;
    height: 58vh;
    max-height: 580px;
  }

  .map-toolbar {
    display: flex;
    grid-template-columns: none;
  }

  .sync-strip {
    grid-template-columns: 1fr;
  }

  .sync-action,
  .catalog-status,
  .source-links {
    grid-column: 1;
  }
}

@media (min-width: 900px) {
  .app-shell {
    padding: 28px 24px 28px;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(350px, .72fr);
    align-items: start;
  }

  .map-panel {
    min-height: 690px;
  }

  .event-list {
    max-height: 690px;
    overflow: auto;
    padding-right: 4px;
  }

  .bottom-nav {
    right: calc(50% - 280px);
    left: calc(50% - 280px);
  }

  .drawer {
    top: 24px;
    right: 24px;
    bottom: 24px;
    left: auto;
    width: 450px;
    max-height: none;
    border-radius: 22px;
    transform: translateX(110%);
  }

  .drawer.open {
    transform: translateX(0);
  }

  .modal {
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    max-width: 640px;
  }

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

/* Mobile app polish */
:root {
  --ink: #15171d;
  --muted: #737985;
  --paper: #f6f3ee;
  --surface: #fffdf9;
  --surface-2: #f0eee8;
  --line: #e2ded4;
  --teal: #087f74;
  --teal-2: #20c7ad;
  --teal-soft: #def7f1;
  --coral: #f06a4f;
  --blue: #4878ff;
  --gold: #c58b1b;
  --green: #2f9461;
  --map-bg: #18201f;
  --shadow: 0 18px 44px rgba(42, 34, 27, .13);
  --shadow-soft: 0 10px 28px rgba(42, 34, 27, .08);
}

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(240, 106, 79, .2), transparent 18rem),
    radial-gradient(circle at 92% 6%, rgba(32, 199, 173, .22), transparent 20rem),
    linear-gradient(180deg, #fffaf2 0%, #f7f3ec 48%, #eeebe4 100%);
}

.app-shell {
  padding: 16px 14px 96px;
}

.top-bar {
  align-items: flex-start;
}

.eyebrow {
  color: var(--coral);
  font-size: 10px;
}

h1 {
  max-width: 430px;
  font-size: clamp(32px, 11vw, 48px);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.avatar-button {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .24), transparent),
    linear-gradient(145deg, #15171d, #087f74);
}

.insight-strip {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.insight-card {
  min-height: 64px;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 253, 249, .78);
  box-shadow: var(--shadow-soft);
}

.insight-card span {
  font-size: 22px;
}

.insight-card small {
  font-size: 11px;
  line-height: 1.15;
}

.search-panel {
  border: 0;
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 253, 249, .86);
}

.search-box input {
  border: 0;
  border-radius: 18px;
  padding: 16px 16px;
  background: #f2f0e9;
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: #f0eee8;
  color: #343840;
  font-size: 13px;
}

.chip.active {
  color: #063f39;
  background: linear-gradient(135deg, #d8fbf3, #fff2d6);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 116, .16);
}

.sync-strip {
  margin-top: 10px;
}

.sync-pill {
  min-width: 128px;
  border: 0;
  border-radius: 16px;
  background: #f4f1ea;
}

.map-layout {
  gap: 14px;
}

.map-panel {
  min-height: 500px;
  border: 0;
  border-radius: 30px;
  background: #15171d;
  box-shadow: 0 28px 60px rgba(21, 23, 29, .24);
}

.map-toolbar {
  top: 12px;
  right: 12px;
  left: 12px;
  border: 0;
  border-radius: 22px;
  padding: 12px;
  background: rgba(20, 22, 26, .72);
}

.map-toolbar .eyebrow {
  color: #9ef4e5;
}

.map-control {
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.map-base {
  background:
    radial-gradient(circle at 22% 28%, rgba(240, 106, 79, .24), transparent 11rem),
    radial-gradient(circle at 72% 24%, rgba(72, 120, 255, .2), transparent 13rem),
    radial-gradient(circle at 54% 70%, rgba(32, 199, 173, .2), transparent 14rem),
    linear-gradient(145deg, #15171d, #1c2c2a 62%, #101514);
}

.map-base::before {
  inset: 11% 7%;
  opacity: .9;
}

.map-base::after {
  color: rgba(255, 255, 255, .08);
  font-size: 42px;
  padding-top: 104px;
}

.map-marker {
  width: min(178px, 39vw);
  border: 0;
  border-radius: 20px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .14);
}

.map-marker.active {
  background: linear-gradient(145deg, rgba(8, 127, 116, .9), rgba(21, 23, 29, .82));
}

.map-marker::before {
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(240, 106, 79, .18);
}

.map-marker strong {
  font-size: 12px;
  line-height: 1.15;
}

.map-footnote {
  color: rgba(255, 255, 255, .64);
}

.event-list {
  gap: 12px;
}

.event-card,
.stat-tile,
.connection-row,
.ride-row,
.recommendation-box {
  border: 0;
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 253, 249, .9);
  box-shadow: var(--shadow-soft);
}

.event-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.event-card-main strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
  line-height: 1.08;
}

.event-card-main small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.event-card-date {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-dot {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #15171d;
  background: #f3e6c7;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.platform-dot.sympla {
  background: #dfe8ff;
  color: #244da8;
}

.platform-dot.meetup {
  background: #ffe4dd;
  color: #a33c29;
}

.platform-dot.eventbrite {
  background: #fff0c9;
  color: #7b5708;
}

.platform-dot.avulso {
  background: #dcf4e6;
  color: #206a43;
}

.tag,
.mini-intents span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #f1eee7;
  font-size: 11px;
}

.for-you {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(222, 247, 241, .82)),
    var(--surface);
}

.recommendation-line {
  border-radius: 16px;
  background: rgba(255, 253, 249, .72);
}

.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 12px 15px;
}

.primary-button {
  background: linear-gradient(135deg, #15171d, #087f74);
}

.secondary-button {
  background: #f0eee8;
}

.drawer {
  z-index: 19;
  border-radius: 28px 28px 0 0;
  background: #fffdf9;
}

.drawer-hero {
  display: grid;
  gap: 8px;
  margin: 2px 0 14px;
  border-radius: 24px;
  padding: 18px;
  color: white;
  background:
    radial-gradient(circle at 86% 20%, rgba(240, 106, 79, .45), transparent 8rem),
    linear-gradient(145deg, #15171d, #087f74);
}

.drawer-hero h2 {
  font-size: 28px;
  line-height: 1;
}

.drawer-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .74);
}

.drawer-meta {
  margin-bottom: 14px;
}

.bottom-nav {
  border: 0;
  border-radius: 999px;
  padding: 5px;
}

.nav-item {
  border-radius: 999px;
  font-size: 10px;
}

.nav-item.active {
  background: linear-gradient(135deg, #15171d, #087f74);
}

.modal-content {
  border-radius: 28px;
  background: #fffdf9;
}

@media (max-width: 520px) {
  .app-shell {
    padding-inline: 12px;
  }

  .hero-copy {
    max-width: 280px;
  }

  .insight-strip {
    gap: 7px;
  }

  .insight-card {
    padding: 10px;
  }

  .map-panel {
    min-height: 510px;
  }

  .map-toolbar {
    grid-template-columns: 1fr;
  }

  .map-actions {
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  h1 {
    font-size: 60px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .map-panel {
    min-height: 720px;
  }

  .event-list {
    max-height: 720px;
  }
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 1180px;
  margin: 14px auto 0;
  border-radius: 24px;
  padding: 6px;
  background: rgba(255, 253, 249, .72);
  box-shadow: var(--shadow-soft);
}

.mode-option {
  display: grid;
  gap: 2px;
  min-height: 58px;
  border: 0;
  border-radius: 19px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.mode-option span {
  color: var(--ink);
  font-weight: 950;
}

.mode-option small {
  font-size: 11px;
  line-height: 1.15;
}

.mode-option.active {
  background: linear-gradient(135deg, #15171d, #087f74);
  color: rgba(255, 255, 255, .72);
}

.mode-option.active span {
  color: white;
}

.nav-item.producer-focus:not(.active) {
  color: #087f74;
  background: #def7f1;
}

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  padding: 14px;
  background:
    radial-gradient(circle at 80% 10%, rgba(32, 199, 173, .24), transparent 18rem),
    rgba(21, 23, 29, .52);
}

.onboarding.open {
  display: flex;
}

.onboarding-card {
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  border-radius: 30px;
  padding: 22px;
  background: #fffdf9;
  box-shadow: 0 34px 80px rgba(21, 23, 29, .28);
}

.onboarding-card h2 {
  max-width: 420px;
  font-size: 34px;
  line-height: .98;
}

.onboarding-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.onboarding-options {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 22px;
  padding: 15px;
  color: var(--muted);
  background: #f2f0e9;
  text-align: left;
}

.choice-card span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.choice-card small {
  line-height: 1.25;
}

.choice-card.active {
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 106, 79, .45), transparent 9rem),
    linear-gradient(135deg, #15171d, #087f74);
}

.choice-card.active span {
  color: white;
}

.onboarding-consent {
  margin-top: 18px;
  background: #f8f5ef;
}

.producer-lock,
.producer-form,
.producer-head {
  border: 0;
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 253, 249, .92);
  box-shadow: var(--shadow-soft);
}

.producer-lock {
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at 92% 10%, rgba(240, 106, 79, .2), transparent 9rem),
    rgba(255, 253, 249, .94);
}

.producer-lock h3 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1;
}

.lock-badge {
  width: max-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: #063f39;
  background: #def7f1;
  font-size: 11px;
  font-weight: 950;
}

.producer-form {
  display: grid;
  gap: 10px;
}

.producer-form .field-line {
  background: rgba(246, 243, 238, .78);
}

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

.producer-head h3 {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .onboarding {
    align-items: center;
    justify-content: center;
  }

  .onboarding-card {
    max-width: 720px;
  }

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

/* Round 2 visual direction: midnight social */
:root {
  --ink: #f8fafc;
  --muted: #aab4c1;
  --paper: #090c10;
  --surface: rgba(20, 26, 34, .86);
  --surface-2: rgba(29, 36, 46, .88);
  --line: rgba(255, 255, 255, .1);
  --teal: #28d6bd;
  --teal-2: #7cffdc;
  --teal-soft: rgba(40, 214, 189, .16);
  --coral: #ff7a59;
  --blue: #7aa2ff;
  --gold: #ffd166;
  --green: #61d394;
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, .26);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 122, 89, .28), transparent 18rem),
    radial-gradient(circle at 98% 2%, rgba(40, 214, 189, .26), transparent 20rem),
    radial-gradient(circle at 45% 92%, rgba(122, 162, 255, .18), transparent 19rem),
    #090c10;
}

.app-shell {
  padding-top: 18px;
}

.top-bar,
.insight-strip,
.search-panel,
.map-layout,
.mode-switch {
  max-width: 1120px;
}

.eyebrow {
  color: var(--teal-2);
}

h1 {
  color: #ffffff;
  font-size: clamp(40px, 14vw, 76px);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 340px;
  color: rgba(248, 250, 252, .68);
}

.avatar-button {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .18), transparent),
    linear-gradient(145deg, #ff7a59, #28d6bd 58%, #111827);
  box-shadow: 0 18px 38px rgba(40, 214, 189, .18);
}

.mode-switch,
.search-panel,
.insight-card,
.event-card,
.stat-tile,
.connection-row,
.ride-row,
.recommendation-box,
.producer-form,
.producer-head,
.producer-lock,
.modal-content,
.onboarding-card {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(20, 26, 34, .72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.mode-switch {
  padding: 5px;
  background: rgba(255, 255, 255, .06);
}

.mode-option {
  color: rgba(248, 250, 252, .58);
}

.mode-option span,
.choice-card span,
.event-card-main strong,
.recommendation-box strong,
.producer-form strong,
.producer-head h3,
.producer-lock h3,
.view-panel h3,
h2,
h3 {
  color: #ffffff;
}

.mode-option.active,
.nav-item.active,
.primary-button {
  background: linear-gradient(135deg, #ff7a59, #28d6bd 62%, #141a22);
  color: #081014;
}

.mode-option.active span {
  color: #081014;
}

.insight-card {
  min-height: 58px;
  border-radius: 22px;
}

.insight-card span {
  color: #ffffff;
  font-size: 24px;
}

.insight-card small,
.muted,
.event-card-main small,
.recommendation-line small {
  color: rgba(248, 250, 252, .58);
}

.search-panel {
  border-radius: 28px;
}

.search-box {
  color: rgba(248, 250, 252, .62);
}

.search-box input,
.field-line,
.toggle-line {
  border: 1px solid rgba(255, 255, 255, .08);
  color: #ffffff;
  background: rgba(255, 255, 255, .07);
}

.search-box input::placeholder,
.field-line input::placeholder {
  color: rgba(248, 250, 252, .38);
}

.field-line input {
  color: #ffffff;
}

.chip,
.tag,
.mini-intents span,
.secondary-button,
.recommendation-line {
  color: rgba(248, 250, 252, .82);
  background: rgba(255, 255, 255, .08);
}

.chip.active {
  color: #06100f;
  background: linear-gradient(135deg, #7cffdc, #ffd166);
}

.sync-pill {
  border: 0;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.sync-pill:disabled {
  cursor: wait;
  opacity: .72;
}

.sync-action {
  min-width: 168px;
}

.sync-action strong {
  color: #7cffdc;
}

.sync-pill:focus-visible {
  outline: 2px solid #7cffdc;
  outline-offset: 3px;
}

.sync-pill {
  color: rgba(248, 250, 252, .82);
  background: rgba(255, 255, 255, .08);
}

.sync-pill span {
  color: rgba(248, 250, 252, .54);
}

.sync-pill.api-online {
  background: rgba(40, 214, 189, .14);
}

.sync-pill.api-offline {
  background: rgba(255, 122, 89, .14);
}

.map-panel {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 34px;
  background: #050709;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.map-toolbar {
  background: rgba(5, 7, 9, .58);
}

.map-base {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 122, 89, .34), transparent 12rem),
    radial-gradient(circle at 78% 24%, rgba(122, 162, 255, .28), transparent 14rem),
    radial-gradient(circle at 58% 76%, rgba(40, 214, 189, .22), transparent 15rem),
    linear-gradient(145deg, #050709, #12201e 64%, #050709);
}

.map-base::before {
  background:
    linear-gradient(22deg, transparent 0 33%, rgba(124, 255, 220, .2) 33.5% 34%, transparent 34.7% 100%),
    linear-gradient(132deg, transparent 0 40%, rgba(255, 209, 102, .18) 40.5% 41%, transparent 41.7% 100%),
    linear-gradient(88deg, transparent 0 51%, rgba(255, 255, 255, .11) 51.2% 52%, transparent 52.2% 100%);
}

.map-base::after {
  color: rgba(255, 255, 255, .05);
}

.map-marker {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 14, 20, .68);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .44);
}

.map-marker.active {
  color: #081014;
  background: linear-gradient(135deg, #7cffdc, #ffcf8a);
}

.map-marker.active span,
.map-marker.active small {
  color: rgba(8, 16, 20, .68);
}

.map-marker::before {
  background: #ffd166;
  box-shadow: 0 0 0 8px rgba(255, 209, 102, .18);
}

.event-card,
.recommendation-box,
.producer-form,
.producer-lock {
  border-radius: 30px;
}

.event-card-main strong {
  font-size: 20px;
}

.event-card-date {
  color: #7cffdc;
}

.platform-dot {
  color: #081014;
  background: #ffd166;
}

.drawer {
  background: #10151d;
}

@media (min-width: 900px) {
  .drawer {
    top: 112px;
    max-height: calc(100vh - 136px);
  }
}

.drawer-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 209, 102, .42), transparent 8rem),
    linear-gradient(145deg, #ff7a59, #28d6bd 72%, #141a22);
  color: #081014;
}

.drawer-hero h2,
.drawer-hero p {
  color: #081014;
}

.bottom-nav {
  background: rgba(10, 14, 20, .78);
  border: 1px solid rgba(255, 255, 255, .08);
}

.nav-item {
  color: rgba(248, 250, 252, .58);
}

.nav-item.producer-focus:not(.active) {
  color: #7cffdc;
  background: rgba(40, 214, 189, .12);
}

.choice-card {
  color: rgba(248, 250, 252, .62);
  background: rgba(255, 255, 255, .08);
}

.choice-card.active {
  color: #081014;
  background: linear-gradient(135deg, #ff7a59, #7cffdc);
}

.choice-card.active span {
  color: #081014;
}

.onboarding {
  background:
    radial-gradient(circle at 80% 10%, rgba(40, 214, 189, .28), transparent 18rem),
    rgba(0, 0, 0, .68);
}

@media (max-width: 520px) {
  h1 {
    font-size: 52px;
  }

  .top-bar {
    min-height: 118px;
  }

  .map-panel {
    min-height: 470px;
  }
}

/* Rodada 15: destaque para fontes reais e leitura em telas pequenas. */
.curated-pill {
  border-color: rgba(124, 255, 220, .18);
  background: rgba(40, 214, 189, .12);
}

.curated-pill strong {
  color: #7cffdc;
}

.curated-note {
  margin-top: 10px;
  color: #7cffdc;
  font-size: 11px;
  font-weight: 850;
}

.event-card:focus-visible,
.recommendation-line:focus-visible,
.connection-row button:focus-visible,
.ride-row a:focus-visible {
  outline: 2px solid #7cffdc;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .sync-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sync-pill {
    min-width: 0;
    padding: 11px;
  }

  .sync-action,
  .curated-pill {
    grid-column: span 2;
  }

  .sync-pill strong,
  .sync-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .event-card {
    padding: 15px;
  }

  .event-card-main strong {
    font-size: 18px;
  }

  .meta-row {
    gap: 6px;
  }

  .tag,
  .mini-intents span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Keep the current discovery direction last in the cascade. */
:root {
  --ink: #18212b;
  --muted: #66717d;
  --paper: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --line: #dbe2e8;
  --teal: #087f74;
  --teal-2: #0ea89a;
  --teal-soft: #def4f1;
  --coral: #e85d45;
  --blue: #3569e8;
  --gold: #d89b26;
  --green: #23885b;
  --shadow: 0 14px 34px rgba(24, 33, 43, .12);
  --shadow-soft: 0 5px 16px rgba(24, 33, 43, .07);
}

html body {
  color: var(--ink);
  background: var(--paper);
}

body .app-shell {
  padding: 14px 12px 92px;
}

body .top-bar {
  min-height: 48px;
  align-items: center;
}

body .top-bar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

body .avatar-button {
  color: #ffffff;
  background: #e85d45;
}

body .search-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

body .search-box,
body .city-box {
  color: var(--muted);
}

body .search-box input,
body .city-box select,
body .field-line select,
body .field-line,
body .toggle-line {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

body .field-line select {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: none;
}

body .search-box input::placeholder {
  color: #8a949e;
}

body .chip,
body .tag,
body .mini-intents span,
body .secondary-button,
body .recommendation-line {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

body .chip.active {
  border-color: #087f74;
  color: #ffffff;
  background: #087f74;
}

body .map-panel {
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce6e4;
  box-shadow: var(--shadow);
}

body .map-toolbar {
  border: 1px solid rgba(24, 33, 43, .12);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
}

body .map-toolbar .eyebrow {
  color: var(--teal);
}

body .onboarding {
  z-index: 1600;
  isolation: isolate;
}

body .map-control {
  color: var(--ink);
  background: #ffffff;
}

body .event-card,
body .stat-tile,
body .connection-row,
body .ride-row,
body .recommendation-box,
body .producer-form,
body .producer-head,
body .producer-lock,
body .modal-content,
body .onboarding-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

body .event-card-main strong,
body .recommendation-box strong,
body .producer-form strong,
body .producer-head h3,
body .producer-lock h3,
body .view-panel h3,
body h2,
body h3 {
  color: var(--ink);
}

body .event-card-main strong {
  font-size: 15px;
}

body .event-card-main small,
body .recommendation-line small {
  color: var(--muted);
}

body .event-card-date {
  color: var(--teal);
}

body .platform-dot.sympla {
  color: #244da8;
  background: #e4ebff;
}

body .platform-dot.meetup {
  color: #9f2337;
  background: #ffe4e8;
}

body .platform-dot.eventbrite {
  color: #984915;
  background: #ffeadc;
}

body .platform-dot.praca-oficial {
  color: #075d57;
  background: #dff5ef;
}

body .bottom-nav {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
}

body .nav-item {
  border-radius: 8px;
  color: var(--muted);
}

body .nav-item.active,
body .primary-button {
  color: #ffffff;
  background: #087f74;
}

body .drawer {
  color: var(--ink);
  background: #ffffff;
}

body .drawer-hero {
  color: #ffffff;
  background: #087f74;
}

body .drawer-hero h2,
body .drawer-hero p {
  color: #ffffff;
}

@media (min-width: 900px) {
  body .app-shell {
    padding: 20px 22px 30px;
  }

  body .map-panel {
    min-height: 680px;
  }
}

@media (max-width: 520px) {
  body .top-bar {
    min-height: 48px;
  }

  body .top-bar h1 {
    font-size: 17px;
  }

  body .map-panel {
    min-height: 470px;
    height: 58vh;
    max-height: 580px;
  }

  body .event-card {
    padding: 0;
  }
}

/* Robust MVP: focused discovery and transport planning */
body .search-panel[hidden],
body .map-panel[hidden],
body .results-heading[hidden] {
  display: none !important;
}

body .primary-button,
body .secondary-button {
  border-radius: 7px;
}

body .event-card-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

body .icon-action {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: #65717d;
  background: #ffffff;
  font-size: 17px;
  line-height: 1;
}

body .icon-action.active {
  border-color: #e85d45;
  color: #c8432d;
  background: #fff0ec;
}

body .map-layout.secondary-mode .event-results {
  width: min(100%, 960px);
  max-height: none;
}

body .map-layout.secondary-mode .event-list {
  max-height: none;
  overflow: visible;
}

body .transport-shell {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

body .transport-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
}

body .transport-head h3,
body .transport-section h4 {
  margin: 0;
  color: var(--ink);
}

body .transport-head .muted {
  max-width: 590px;
  margin: 7px 0 0;
  color: var(--muted);
}

body .privacy-badge {
  flex: 0 0 auto;
  border: 1px solid #b9dfd8;
  border-radius: 6px;
  padding: 7px 9px;
  color: #086a61;
  background: #e9f8f5;
  font-size: 11px;
  font-weight: 800;
}

body .transport-event-filter {
  display: grid;
  gap: 12px;
  border-block: 1px solid var(--line);
  padding: 15px 22px;
  background: #f6f8f7;
}

body .transport-filter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body .transport-filter-heading > div {
  display: grid;
  gap: 2px;
}

body .transport-filter-heading strong {
  color: var(--ink);
  font-size: 13px;
}

body .transport-filter-heading span {
  color: var(--muted);
  font-size: 11px;
}

body .transport-filter-heading > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e7edeb;
  font-weight: 800;
}

body .transport-scope-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
}

body .transport-scope-tabs button {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

body .transport-scope-tabs button span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  color: #58636d;
  background: #e8edeb;
  font-size: 9px;
}

body .transport-scope-tabs button.active {
  color: #ffffff;
  background: var(--teal);
}

body .transport-scope-tabs button.active span {
  color: #075e56;
  background: #d7f4ef;
}

body .transport-event-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-block: 1px solid var(--line);
  padding: 13px 22px;
  color: var(--muted);
  background: #f6f8f7;
  font-size: 12px;
  font-weight: 800;
}

body .transport-event-filter .transport-event-picker {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 11px 0 0;
  background: transparent;
}

body .transport-event-picker select,
body .transport-form select {
  min-width: 0;
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  outline: none;
}

body .transport-event-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 22px 0;
  border: 1px solid #c8e2dc;
  border-radius: 8px;
  padding: 14px;
  background: #f0f8f6;
}

body .transport-event-signals {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

body .transport-event-signals span {
  border-radius: 999px;
  padding: 6px 8px;
  color: #53616b;
  background: #e3ebe8;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

body .transport-event-signals .participating {
  color: #07685f;
  background: #d8f3ee;
}

body .transport-event-summary p,
body .transport-plan p,
body .transport-empty p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

body .transport-date {
  border-radius: 6px;
  padding: 8px;
  color: #ffffff;
  background: #087f74;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

body .transport-section {
  display: grid;
  gap: 14px;
  margin: 0 22px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

body .transport-section:last-child {
  border-bottom: 0;
}

body .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

body .section-heading > span {
  color: var(--muted);
  font-size: 11px;
}

body .provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body .provider-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

body .provider-card:hover,
body .provider-card:focus-visible {
  border-color: #8ebdb6;
  background: #f6fbfa;
}

body .provider-mark {
  display: grid;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: #111827;
  font-size: 12px;
  font-weight: 900;
}

body .provider-card.ninety-nine .provider-mark {
  color: #171717;
  background: #ffe23f;
}

body .provider-card.blablacar .provider-mark {
  background: #147b77;
}

body .provider-card small {
  margin-top: 2px;
  color: var(--muted);
}

body .transport-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f7f9f8;
}

body .transport-create-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f7f9f8;
}

body .transport-create-panel > summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

body .transport-create-panel > summary::-webkit-details-marker {
  display: none;
}

body .transport-create-panel > summary span {
  color: var(--muted);
  font-size: 11px;
}

body .transport-create-panel > summary strong {
  color: var(--teal);
  font-size: 12px;
}

body .transport-create-panel[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #eef7f5;
}

body .transport-create-panel .transport-form {
  border: 0;
  border-radius: 0;
}

body .transport-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

body .transport-form-grid .field-line {
  min-width: 0;
  border-radius: 7px;
  background: #ffffff;
}

body .transport-form input {
  color: var(--ink);
}

body .transport-origin-field {
  grid-column: span 5;
}

body .transport-form-grid > label:nth-of-type(2),
body .transport-form-grid > label:nth-of-type(3) {
  grid-column: span 3;
}

body .transport-form-grid > label:nth-of-type(4) {
  grid-column: span 5;
}

body .location-button {
  display: grid;
  grid-column: span 1;
  min-width: 42px;
  place-items: center;
  border: 1px solid #aedbd4;
  border-radius: 7px;
  color: #087f74;
  background: #e8f7f4;
  font-size: 18px;
}

body .transport-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

body .transport-consent input {
  margin-top: 2px;
  accent-color: #087f74;
}

body .transport-submit {
  justify-self: start;
  min-width: 150px;
}

body .transport-plan-list {
  display: grid;
  gap: 8px;
}

body .transport-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

body .transport-plan-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

body .provider-token {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 6px 8px;
  color: #47515c;
  background: #edf1ef;
  font-size: 10px;
  font-weight: 850;
}

body .transport-empty {
  border: 1px dashed #c9d2cc;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}

body .transport-filter-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 40px auto;
  padding: 24px;
  text-align: center;
}

body .transport-filter-empty p {
  max-width: 420px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

body .transport-empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 19px;
}

body .transport-empty-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body .toast {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 28px));
  transform: translateY(12px);
  border-radius: 7px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #36515c;
  padding: 12px 14px;
  color: #f4fbfc;
  background: #142229;
  box-shadow: 0 16px 36px rgba(6, 20, 27, .32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

body .toast.toast-success {
  border-color: #46bfae;
  background: #12352f;
}

body .toast-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #07191d;
  background: #7de1d5;
  font-size: 17px;
  font-weight: 950;
}

body .toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

body .toast-copy strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
}

body .toast-copy small {
  color: #c5d6dc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

body .toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 700px) {
  body .transport-head,
  body .section-heading {
    align-items: flex-start;
  }

  body .provider-grid {
    grid-template-columns: 1fr;
  }

  body .transport-form-grid {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  body .transport-origin-field {
    grid-column: 1;
  }

  body .location-button {
    grid-column: 2;
  }

  body .transport-form-grid > label:nth-of-type(2),
  body .transport-form-grid > label:nth-of-type(3),
  body .transport-form-grid > label:nth-of-type(4) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  body .transport-head {
    display: grid;
    padding: 18px 14px;
  }

  body .privacy-badge {
    justify-self: start;
  }

  body .transport-event-filter {
    padding: 13px 14px;
  }

  body .transport-filter-heading {
    display: grid;
    gap: 7px;
  }

  body .transport-filter-heading > span {
    justify-self: start;
  }

  body .transport-scope-tabs {
    width: 100%;
  }

  body .transport-scope-tabs button {
    gap: 4px;
    padding-inline: 5px;
    font-size: 10px;
  }

  body .transport-event-picker,
  body .transport-event-filter .transport-event-picker {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 11px 0 0;
  }

  body .transport-event-summary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    margin: 14px 14px 0;
  }

  body .transport-event-signals {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body .transport-section {
    margin: 0 14px;
    padding: 18px 0;
  }

  body .section-heading {
    display: grid;
    gap: 5px;
  }

  body .transport-plan {
    display: grid;
  }

  body .transport-plan .secondary-button,
  body .transport-submit {
    width: 100%;
  }

  body .transport-create-panel > summary {
    display: grid;
  }

  body .toast {
    right: 14px;
    bottom: 82px;
    left: 14px;
    max-width: none;
    text-align: center;
  }
}

/* Social map: explicit public participation and transport proof */
body .leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 14px 34px rgba(24, 33, 43, .22);
}

body .leaflet-popup-content {
  width: min(286px, calc(100vw - 72px)) !important;
  margin: 0;
}

body .map-popup {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 14px;
}

body .map-popup-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body .map-popup-kicker em {
  border-radius: 5px;
  padding: 3px 5px;
  color: #8f4b12;
  background: #fff1d6;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

body .map-popup > strong {
  font-size: 15px;
}

body .map-popup-social {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 7px;
  border-block: 1px solid var(--line);
  padding: 9px 0;
}

body .map-popup-social button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  padding: 7px;
  color: var(--ink);
  background: #f4f7f5;
  text-align: left;
}

body .map-popup-social button:last-child {
  display: grid;
  place-content: center;
  gap: 0;
  text-align: center;
}

body .map-popup-social button:disabled {
  cursor: default;
  opacity: .58;
}

body .map-popup-social b {
  display: block;
  font-size: 11px;
}

body .map-popup-social small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .attendee-stack {
  display: flex;
  flex: 0 0 auto;
  padding-left: 5px;
}

body .attendee-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: #65717d;
  font-size: 10px;
  font-weight: 900;
}

body .attendee-stack .attendee-avatar + .attendee-avatar {
  margin-left: -7px;
}

body .attendee-avatar.verified {
  background: #087f74;
}

body .map-popup-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

body .map-popup-primary {
  border: 1px solid #087f74;
  border-radius: 7px;
  padding: 9px 10px;
  color: #ffffff;
  background: #087f74;
  font-size: 11px;
  font-weight: 850;
}

body .map-popup-primary.active {
  color: #087f74;
  background: #e7f6f3;
}

body .map-popup-actions a {
  margin: 0;
  white-space: nowrap;
}

body .intent-pulse-card {
  border-color: #c9dedb;
  background: linear-gradient(145deg, #f7fbfa 0%, #ffffff 68%);
}

body .intent-pulse {
  display: grid;
  gap: 10px;
}

body .intent-pulse-heading,
body .intent-pulse-heading > div,
body .intent-pulse-legend,
body .intent-pulse-legend > span {
  display: flex;
  align-items: center;
}

body .intent-pulse-heading {
  justify-content: space-between;
  gap: 10px;
}

body .intent-pulse-heading > div {
  min-width: 0;
  gap: 7px;
}

body .intent-pulse-heading strong {
  font-size: 13px;
}

body .intent-pulse-heading small {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 3px 5px;
  color: #55706c;
  background: #eaf3f1;
  font-size: 9px;
  font-weight: 800;
}

body .intent-pulse-spark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0c8f83;
  font-size: 12px;
}

body .intent-pulse-bar {
  display: flex;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e9efed;
}

body .intent-pulse-bar > span {
  width: var(--intent-share);
  min-width: 3px;
}

body .intent-pulse-legend {
  flex-wrap: wrap;
  gap: 8px 14px;
}

body .intent-pulse-legend > span {
  min-width: 0;
  gap: 4px;
}

body .intent-pulse-legend i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
}

body .intent-pulse-legend b {
  color: var(--ink);
  font-size: 11px;
}

body .intent-pulse-legend small {
  color: var(--muted);
  font-size: 10px;
}

body .intent-pulse.detail > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

body .intent-pulse.compact {
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

body .intent-pulse.compact .intent-pulse-heading strong {
  font-size: 11px;
}

body .intent-pulse.compact .intent-pulse-spark {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  font-size: 10px;
}

body .intent-pulse.compact .intent-pulse-legend {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 5px;
}

body .intent-pulse.compact .intent-pulse-legend > span {
  gap: 3px;
}

body .intent-pulse.compact .intent-pulse-legend i {
  width: 19px;
  height: 19px;
  font-size: 9px;
}

body .intent-pulse.compact .intent-pulse-legend small {
  display: none;
}

body .intent-pulse.compact .intent-pulse-legend > span:first-child small {
  display: block;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .intent-pulse-bar .tone-date,
body .tone-date i {
  background: #e35473;
}

body .intent-pulse-bar .tone-friends,
body .tone-friends i {
  background: #e89b32;
}

body .intent-pulse-bar .tone-networking,
body .tone-networking i {
  background: #3569e8;
}

body .intent-pulse-bar .tone-career,
body .tone-career i {
  background: #6f63b6;
}

body .intent-pulse-bar .tone-investors,
body .tone-investors i {
  background: #087f74;
}

body .intent-pulse-bar .tone-transport,
body .tone-transport i {
  background: #4e697c;
}

body .intent-pulse-bar .tone-new-city,
body .tone-new-city i {
  background: #b56b27;
}

body .event-card-signals {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
}

body .event-card-signals span:not(:first-child) {
  color: #087f74;
  font-weight: 800;
}

body .public-visibility-toggle {
  border-color: #b9dfd8;
  background: #eef9f7;
}

body .public-participant-list,
body .event-group-preview {
  display: grid;
}

body .public-participant-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

body .public-participant-row:first-child {
  border-top: 0;
}

body .public-participant-row .attendee-avatar {
  width: 32px;
  height: 32px;
}

body .public-participant-row div {
  display: grid;
  min-width: 0;
}

body .public-participant-row small,
body .event-group-preview small {
  color: var(--muted);
  font-size: 10px;
}

body .verification-signal {
  border-radius: 5px;
  padding: 5px 6px;
  color: #67717c;
  background: #edf1ef;
  font-size: 9px;
  font-weight: 800;
}

body .verification-signal.verified {
  color: #086a61;
  background: #def4ef;
}

body .social-disclaimer {
  margin: 7px 0 0;
  font-size: 10px;
}

body .event-group-preview > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

body .event-group-preview > div:first-child {
  border-top: 0;
}

body .event-group-preview > div strong {
  grid-column: 1 / -1;
  font-size: 11px;
}

body .event-group-preview > div small {
  grid-column: 2;
  grid-row: 1;
}

body .transport-plan-main > div {
  min-width: 0;
}

body .transport-plan-main p {
  line-height: 1.45;
}

@media (max-width: 520px) {
  body .event-card-actions {
    align-items: flex-start;
  }

  body .public-participant-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  body .verification-signal {
    grid-column: 2;
    justify-self: start;
  }
}

/* Social event detail: compact, scannable and mobile-first */
body .drawer {
  z-index: 1200;
  padding: 8px 16px 24px;
}

body .drawer-handle {
  margin-bottom: 9px;
}

body .drawer-hero {
  gap: 7px;
  margin: 0 0 10px;
  border-radius: 8px;
  padding: 14px;
  background: #087f74;
}

body .drawer-hero-topline,
body .event-quick-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body .drawer-hero-topline {
  justify-content: space-between;
}

body .drawer-close-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, .16);
  font-size: 22px;
  line-height: 1;
}

body .drawer-hero h2 {
  max-width: 25ch;
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

body .drawer-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  line-height: 1.4;
}

body .event-quick-actions {
  margin-bottom: 10px;
}

body .event-quick-actions .primary-button {
  flex: 1 1 auto;
  text-align: center;
}

body .event-quick-actions .secondary-button {
  flex: 0 0 auto;
}

body .event-social-card,
body .event-group-card {
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

body .event-group-card .secondary-button,
body .participation-save {
  width: 100%;
  margin-top: 8px;
}

body .participation-settings {
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

body .participation-settings summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

body .participation-settings summary::-webkit-details-marker {
  display: none;
}

body .participation-settings summary::after {
  content: "+";
  order: 3;
  color: #087f74;
  font-size: 20px;
}

body .participation-settings[open] summary::after {
  content: "-";
}

body .participation-settings summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

body .participation-settings-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 13px;
}

body .participation-settings-body .intent-cloud {
  margin: 0;
}

@media (max-width: 520px) {
  body .drawer {
    max-height: calc(100dvh - 58px);
  }

  body .event-quick-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  body .event-quick-actions .primary-button,
  body .event-quick-actions .secondary-button {
    padding-inline: 11px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* Trusted groups: authentication, visibility and member chat */
body .avatar-button.signed-out {
  width: auto;
  min-width: 66px;
  border-radius: 7px;
  padding: 0 13px;
  color: #087f74;
  background: #e7f6f3;
  font-size: 12px;
}

body .modal {
  z-index: 1400;
}

body .auth-dialog,
body .chat-dialog {
  width: min(100%, 500px);
  border-radius: 8px;
  padding: 20px;
}

body .auth-reason {
  margin: 0 0 14px;
  border-left: 3px solid #087f74;
  padding: 9px 11px;
  color: #36505a;
  background: #edf8f6;
  font-size: 12px;
}

body .google-auth-slot {
  display: grid;
  min-height: 50px;
  place-items: center;
  gap: 5px;
}

body .google-auth-slot small,
body .auth-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

body .google-placeholder {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #46515b;
  background: #ffffff;
  font-weight: 750;
}

body .auth-provider-stack {
  display: grid;
  gap: 10px;
}

body .google-login-button,
body .auth-managed-button {
  width: 100%;
  min-height: 46px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

body .google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #c9ced3;
  color: #25313a;
  background: #ffffff;
}

body .google-login-button:hover {
  border-color: #087f74;
  background: #f7fbfa;
}

body .google-login-button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #ffffff;
  background: #4285f4;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

body .auth-provider-stack + .auth-privacy {
  margin-top: 12px;
}

body .auth-connecting {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

body .auth-connecting small {
  color: var(--muted);
  font-size: 11px;
}

body .auth-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #cce7e2;
  border-top-color: #087f74;
  border-radius: 50%;
  animation: auth-spin .8s linear infinite;
}

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

body .auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  color: var(--muted);
  font-size: 10px;
}

body .auth-divider::before,
body .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

body .auth-channel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
  background: #f3f6f5;
}

body .auth-channel-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

body .auth-channel-tabs button.active {
  color: #087f74;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(24, 33, 43, .08);
}

body .auth-form {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}

body .auth-form .field-line {
  background: #f8faf9;
}

body .auth-form .primary-button {
  width: 100%;
}

body .text-button {
  border: 0;
  padding: 7px;
  color: #087f74;
  background: transparent;
  font-weight: 800;
}

body .text-button.danger {
  color: #a43a45;
}

body .auth-step-head,
body .account-summary-card {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #c7e4de;
  border-radius: 8px;
  padding: 12px;
  background: #f0f9f7;
}

body .auth-step-head div,
body .account-summary-card div {
  display: grid;
  gap: 2px;
}

body .auth-step-head small,
body .account-summary-card small {
  color: var(--muted);
  font-size: 10px;
}

body .auth-step-icon,
body .account-verified-mark {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: #087f74;
  font-weight: 900;
}

body .dev-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border: 1px dashed #d0ad36;
  border-radius: 7px;
  padding: 10px 12px;
  color: #664f05;
  background: #fff9df;
}

body .dev-code-box span {
  font-size: 10px;
}

body .dev-code-box strong,
body .auth-code-field input {
  letter-spacing: 0;
}

body .form-error {
  margin: 10px 0 0;
  color: #a43a45;
  font-size: 11px;
  font-weight: 750;
}

body .account-summary-card {
  margin-bottom: 14px;
}

body .account-logout {
  width: 100%;
  margin-top: 14px;
}

body .participation-friendly {
  display: grid;
  gap: 12px;
  margin-top: 9px;
  border: 1px solid #b9dfd8;
  border-radius: 8px;
  padding: 13px;
  background: #f8fcfb;
}

body .participation-title > div {
  display: grid;
  gap: 2px;
}

body .participation-title small {
  color: var(--muted);
  font-size: 10px;
}

body .visibility-options {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 0;
  padding: 0;
}

body .visibility-options legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

body .visibility-options label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #ffffff;
}

body .visibility-options label.active {
  border-color: #087f74;
  background: #eaf8f5;
}

body .visibility-options input {
  margin: 0;
  accent-color: #087f74;
}

body .visibility-options label span {
  display: grid;
  gap: 1px;
}

body .visibility-options label small {
  color: var(--muted);
  font-size: 9px;
}

body .participation-intent-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

body .participation-intent-select select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  color: var(--ink);
  background: #ffffff;
}

body select option {
  color: #132b3b;
  background: #ffffff;
}

body .participation-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body .social-locked-panel {
  display: grid;
  justify-items: start;
  gap: 8px;
  border: 1px dashed #bfcac5;
  border-radius: 8px;
  padding: 15px;
  background: #f7f9f8;
}

body .social-locked-panel.compact {
  margin-top: 9px;
  padding: 12px;
}

body .social-locked-panel small {
  color: var(--muted);
}

body .transport-plan-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

body .transport-handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #b9dfd8;
  border-radius: 8px;
  padding: 11px;
  background: #edf8f6;
}

body .transport-handoff.needs-copy {
  border-color: #e4c774;
  background: #fff9e7;
}

body .transport-handoff div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body .transport-handoff small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .chat-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  height: min(720px, calc(100dvh - 36px));
}

body .chat-member-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-block: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
  font-size: 10px;
}

body .chat-message-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 14px 2px;
}

body .chat-message {
  align-self: flex-start;
  max-width: 82%;
}

body .chat-message.mine {
  align-self: flex-end;
}

body .chat-message span {
  display: block;
  margin: 0 5px 3px;
  color: var(--muted);
  font-size: 9px;
}

body .chat-message p {
  margin: 0;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #edf1ef;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

body .chat-message.mine p {
  color: #ffffff;
  background: #087f74;
}

body .chat-empty {
  margin: auto;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

body .chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

body .chat-compose input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  color: var(--ink);
  background: #ffffff;
}

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

@media (max-width: 520px) {
  body .auth-dialog,
  body .chat-dialog {
    width: 100%;
    height: min(100dvh, 760px);
    max-height: 100dvh;
    border-radius: 0;
    padding: 16px;
  }

  body .transport-plan-actions,
  body .transport-handoff {
    display: grid;
    grid-template-columns: 1fr;
  }

  body .transport-plan-actions .primary-button,
  body .transport-plan-actions .secondary-button,
  body .transport-handoff .secondary-button {
    width: 100%;
  }

  body .participation-intent-select {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Painner Conecta identity, social inbox and profile workspace */
:root {
  --ink: #102a43;
  --muted: #617283;
  --paper: #f3f7f8;
  --surface: #ffffff;
  --surface-2: #eef5f6;
  --line: #d9e4e8;
  --teal: #087f8c;
  --teal-2: #20c6ce;
  --teal-soft: #ddf7f7;
  --coral: #e78327;
  --blue: #0b2942;
  --gold: #d58b2f;
}

body {
  background: #f3f7f8;
}

.launch-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #0b2942;
  background: #f3f7f8;
  transition: opacity .32s ease, visibility .32s ease;
}

.launch-screen.leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.launch-brand {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px;
}

.launch-mark {
  width: 116px;
  height: 116px;
  overflow: visible;
  filter: drop-shadow(0 16px 28px rgba(11, 41, 66, .2));
  animation: launch-mark-arrive .45s cubic-bezier(.2, .8, .2, 1) both;
}

.launch-path {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: launch-line 1s cubic-bezier(.55, 0, .2, 1) forwards;
}

.launch-path-teal {
  stroke: #21c7cf;
  animation-delay: .14s;
}

.launch-path-gold {
  stroke: #f2a33a;
  animation-delay: .25s;
}

.launch-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: launch-node .3s ease forwards;
}

.launch-node-a {
  fill: #eafcff;
  animation-delay: .72s;
}

.launch-node-b {
  fill: #fff5e7;
  animation-delay: .84s;
}

.launch-node-c {
  fill: #ffffff;
  animation-delay: 1s;
}

.launch-wordmark {
  display: grid;
  justify-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(8px);
  animation: launch-copy .38s ease .78s forwards;
}

.launch-wordmark strong {
  font-size: 23px;
  letter-spacing: 0;
}

.launch-wordmark span {
  color: #637987;
  font-size: 12px;
  letter-spacing: 0;
}

@keyframes launch-mark-arrive {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes launch-line {
  to { stroke-dashoffset: 0; }
}

@keyframes launch-node {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes launch-copy {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .launch-mark,
  .launch-path,
  .launch-node,
  .launch-wordmark {
    animation-delay: 0s;
    animation-duration: .01s;
  }
}

body:has(.modal.open) {
  overflow: hidden;
}

body .app-shell {
  padding-bottom: 112px;
}

body .top-bar {
  min-height: 58px;
}

body .brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

body .brand-lockup > div {
  min-width: 0;
}

body .brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(11, 41, 66, .18);
}

body .brand-lockup .eyebrow {
  margin-bottom: 2px;
  color: #087f8c;
  font-size: 10px;
}

body .top-bar h1 {
  overflow: hidden;
  max-width: none;
  margin: 0;
  color: #0b2942;
  font-size: 22px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .avatar-button {
  flex: 0 0 auto;
  border-color: rgba(32, 198, 206, .32);
  color: #ffffff;
  background: #0b2942;
  box-shadow: 0 7px 18px rgba(11, 41, 66, .14);
}

body .avatar-button.signed-out {
  width: auto;
  min-width: 66px;
  padding-inline: 12px;
  color: #0b2942;
  background: #ffffff;
}

body .primary-button,
body .nav-item.active {
  color: #ffffff;
  background: #0b7782;
}

body .primary-button:hover {
  background: #075f68;
}

body .secondary-button {
  border-color: #bdd4da;
  color: #0b5561;
  background: #ffffff;
}

body .eyebrow {
  color: #087f8c;
}

body .bottom-nav {
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 14;
  width: min(calc(100% - 24px), 470px);
  min-height: 68px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(11, 41, 66, .12);
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 42px rgba(11, 41, 66, .16);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

body .nav-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 14px;
  padding: 5px 2px;
  color: #687b89;
  background: transparent;
  font-size: 10px;
  line-height: 1;
}

body .nav-item .nav-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .nav-item span {
  overflow: hidden;
  max-width: 100%;
  font-size: 9px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .nav-item.active {
  background: linear-gradient(145deg, #0b2942, #0b7782);
}

body .nav-item.active::before {
  position: absolute;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f2a33a;
  content: "";
}

body .nav-item.producer-focus:not(.active) {
  color: #996019;
  background: #fff4e6;
}

body .connections-shell {
  width: min(100%, 760px);
  margin-inline: auto;
  gap: 14px;
}

body .connection-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body .metric-card {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

body .metric-card strong {
  color: #0b2942;
  font-size: 20px;
  line-height: 1;
}

body .metric-card span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

body .connections-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

body .connections-head h3 {
  margin: 0 0 4px;
  color: #0b2942;
  font-size: 20px;
}

body .connections-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

body .connections-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 3px solid #20c6ce;
  border-bottom-color: #f2a33a;
  border-radius: 14px;
  color: #0b2942;
  background: #eafcff;
  font-weight: 950;
}

body .connection-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
  background: #edf3f5;
}

body .connection-tabs button {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  padding: 7px;
  color: #687b89;
  background: transparent;
  font-size: 11px;
  font-weight: 820;
}

body .connection-tabs button.active {
  color: #0b2942;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 41, 66, .08);
}

body .connection-tabs button span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 10px;
  color: #0b5561;
  background: #dff7f8;
  font-size: 9px;
}

body .connection-card {
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

body .connection-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body .connection-person > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body .connection-person small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .connection-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #0b2942;
  background: #dff7f8;
  font-weight: 900;
}

body .affinity-tag {
  border-radius: 4px;
  padding: 5px 7px;
  color: #80500f;
  background: #fff1dc;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

body .connection-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

body .connection-context span,
body .connection-context button {
  border: 1px solid #c7dde1;
  border-radius: 5px;
  padding: 6px 8px;
  color: #0b5561;
  background: #f2fafb;
  font-size: 10px;
  font-weight: 760;
}

body .connection-context button {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .connection-card > p,
body .connections-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

body .connection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body .connections-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  border: 1px dashed #b9ced4;
  border-radius: 8px;
  padding: 20px;
  background: #f8fbfc;
}

body .profile-modal {
  align-items: center;
  justify-content: center;
}

body .profile-dialog {
  position: relative;
  display: grid;
  width: min(100%, 620px);
  height: min(780px, calc(100dvh - 36px));
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 12px;
  padding: 37px 18px 0;
}

body .profile-dialog::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 74px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b2942, #20c6ce, #e78327);
  transform: translateX(-50%);
}

body .account-summary-card {
  margin: 10px 0 0;
  border: 0;
  border-radius: 7px;
  padding: 10px 12px;
  background: #edf8f8;
}

body .account-verified-mark {
  background: #0b7782;
}

body .profile-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

body .profile-tabs button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 8px 4px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

body .profile-tabs button.active {
  border-bottom-color: #20aeb8;
  color: #0b2942;
}

body .profile-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 2px 20px;
}

body .profile-panel {
  display: grid;
  gap: 14px;
}

body .profile-panel.active {
  animation: fade-in .18s ease;
}

body .profile-panel[hidden] {
  display: none;
}

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

body .profile-section-head > div,
body .preference-block > div:first-child {
  display: grid;
  gap: 3px;
}

body .profile-section-head small,
body .preference-block small,
body .field-line small,
body .toggle-line small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

body .profile-completion {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 5px 7px;
  color: #80500f;
  background: #fff1dc;
  font-size: 9px;
  font-weight: 850;
}

body .profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body .profile-dialog .field-line {
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  color: #526878;
  background: #f9fbfc;
  font-size: 10px;
}

body .profile-dialog .field-line input,
body .profile-dialog .field-line select,
body .profile-dialog .field-line textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  color: #0b2942;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: vertical;
}

body .profile-dialog .field-line:focus-within {
  border-color: #20aeb8;
  box-shadow: 0 0 0 3px rgba(32, 174, 184, .12);
}

body .preference-block {
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

body .profile-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body .profile-chip-cloud .chip {
  min-height: 34px;
  border: 1px solid #c6d8dd;
  border-radius: 6px;
  padding: 7px 9px;
  color: #425c6c;
  background: #ffffff;
  font-size: 10px;
}

body .profile-chip-cloud .chip.active {
  border-color: #0b7782;
  color: #ffffff;
  background: #0b7782;
}

body .recommendation-box {
  display: grid;
  gap: 5px;
  border: 0;
  border-left: 3px solid #f2a33a;
  border-radius: 0;
  padding: 11px 0 11px 12px;
  background: transparent;
}

body .recommendation-line {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  color: #0b2942;
  background: transparent;
  text-align: left;
}

body .privacy-note {
  border-left: 3px solid #20aeb8;
  padding: 4px 0 4px 12px;
}

body .privacy-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

body .privacy-account-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid #d7e5e8;
  border-bottom: 1px solid #d7e5e8;
}

body .privacy-account-actions > div:first-child {
  display: grid;
  gap: 3px;
}

body .privacy-account-actions small {
  color: #607487;
}

body .privacy-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body .danger-text-button {
  border: 0;
  background: transparent;
  color: #a73442;
  min-height: 44px;
  padding: 0 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body .profile-dialog .toggle-line {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: #ffffff;
}

body .profile-dialog .toggle-line input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0b7782;
}

body .profile-dialog .toggle-line span {
  display: grid;
  gap: 2px;
}

body .profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0 14px;
  background: #ffffff;
}

body .profile-footer span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

@keyframes fade-in {
  from {
    opacity: .4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  body .app-shell {
    padding: 12px 10px 108px;
  }

  body .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  body .top-bar h1 {
    max-width: min(55vw, 260px);
    font-size: 16px;
  }

  body .bottom-nav {
    width: calc(100% - 16px);
    min-height: 64px;
    border-radius: 18px;
  }

  body .nav-item {
    min-height: 52px;
  }

  body .nav-item .nav-icon {
    width: 21px;
    height: 21px;
  }

  body .connection-person {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  body .connection-avatar {
    width: 38px;
    height: 38px;
  }

  body .affinity-tag {
    grid-column: 2;
    justify-self: start;
  }

  body .connection-actions .primary-button,
  body .connection-actions .secondary-button {
    flex: 1 1 140px;
  }

  body .profile-modal {
    padding: 0;
  }

  body .profile-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 33px 14px 0;
  }

  body .profile-field-grid {
    grid-template-columns: 1fr;
  }

  body .profile-section-head {
    display: grid;
  }

  body .profile-completion {
    justify-self: start;
  }
}

@media (max-width: 390px) {
  body .nav-item span {
    font-size: 8px;
  }

  body .nav-item {
    gap: 2px;
    padding-inline: 1px;
  }

  body .connections-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  body .connections-symbol {
    width: 40px;
    height: 40px;
  }

  body .connection-tabs button {
    gap: 3px;
    padding-inline: 3px;
    font-size: 10px;
  }
}

/* MVP pilot operations */
body .top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body .notification-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #c8d9dd;
  border-radius: 8px;
  color: #0b2942;
  background: #fff;
  cursor: pointer;
}

body .notification-button[hidden],
body .notification-badge[hidden] {
  display: none !important;
}

body .notification-button .nav-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #d64f42;
  font-size: 10px;
  font-weight: 800;
}

body .notification-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: min(720px, calc(100dvh - 24px));
}

body .notification-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #d8e4e6;
  color: #637987;
  font-size: 13px;
}

body .notification-list {
  display: grid;
  gap: 0;
  overflow-y: auto;
}

body .notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5edef;
  color: #0b2942;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

body .notification-item.unread {
  background: #eef8f7;
}

body .notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: transparent;
}

body .notification-item.unread .notification-dot {
  background: #0d8a8a;
}

body .notification-copy {
  display: grid;
  gap: 4px;
}

body .notification-copy span,
body .notification-copy time {
  color: #637987;
  font-size: 12px;
}

body .submission-list,
body .moderation-list,
body .blocked-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

body .submission-item,
body .moderation-item,
body .blocked-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d7e4e5;
  border-radius: 8px;
  background: #fff;
}

body .submission-item header,
body .moderation-item header,
body .blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body .status-chip {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #526a77;
  background: #eaf0f1;
  font-size: 11px;
  font-weight: 800;
}

body .status-chip.approved,
body .status-chip.resolved {
  color: #076153;
  background: #dff3eb;
}

body .status-chip.pending,
body .status-chip.open,
body .status-chip.reviewing {
  color: #855b00;
  background: #fff0c9;
}

body .status-chip.rejected,
body .status-chip.dismissed {
  color: #8f3933;
  background: #fae4e1;
}

body .admin-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #cfdfe1;
}

body .admin-panel h4 {
  margin: 0;
  color: #0b2942;
}

@media (max-width: 600px) {
  body .top-actions {
    gap: 6px;
  }

  body .notification-button {
    width: 38px;
    height: 38px;
  }

  body .notification-tools,
  body .submission-item header,
  body .moderation-item header,
  body .blocked-item {
    align-items: flex-start;
  }

  body .notification-tools,
  body .submission-item header,
  body .moderation-item header {
    flex-direction: column;
  }
}

/* Explicit appearance: prevents the WebView from forcing partial dark colors. */
:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="light"] body .muted,
:root[data-theme="light"] body .event-card-main small,
:root[data-theme="light"] body .recommendation-line small,
:root[data-theme="light"] body .notification-copy span,
:root[data-theme="light"] body .notification-copy time {
  color: #617283;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf5f6;
  --muted: #a7bac3;
  --paper: #10191e;
  --surface: #17242a;
  --surface-2: #203139;
  --line: #344b55;
  --teal: #55d5d7;
  --teal-2: #55d5d7;
  --teal-soft: #153e42;
  --blue: #84b5d5;
}

body .theme-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #c8d9dd;
  border-radius: 8px;
  color: #0b2942;
  background: #ffffff;
}

body .theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

:root[data-theme="light"] .theme-icon-sun,
:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] body {
  color: var(--ink);
  background: var(--paper);
}

:root[data-theme="dark"] body .search-panel,
:root[data-theme="dark"] body .event-results,
:root[data-theme="dark"] body .map-toolbar,
:root[data-theme="dark"] body .event-card,
:root[data-theme="dark"] body .view-panel,
:root[data-theme="dark"] body .stat-tile,
:root[data-theme="dark"] body .connection-row,
:root[data-theme="dark"] body .connections-card,
:root[data-theme="dark"] body .ride-row,
:root[data-theme="dark"] body .transport-event-card,
:root[data-theme="dark"] body .recommendation-box,
:root[data-theme="dark"] body .producer-form,
:root[data-theme="dark"] body .producer-head,
:root[data-theme="dark"] body .producer-lock,
:root[data-theme="dark"] body .modal-content,
:root[data-theme="dark"] body .onboarding-card,
:root[data-theme="dark"] body .notification-item,
:root[data-theme="dark"] body .submission-item,
:root[data-theme="dark"] body .moderation-item,
:root[data-theme="dark"] body .blocked-item,
:root[data-theme="dark"] body .profile-dialog .toggle-line,
:root[data-theme="dark"] body .privacy-note,
:root[data-theme="dark"] body .privacy-account-actions {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

:root[data-theme="dark"] body .search-box input,
:root[data-theme="dark"] body .city-box select,
:root[data-theme="dark"] body .field-line,
:root[data-theme="dark"] body .profile-dialog .field-line,
:root[data-theme="dark"] body .profile-dialog .field-line input,
:root[data-theme="dark"] body .profile-dialog .field-line select,
:root[data-theme="dark"] body .profile-dialog .field-line textarea,
:root[data-theme="dark"] body .producer-form input,
:root[data-theme="dark"] body .producer-form select,
:root[data-theme="dark"] body .producer-form textarea {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

:root[data-theme="dark"] body .chip,
:root[data-theme="dark"] body .tag,
:root[data-theme="dark"] body .secondary-button,
:root[data-theme="dark"] body .text-button,
:root[data-theme="dark"] body .choice-card,
:root[data-theme="dark"] body .profile-tabs,
:root[data-theme="dark"] body .profile-tabs button,
:root[data-theme="dark"] body .theme-button,
:root[data-theme="dark"] body .notification-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

:root[data-theme="dark"] body .icon-button,
:root[data-theme="dark"] body .account-summary-card,
:root[data-theme="dark"] body .profile-footer {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

:root[data-theme="dark"] body .account-summary-card strong,
:root[data-theme="dark"] body .account-summary-card small,
:root[data-theme="dark"] body .recommendation-box strong,
:root[data-theme="dark"] body .recommendation-line,
:root[data-theme="dark"] body .recommendation-line span {
  color: var(--ink);
}

:root[data-theme="dark"] body .recommendation-line small,
:root[data-theme="dark"] body .profile-footer span {
  color: var(--muted);
}

:root[data-theme="dark"] body .recommendation-line:hover,
:root[data-theme="dark"] body .recommendation-line:focus-visible {
  color: #07191d;
  background: #7de1d5;
}

:root[data-theme="dark"] body .recommendation-line:hover small,
:root[data-theme="dark"] body .recommendation-line:focus-visible small {
  color: #163a3d;
}

:root[data-theme="dark"] body .chip.active,
:root[data-theme="dark"] body .choice-card.active,
:root[data-theme="dark"] body .profile-tabs button.active {
  color: #07191d;
  background: #7de1d5;
}

:root[data-theme="dark"] body h1,
:root[data-theme="dark"] body h2,
:root[data-theme="dark"] body h3,
:root[data-theme="dark"] body h4,
:root[data-theme="dark"] body strong,
:root[data-theme="dark"] body .event-card-main strong,
:root[data-theme="dark"] body .producer-head h3,
:root[data-theme="dark"] body .admin-panel h4 {
  color: var(--ink);
}

:root[data-theme="dark"] body .map-toolbar strong {
  color: var(--ink);
}

:root[data-theme="dark"] body .muted,
:root[data-theme="dark"] body small,
:root[data-theme="dark"] body .event-card-main small,
:root[data-theme="dark"] body .notification-copy span,
:root[data-theme="dark"] body .notification-copy time,
:root[data-theme="dark"] body .profile-dialog .field-line {
  color: var(--muted);
}

:root[data-theme="dark"] body .bottom-nav {
  border-color: var(--line);
  background: rgba(20, 32, 38, .96);
}

:root[data-theme="dark"] body .nav-item {
  color: var(--muted);
}

:root[data-theme="dark"] body .nav-item.active {
  color: #07191d;
  background: #7de1d5;
}

:root[data-theme="dark"] body .drawer {
  color: var(--ink);
  background: var(--paper);
}

:root[data-theme="dark"] body .drawer-hero,
:root[data-theme="dark"] body .drawer-hero h2,
:root[data-theme="dark"] body .drawer-hero p {
  color: #07191d;
}

:root[data-theme] body .launch-screen .launch-wordmark strong {
  color: #0b2942;
}

:root[data-theme] body .launch-screen .launch-wordmark span {
  color: #637987;
}

@media (max-width: 600px) {
  body .theme-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

@media (max-width: 620px) {
  body .brand-lockup {
    flex: 1 1 auto;
  }

  body .top-bar h1 {
    display: -webkit-box;
    overflow: hidden;
    max-width: none;
    line-height: 1.12;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Theme contrast audit: every dark surface owns its foreground colors. */
:root[data-theme="dark"] body .transport-shell,
:root[data-theme="dark"] body .transport-head,
:root[data-theme="dark"] body .transport-event-filter,
:root[data-theme="dark"] body .transport-event-picker,
:root[data-theme="dark"] body .transport-form,
:root[data-theme="dark"] body .transport-create-panel,
:root[data-theme="dark"] body .transport-plan,
:root[data-theme="dark"] body .provider-card,
:root[data-theme="dark"] body .connections-empty,
:root[data-theme="dark"] body .connection-card,
:root[data-theme="dark"] body .metric-card {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

:root[data-theme="dark"] body .transport-event-filter,
:root[data-theme="dark"] body .transport-form,
:root[data-theme="dark"] body .transport-create-panel,
:root[data-theme="dark"] body .transport-create-panel[open] > summary,
:root[data-theme="dark"] body .transport-scope-tabs,
:root[data-theme="dark"] body .connection-tabs {
  border-color: var(--line);
  background: var(--surface-2);
}

:root[data-theme="dark"] body .transport-head h3,
:root[data-theme="dark"] body .transport-section h4,
:root[data-theme="dark"] body .transport-filter-heading strong,
:root[data-theme="dark"] body .transport-event-picker select,
:root[data-theme="dark"] body .transport-form select,
:root[data-theme="dark"] body .transport-form input,
:root[data-theme="dark"] body .provider-card,
:root[data-theme="dark"] body .connections-head h3,
:root[data-theme="dark"] body .connections-empty strong,
:root[data-theme="dark"] body .connection-card strong,
:root[data-theme="dark"] body .metric-card strong {
  color: var(--ink);
}

:root[data-theme="dark"] body .transport-head .muted,
:root[data-theme="dark"] body .transport-filter-heading span,
:root[data-theme="dark"] body .transport-event-picker,
:root[data-theme="dark"] body .transport-event-summary p,
:root[data-theme="dark"] body .transport-plan p,
:root[data-theme="dark"] body .transport-empty p,
:root[data-theme="dark"] body .transport-filter-empty p,
:root[data-theme="dark"] body .transport-section .section-heading > span,
:root[data-theme="dark"] body .provider-card small,
:root[data-theme="dark"] body .connections-head p:last-child,
:root[data-theme="dark"] body .connections-empty p,
:root[data-theme="dark"] body .connection-card > p,
:root[data-theme="dark"] body .connection-person small,
:root[data-theme="dark"] body .metric-card span {
  color: var(--muted);
}

:root[data-theme="dark"] body .transport-scope-tabs button,
:root[data-theme="dark"] body .connection-tabs button {
  color: var(--muted);
  background: transparent;
}

:root[data-theme="dark"] body .transport-scope-tabs button span,
:root[data-theme="dark"] body .transport-event-signals span,
:root[data-theme="dark"] body .provider-token,
:root[data-theme="dark"] body .connection-tabs button span {
  color: #c4d4da;
  background: #2a3d45;
}

:root[data-theme="dark"] body .transport-scope-tabs button.active,
:root[data-theme="dark"] body .connection-tabs button.active {
  color: #07191d;
  background: #7de1d5;
}

:root[data-theme="dark"] body .transport-scope-tabs button.active span,
:root[data-theme="dark"] body .connection-tabs button.active span {
  color: #0b4144;
  background: rgba(255, 255, 255, .72);
}

:root[data-theme="dark"] body .transport-event-summary {
  border-color: #3f6967;
  background: #183330;
}

:root[data-theme="dark"] body .transport-event-signals .participating,
:root[data-theme="dark"] body .privacy-badge {
  border-color: #3f7771;
  color: #a9eee5;
  background: #173b37;
}

:root[data-theme="dark"] body .provider-card:hover,
:root[data-theme="dark"] body .provider-card:focus-visible {
  border-color: #69bdb4;
  background: #20353a;
}

:root[data-theme="dark"] body .transport-form-grid .field-line,
:root[data-theme="dark"] body .location-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

:root[data-theme="dark"] body .connections-symbol {
  color: #dffbfa;
  background: #17353b;
}

:root[data-theme="dark"] body .connection-avatar {
  color: #dffbfa;
  background: #1d4448;
}

:root[data-theme="dark"] body .connection-context span,
:root[data-theme="dark"] body .connection-context button {
  border-color: #3f5f68;
  color: #bde9e8;
  background: #20343b;
}

:root[data-theme="dark"] body .affinity-tag {
  color: #ffd99b;
  background: #49391f;
}

:root[data-theme="dark"] body .transport-empty,
:root[data-theme="dark"] body .connections-empty {
  border-color: #49616a;
}

:root[data-theme="dark"] body .eyebrow {
  color: #55d5d7;
}

:root[data-theme="dark"] body .transport-filter-heading > span {
  color: #d4e1e5;
  background: #2a3d45;
}

:root[data-theme="dark"] body .social-locked-panel {
  border-color: #49616a;
  color: var(--ink);
  background: var(--surface);
}

:root[data-theme="dark"] body .social-locked-panel p {
  color: var(--muted);
}

:root[data-theme="dark"] body .map-control,
:root[data-theme="dark"] body .leaflet-bar a,
:root[data-theme="dark"] body .leaflet-bar a:hover,
:root[data-theme="dark"] body .leaflet-bar a:focus {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

:root[data-theme="light"] body .eyebrow {
  color: #076f79;
}

:root[data-theme="light"] body .results-heading .eyebrow {
  color: #9a500f;
}

:root[data-theme="light"] body .nav-item {
  color: #5b7180;
}

/* Interactive states: selected controls and network shortcuts. */
body .connection-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body .metric-action {
  position: relative;
  width: 100%;
  min-width: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body .metric-action small {
  color: #087f8c;
  font-size: 9px;
  font-weight: 850;
}

body .metric-action:hover,
body .metric-action:focus-visible,
body .metric-action.active {
  border-color: #20aeb8;
  background: #eefafa;
  outline: none;
}

body .network-summary-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #bcdde0;
  border-radius: 9px;
  padding: 14px;
  background: #f5fbfb;
}

body .network-event-suggestions {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

body .network-event-suggestions .tag {
  flex: 0 0 auto;
}

body .producer-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

body .network-summary-head,
body .network-summary-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body .network-summary-head p {
  margin: 0 0 2px;
}

body .network-summary-list {
  display: grid;
  gap: 7px;
}

body .network-summary-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body .network-summary-row span,
body .network-summary-empty {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body .network-summary-row small,
body .network-summary-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

body .network-summary-row b {
  flex: 0 0 auto;
  color: #087f8c;
  font-size: 10px;
}

body .network-summary-empty {
  justify-items: start;
  padding: 8px 0 2px;
}

body .provider-card.active {
  border-color: #20aeb8;
  box-shadow: inset 0 0 0 1px #20aeb8;
}

@media (max-width: 700px) {
  body .connection-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  body .network-summary-head,
  body .network-summary-row {
    align-items: flex-start;
  }

  body .network-summary-head,
  body .producer-head,
  body .producer-head-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

:root[data-theme="dark"] body .choice-card.active {
  border-color: #7de1d5;
  color: #153f43;
  background: #7de1d5;
}

:root[data-theme="dark"] body .choice-card.active span {
  color: #07191d;
}

:root[data-theme="dark"] body .choice-card.active small {
  color: #17484c;
}

:root[data-theme="dark"] body .provider-card.active {
  border-color: #7de1d5;
  background: #1b3e3d;
  box-shadow: inset 0 0 0 1px #7de1d5;
}

:root[data-theme="dark"] body .transport-handoff,
:root[data-theme="dark"] body .transport-handoff.needs-copy,
:root[data-theme="dark"] body .safety-log-item,
:root[data-theme="dark"] body .network-summary-panel,
:root[data-theme="dark"] body .network-summary-row {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

:root[data-theme="dark"] body .network-event-suggestions {
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] body .transport-handoff strong,
:root[data-theme="dark"] body .safety-log-item strong,
:root[data-theme="dark"] body .network-summary-panel strong,
:root[data-theme="dark"] body .network-summary-row strong {
  color: var(--ink);
}

:root[data-theme="dark"] body .transport-handoff small,
:root[data-theme="dark"] body .safety-log-item p,
:root[data-theme="dark"] body .network-summary-row small,
:root[data-theme="dark"] body .network-summary-empty p {
  color: var(--muted);
}

:root[data-theme="dark"] body .metric-action small,
:root[data-theme="dark"] body .network-summary-row b {
  color: #7de1d5;
}

:root[data-theme="dark"] body .metric-action:hover,
:root[data-theme="dark"] body .metric-action:focus-visible,
:root[data-theme="dark"] body .metric-action.active {
  border-color: #7de1d5;
  background: #1b3e3d;
}

:root[data-theme="dark"] body .transport-handoff .secondary-button {
  border-color: #6e8b94;
  color: #f2f8f9;
  background: #263b44;
}

:root[data-theme="dark"] body .participation-friendly,
:root[data-theme="dark"] body .visibility-options label,
:root[data-theme="dark"] body .chat-compose input {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

:root[data-theme="dark"] body .visibility-options label.active {
  border-color: #7de1d5;
  background: #1b3e3d;
}

:root[data-theme="dark"] body .visibility-options label strong,
:root[data-theme="dark"] body .participation-intent-select select {
  color: var(--ink);
}

:root[data-theme="dark"] body .visibility-options label small,
:root[data-theme="dark"] body .participation-intent-select,
:root[data-theme="dark"] body .chat-compose input::placeholder {
  color: var(--muted);
  opacity: 1;
}

:root[data-theme="dark"] body .participation-intent-select select {
  border-color: var(--line);
  background: var(--surface-2);
  color-scheme: dark;
}

@media (max-width: 520px) {
  body .participation-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
