:root {
  --paper: #0c0e11;
  --white: #16191e;
  --ink: #edf2f5;
  --muted: #9da8b1;
  --line: #2b3239;
  --green: #81ead8;
  --green-light: #182e2c;
  --red: #f08f9c;
  --radius: 8px;
  --on-accent: #092320;
  --glow: #81ead822;
  font-family: Arial, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 14px;
  letter-spacing: 0;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #81ead8;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.35;
}
h2 {
  font-size: 19px;
  line-height: 1.45;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.7;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
input,
textarea,
select {
  min-width: 0;
  color: var(--ink);
}
input,
textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  line-height: 1.5;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #8d99a5;
}
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 10px 28px 10px 10px;
  max-width: 100%;
}
input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.spacer {
  flex: 1;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.boot-state {
  padding: 40px;
}
.button {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.button:hover {
  background: #22272e;
}
.button.primary,
.icon-button.primary {
  background: var(--green);
  color: var(--on-accent);
  border-color: var(--green);
  box-shadow: 0 0 18px var(--glow);
}
.button.primary:hover,
.icon-button.primary:hover {
  background: #a2f2e5;
}
.button.danger {
  color: #30151b;
  background: var(--red);
  border-color: var(--red);
}
.button.small {
  min-height: 34px;
  font-size: 12px;
  padding: 6px 10px;
  white-space: nowrap;
}
.button.small svg {
  width: 16px;
  height: 16px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 6px;
  padding: 8px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #20252c;
}
.icon-button.selected,
.button.selected {
  background: var(--green-light);
  color: var(--green);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}
.text-link svg {
  width: 16px;
  height: 16px;
}
.text-button {
  padding: 10px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.centered {
  display: flex;
  width: max-content;
  max-width: 90%;
  margin: 0 auto 24px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 212px;
  padding: 34px 20px 20px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 40px;
  color: var(--green);
}
.brand > svg {
  width: 35px;
  height: 35px;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 7px #81ead844);
}
.brand > span {
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}
.brand > span > span {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  font-weight: 600;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #a9b3bc;
  white-space: nowrap;
}
.nav-link:hover {
  background: #1c2127;
}
.nav-link.active {
  background: #172b2a;
  color: var(--green);
  box-shadow:
    inset 2px 0 var(--green),
    inset 0 0 18px #81ead806;
}
.nav-link svg {
  width: 21px;
  height: 21px;
}
.compose-trigger {
  margin-top: 30px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.account-link {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.account-link > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.account-link strong,
.account-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-link small {
  color: var(--muted);
  margin-top: 4px;
}
.account-link > svg {
  width: 14px;
}
.avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #263333;
  color: #a3eadc;
  font-size: 12px;
  font-weight: 700;
}
.avatar.large {
  width: 84px;
  height: 84px;
  font-size: 32px;
  background: #223b36;
}
.workspace {
  margin-left: 212px;
  min-height: 100dvh;
}
.bottom-nav {
  display: none;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 40px 25px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}
.page-header .button {
  flex-shrink: 0;
}
.page-content {
  padding: 28px 40px 50px;
  max-width: 1250px;
  margin: auto;
}
.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 720px) 230px;
  gap: 42px;
}
.feed-column {
  min-width: 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--white);
  min-width: 0;
}
.search-field > svg {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.search-field input {
  border: 0;
  background: none;
  padding: 12px 0;
  border-radius: 0;
  font-size: 13px;
}
.search-field:focus-within {
  outline: 2px solid #81ead8;
  outline-offset: 1px;
}
.search-field input:focus-visible {
  outline: none;
}
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 16px 0 10px;
  flex-shrink: 0;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}
.category-tabs button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #a5afb7;
}
.category-tabs button.active {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  font-weight: 700;
}
.category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  color: var(--muted);
  font-size: 12px;
}
.list-heading strong {
  font-weight: 500;
}
.list-heading select {
  border: 0;
  background: transparent;
  padding: 4px 17px 4px 4px;
  font-size: 12px;
}
.post-list {
  display: grid;
  gap: 14px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  min-width: 0;
}
.post-card h2 {
  font-size: 18px;
  line-height: 1.55;
  margin: 11px 0 7px;
  overflow-wrap: anywhere;
}
.post-card h2 button {
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: 700;
}
.post-card h2 button:hover {
  color: var(--green);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.post-meta time {
  margin-left: auto;
}
.category-label {
  font-weight: 700;
}
.demo-label {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
}
.post-excerpt {
  color: #aeb9c2;
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.byline .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.post-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 4px;
}
.post-actions button:hover {
  background: #242a30;
}
.post-actions svg {
  width: 17px;
  height: 17px;
}
.post-actions .liked {
  color: var(--red);
}
.post-actions .liked svg {
  fill: #56303c;
}
.post-actions .saved {
  color: var(--green);
}
.post-actions .saved svg {
  fill: #234a41;
}
.media-open {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  background: #0e1115;
  border-radius: 6px;
  overflow: hidden;
}
.media-open img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}
.video-label {
  height: 120px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.context-column {
  padding-top: 6px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.section-heading h2 {
  font-size: 15px;
}
.section-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.section-heading > svg {
  color: var(--green);
}
.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stat-line strong {
  font-size: 23px;
  font-weight: 500;
}
.stat-line span {
  font-size: 12px;
  color: var(--muted);
}
.context-column > .text-link {
  margin-top: 20px;
}
.data-note {
  font-size: 11px;
  line-height: 1.7;
  color: #96a2aa;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 15px;
}
.region-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
  margin-bottom: 28px;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.region-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 18px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 6px;
  min-width: 0;
}
.region-item:hover {
  border-color: #658c88;
  background: #20282b;
}
.region-item strong {
  font-size: 15px;
  overflow-wrap: anywhere;
  grid-column: 1;
}
.region-item small {
  color: var(--muted);
  font-size: 11px;
  grid-column: 1;
}
.region-number {
  color: var(--green);
  font-size: 11px;
  margin-bottom: 12px;
}
.region-item > svg:last-child {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  width: 17px;
  color: var(--green);
}
.neighbors-heading {
  margin-top: 32px;
}
.neighbor {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.neighbor > div {
  min-width: 0;
  flex: 1;
}
.neighbor strong,
.neighbor small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.neighbor strong {
  font-size: 12px;
}
.neighbor small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.neighbor .icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
}
.empty-state {
  padding: 60px 20px 28px;
  text-align: center;
  color: var(--muted);
}
.empty-state > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #83b4aa;
}
.empty-state h3 {
  font-size: 15px;
  color: #c8d5d7;
}
.empty-state p {
  font-size: 12px;
  margin-top: 9px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 90px);
  transform: translate(-50%, 15px);
  background: #252d33;
  color: var(--ink);
  border-radius: 6px;
  padding: 13px 20px;
  max-width: min(460px, 90vw);
  font-size: 13px;
  z-index: 10000;
  opacity: 0;
  transition:
    opacity 0.18s,
    transform 0.18s;
  pointer-events: none;
  text-align: center;
  line-height: 1.6;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Map fills the workspace; the list is an independent scrolling surface. */
.map-workspace {
  height: 100dvh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.map-header h1 {
  font-size: 24px;
}
.map-header .eyebrow {
  font-size: 9px;
}
.map-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.map-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  z-index: 2;
}
.map-search-area {
  padding: 20px 20px 0;
}
.map-search-area .category-tabs {
  gap: 1px;
}
.map-search-area .category-tabs button {
  padding: 7px;
}
.map-sidebar > .list-heading {
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}
.map-list {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}
.post-card.compact {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  background: var(--paper);
}
.post-card.compact:hover {
  background: var(--white);
}
.compact h2 {
  font-size: 16px;
}
.compact .post-excerpt {
  -webkit-line-clamp: 2;
  font-size: 12px;
}
.compact .post-footer {
  margin-top: 13px;
}
.map-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #111315;
  isolation: isolate;
}
.ops-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px 40px;
}
.ops-setup {
  max-width: 480px;
}
.ops-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.ops-stats > div {
  padding: 22px 12px;
  display: grid;
  gap: 8px;
}
.ops-stats span {
  color: var(--muted);
  font-size: 12px;
}
.ops-stats strong {
  font-size: 24px;
  color: var(--ink);
}
.ops-health,
.ops-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ops-health > div:first-child,
.ops-row > div:first-child {
  min-width: 0;
}
.ops-health small,
.ops-row small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.ops-warning {
  color: #efd58e;
}
.ops-tabs {
  margin-top: 20px;
}
.ops-filters {
  display: flex;
  gap: 12px;
  padding: 14px 0;
}
.ops-filters select {
  max-width: 100%;
}
.ops-filters .search-field {
  width: 360px;
  max-width: 100%;
}
.ops-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
}
.ops-row h2 {
  font-size: 15px;
  line-height: 1.5;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.ops-row p {
  font-size: 13px;
  line-height: 1.65;
  margin: 4px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ops-main {
  flex: 1;
  min-width: 0;
}
.ops-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ops-meta strong {
  color: #91c8f4;
}
.ops-confirm {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.ops-confirm input {
  width: 18px;
  height: 18px;
}
.secret-code {
  font-family: monospace;
  min-width: 0;
  width: 100%;
  margin-bottom: 16px;
}
.load-more {
  margin-top: 16px;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .ops-layout {
    padding: 0 16px 28px;
  }
  .ops-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ops-stats > div {
    padding: 12px 4px;
  }
  .ops-stats strong {
    font-size: 20px;
  }
  .ops-row {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .ops-row .ops-actions {
    align-self: flex-end;
  }
  .ops-health {
    gap: 10px;
  }
  .ops-health strong {
    font-size: 12px;
    line-height: 1.6;
  }
  .profile-buttons {
    flex-wrap: wrap;
  }
}
#leafletMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  font-family: inherit;
  background: #151719;
}
#leafletMap .leaflet-tile-pane {
  filter: grayscale(1) invert(1) brightness(0.78) contrast(0.82);
}
.map-tools,
.map-zoom {
  position: absolute;
  right: 20px;
  z-index: 600;
  display: flex;
  background: var(--white);
  box-shadow: 0 2px 12px #00000066;
  border: 1px solid #465351;
  border-radius: 6px;
  overflow: hidden;
}
.map-tools {
  top: 20px;
  gap: 2px;
  padding: 3px;
}
.map-zoom {
  bottom: 28px;
  flex-direction: column;
  align-items: center;
}
.map-zoom .icon-button {
  border-radius: 0;
}
.map-zoom > span {
  font-size: 11px;
  color: var(--muted);
  padding: 4px;
}
.map-fab {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  box-shadow: 0 4px 15px #57d4c027;
  white-space: nowrap;
}
.map-error {
  position: absolute;
  top: 20px;
  left: 16px;
  right: 125px;
  background: #31281b;
  color: #f1cc8d;
  z-index: 600;
  padding: 10px;
  font-size: 12px;
  border: 1px solid #79623e;
  border-radius: 5px;
}
.map-error button {
  text-decoration: underline;
  margin-left: 8px;
}
.mobile-switch,
.mobile-compose {
  display: none;
}
.map-feed-layer {
  position: absolute;
  z-index: 450;
  overflow: visible;
  pointer-events: none;
}
.map-feed-card {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--feed-card-width);
  height: var(--feed-card-height);
  display: flex;
  flex-direction: column;
  border: 1px solid #99ecdc75;
  border-radius: 8px;
  background: var(--white);
  box-shadow:
    0 3px 16px #00000080,
    0 0 18px #81ead817,
    inset 0 1px #ffffff16;
  overflow: hidden;
  pointer-events: auto;
}
.map-feed-card:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.map-feed-open {
  display: grid;
  grid-template-rows: var(--feed-media-height) minmax(0, 1fr);
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: 0;
  text-align: left;
}
.map-feed-open:hover .map-feed-copy h2 {
  color: var(--green);
}
.map-feed-visual {
  position: relative;
  height: var(--feed-media-height);
  overflow: hidden;
  background: #20252c;
}
.map-feed-visual > img,
.map-feed-visual > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map-feed-kind,
.map-feed-demo {
  position: absolute;
  top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 3px;
  padding: 3px 5px;
  background: #12181ddd;
  color: var(--feed-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.map-feed-kind {
  left: 7px;
}
.map-feed-kind svg {
  width: 12px;
  height: 12px;
}
.map-feed-demo {
  right: 7px;
  color: var(--muted);
  font-weight: 400;
}
.map-feed-text {
  padding: 35px 11px 8px;
  height: 100%;
  color: #abb9bd;
  text-align: left;
}
.map-feed-text > svg {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 17px;
  height: 17px;
  color: var(--feed-accent);
  opacity: 0.5;
}
.map-feed-text p {
  font-size: 11px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.map-feed-card[data-media-type="none"] .map-feed-demo {
  top: auto;
  bottom: 5px;
}
.map-feed-copy {
  min-width: 0;
  min-height: 0;
  padding: 9px 10px 7px;
  overflow: hidden;
}
.map-feed-region {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 14px;
  height: 14px;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-feed-region span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  flex-shrink: 0;
}
.map-feed-copy h2 {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  margin: 4px 0 0;
  height: 36px;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.map-feed-author {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 14px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-feed-footer {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  border-top: 1px solid #2b333b;
  height: 33px;
  min-height: 33px;
}
.map-feed-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 29px;
  padding: 4px;
  font-size: 10px;
  border-radius: 3px;
  color: var(--green);
  white-space: nowrap;
}
.map-feed-footer button:hover {
  background: var(--green-light);
}
.map-feed-footer svg {
  width: 14px;
  height: 14px;
}
.map-feed-play,
.map-feed-zoom {
  width: 27px;
  min-width: 27px;
}
.map-feed-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.map-feed-stats svg {
  width: 12px;
  height: 12px;
}
.map-feed-connector {
  position: absolute;
  height: 1px;
  background: #91eddf;
  box-shadow: 0 0 0 1px #63daca33;
  transform-origin: left center;
  pointer-events: none;
}
.map-feed-pin {
  position: absolute;
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  border-radius: 50%;
  pointer-events: auto;
}
.map-feed-pin > span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #ecfffc;
  background: var(--feed-accent, var(--green));
  box-shadow:
    0 0 0 3px #81ead822,
    0 0 12px var(--feed-accent);
}
.map-feed-pin:hover > span,
.map-feed-pin:focus-visible > span {
  box-shadow:
    0 0 0 3px var(--green),
    0 0 0 7px #75e6da24;
}
.map-feed-pin:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.map-feed-toolbar {
  display: inline-flex;
  align-items: center;
  position: absolute;
  z-index: 600;
  top: 20px;
  left: 16px;
  background: #151b20ed;
  border: 1px solid #465351;
  border-radius: 6px;
  box-shadow: 0 2px 10px #19372814;
  min-height: 38px;
  max-width: calc(100% - 190px);
  overflow: hidden;
}
#mapFeedStage {
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  padding: 0 9px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
#mapFeedAll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  min-height: 38px;
  padding: 6px 9px;
  color: var(--muted);
  white-space: nowrap;
}
#mapFeedAll svg {
  width: 13px;
  height: 13px;
}
.map-feed-unavailable {
  height: 100%;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.area-post-list {
  display: grid;
  gap: 14px;
}
.map-area-dialog {
  width: min(620px, calc(100% - 24px));
}
.map-feed-hot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #ffd2a7;
  background: #10161cda;
  border-radius: 4px;
}
.map-feed-hot svg {
  width: 14px;
  height: 14px;
}
.map-feed-excerpt {
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  height: 30px;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 3px;
}
.map-feed-card[data-level="wide"] .map-feed-open {
  display: block;
}
.map-feed-card[data-level="wide"] .map-feed-visual {
  height: 100%;
}
.map-feed-card[data-level="wide"] .map-feed-copy,
.map-feed-card[data-level="wide"] .map-feed-kind,
.map-feed-card[data-level="region"] h2,
.map-feed-card:not([data-level="post"]) .map-feed-text p {
  display: none;
}
.map-feed-card:not([data-level="post"]) .map-feed-text {
  display: grid;
  place-items: center;
  padding: 0;
}
.map-feed-card:not([data-level="post"]) .map-feed-text > svg {
  position: static;
  width: 26px;
  height: 26px;
  opacity: 0.8;
}
.map-feed-card[data-level="wide"] .map-feed-footer,
.map-feed-card[data-level="region"] .map-feed-footer {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 0;
  height: 25px;
  min-height: 25px;
  border: 0;
}
.map-feed-card[data-level="region"] .map-feed-footer {
  bottom: 29px;
}
.map-feed-card[data-level="wide"] .map-feed-footer > :not(.map-feed-play),
.map-feed-card[data-level="region"] .map-feed-footer > :not(.map-feed-play) {
  display: none;
}
.map-feed-card[data-level="wide"] .map-feed-play,
.map-feed-card[data-level="region"] .map-feed-play {
  background: #10161cdd;
  color: #effffc;
  width: 25px;
  min-width: 25px;
  height: 25px;
}
.map-feed-card[data-level="region"] .map-feed-copy {
  padding: 5px 7px;
}
.map-feed-card[data-level="post"] .map-feed-copy {
  padding: 5px 9px;
}
.map-feed-card[data-level="post"] h2 {
  font-size: 12px;
  line-height: 16px;
  height: 32px;
  margin-top: 3px;
}
.map-feed-card[data-level="post"] .map-feed-author {
  line-height: 12px;
  margin-top: 3px;
}
.map-feed-card[data-level="post"][data-media-type="none"] .map-feed-text p {
  display: none;
}
.map-feed-card[data-level="post"][data-media-type="none"] .map-feed-text {
  padding: 0;
}
@media (max-width: 720px) {
  .map-feed-toolbar {
    top: 14px;
    left: 12px;
    max-width: calc(100% - 158px);
  }
  #mapFeedStage {
    font-size: 10px;
    padding: 0 7px;
  }
  #mapFeedAll {
    font-size: 10px;
    padding: 6px 7px;
    gap: 3px;
  }
  #mapFeedAll > svg:first-child {
    display: none;
  }
  .map-feed-copy {
    padding: 8px;
  }
  .map-feed-copy h2 {
    font-size: 12px;
    line-height: 17px;
    height: 34px;
  }
  .map-feed-text {
    padding-left: 8px;
    padding-right: 8px;
  }
  .map-feed-text p {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
}
.selection-marker span {
  display: block;
  width: 24px;
  height: 24px;
  border: 4px solid var(--ink);
  background: #f08f9c;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #f08f9c30;
}
.point-popup {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: Arial, "Malgun Gothic", sans-serif;
}
.point-popup strong {
  font-size: 14px;
}
.point-popup small {
  color: var(--muted);
}
.point-popup .button {
  color: var(--on-accent) !important;
  font-size: 12px;
}
.leaflet-container .leaflet-control-attribution {
  font-size: 10px;
  max-width: 100%;
  background: #14191eef;
}
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.leaflet-popup-tip {
  background: var(--white);
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--muted);
}
.leaflet-container .leaflet-control-attribution {
  color: var(--muted);
}
.leaflet-container .leaflet-control-attribution a {
  color: var(--green);
}
::selection {
  background: #81ead840;
  color: #ffffff;
}
* {
  scrollbar-color: #48575b #121619;
}
@media (max-width: 720px) {
  .map-feed-footer {
    height: 29px;
    min-height: 29px;
  }
  .map-feed-footer button {
    height: 26px;
  }
  .bottom-nav .nav-link.active {
    box-shadow: inset 0 2px var(--green);
  }
}
.leaflet-popup-content {
  margin: 18px;
}
/* Dialogs use the browser top layer for focus trapping and escape handling. */
.dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  box-shadow: 0 22px 90px #00000099;
}
.dialog::backdrop {
  background: #000000aa;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
}
.dialog-head h2 {
  font-size: 16px;
}
.dialog-body {
  padding: 24px;
}
.small-dialog {
  max-width: 380px;
}
.small-dialog .empty-state {
  padding: 20px 0;
}
.small-dialog .centered {
  margin-bottom: 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.stack-form {
  display: grid;
  gap: 18px;
}
.stack-form > label,
.form-grid > label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-error {
  font-size: 12px;
  color: var(--red);
  line-height: 1.6;
}
.form-error:empty {
  display: none;
}
.coordinate-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  padding: 12px;
  background: var(--green-light);
  border-radius: 5px;
  flex-wrap: wrap;
  font-size: 12px;
}
.coordinate-line > span {
  color: #a0b8ae;
  font-size: 11px;
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-row .muted {
  font-size: 11px;
}
.upload-row .icon-button {
  margin-left: auto;
}
.upload-button {
  position: relative;
  font-size: 12px;
}
.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  padding: 0;
}
.upload-button:focus-within {
  outline: 3px solid #81ead8;
  outline-offset: 3px;
}
.post-media {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #242a31;
  border-radius: 5px;
  margin: 18px 0;
}
#mediaPreview:empty {
  display: none;
}
#mediaPreview .post-media {
  max-height: 230px;
  margin: 0;
}
#mediaEditor {
  display: grid;
  gap: 14px;
  min-width: 0;
}
#mediaEditor .upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
}
#mediaEditor .upload-row .upload-button {
  justify-self: start;
}
#mediaEditor .upload-row .muted {
  grid-column: 1 / -1;
  grid-row: 2;
  line-height: 1.5;
}
#mediaEditor .upload-row .icon-button {
  grid-column: 2;
  grid-row: 1;
}
#mediaAdjustments {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 15px;
}
#mediaAdjustments[hidden] {
  display: none;
}
.media-filter-list {
  display: grid;
  grid-auto-columns: 68px;
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  padding: 3px 2px 8px;
}
.media-filter {
  position: relative;
  display: grid;
  gap: 7px;
  text-align: center;
  font-size: 11px;
  cursor: pointer;
}
.media-filter input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.filter-thumbnail {
  width: 68px;
  height: 68px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.filter-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-filter input:checked + .filter-thumbnail {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.media-filter input:focus-visible + .filter-thumbnail {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.media-filter:has(input:checked) {
  color: var(--green);
  font-weight: 700;
}
.music-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.music-choice label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.music-choice svg {
  width: 17px;
  height: 17px;
}
.media-volume {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.media-volume[hidden],
.media-duration[hidden] {
  display: none;
}
.media-volume input {
  width: 100%;
  height: 32px;
  padding: 0;
  accent-color: var(--green);
}
.media-volume output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.media-duration {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.media-status {
  font-size: 12px;
  color: var(--green);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.media-status:empty {
  display: none;
}
.detail-title {
  font-size: 24px;
  margin: 15px 0 20px;
  overflow-wrap: anywhere;
}
.author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.author-row > div {
  flex: 1;
  min-width: 0;
}
.author-row strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.author-row small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
  margin: 20px 0;
}
.location-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 5px;
  flex-wrap: wrap;
}
.location-link small {
  font-size: 10px;
  color: var(--muted);
}
.location-link svg {
  width: 16px;
  height: 16px;
}
.location-link > svg:last-child {
  margin-left: auto;
}
.detail-actions {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.comments {
  padding-top: 22px;
}
.comments h3 {
  font-size: 14px;
}
.comments h3 span {
  color: var(--green);
  margin-left: 3px;
}
.comment-list {
  padding: 15px 0;
}
.comment-list > .muted {
  font-size: 12px;
  padding: 10px 0;
}
.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #282e35;
}
.comment > div {
  flex: 1;
  min-width: 0;
}
.comment strong {
  font-size: 11px;
}
.comment time {
  font-size: 10px;
  color: var(--muted);
  margin-left: 8px;
}
.comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin-top: 5px;
}
.comment .icon-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
}
.comment .icon-button svg {
  width: 14px;
}
.comment-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.comment-form textarea {
  resize: vertical;
  font-size: 13px;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0 30px;
}
.profile-copy {
  flex: 1;
  min-width: 0;
}
.profile-copy h2 {
  font-size: 23px;
  overflow-wrap: anywhere;
}
.profile-copy p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--green);
  margin-top: 10px;
}
.profile-location svg {
  width: 15px;
  height: 15px;
}
.profile-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}
.profile-buttons .button {
  font-size: 12px;
}
.profile-buttons .text-button {
  font-size: 11px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 750px;
}
.profile-stats > div {
  display: grid;
  gap: 6px;
}
.profile-stats strong {
  font-size: 23px;
  font-weight: 500;
}
.profile-stats span {
  font-size: 12px;
  color: var(--muted);
}
.view-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.view-tabs button {
  padding: 20px 3px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
}
.view-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 700;
}
.profile-posts {
  display: grid;
  gap: 15px;
  max-width: 750px;
  padding-top: 24px;
}
.auth-layout {
  min-height: 100dvh;
  padding: 35px 50px;
  display: flex;
  flex-direction: column;
}
.auth-back {
  align-self: flex-start;
}
.auth-panel {
  width: 100%;
  max-width: 360px;
  margin: auto;
  padding: 50px 0;
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #1d3330;
  color: var(--green);
  margin-bottom: 24px;
}
.auth-brand svg {
  width: 29px;
  height: 29px;
}
.auth-panel h1 {
  font-size: 25px;
  margin-bottom: 12px;
}
.auth-panel .view-tabs {
  margin-bottom: 25px;
}
.auth-panel .view-tabs button {
  flex: 1;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 45px;
}
.password-field button {
  position: absolute;
  right: 3px;
  top: 3px;
}
.password-field svg {
  width: 18px;
}
/* Message list and conversation keep independent scroll and stable input space. */
.messages-workspace {
  height: 100dvh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}
.messages-workspace .page-header {
  flex-shrink: 0;
}
#messagesContent {
  flex: 1;
  min-height: 0;
}
.dm-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.thread-list {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #111418;
  overscroll-behavior: contain;
}
.thread {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.thread:hover {
  background: #20262c;
}
.thread.active {
  background: #1a302d;
  border-left: 3px solid var(--green);
  padding-left: 15px;
}
.thread-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.thread-copy strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-copy strong small {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}
.thread-copy > span {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.thread-meta b {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--on-accent);
  border-radius: 50%;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 10px;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--white);
}
.chat-panel > .empty-state {
  margin: auto;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 25px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-header h2 {
  font-size: 14px;
}
.chat-header small {
  font-size: 11px;
  color: var(--muted);
}
#backThreads {
  display: none;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overscroll-behavior: contain;
}
.message {
  max-width: 78%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.message p {
  background: #242a31;
  border-radius: 8px;
  padding: 11px 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  min-width: 0;
  max-width: 100%;
}
.message time {
  font-size: 10px;
  color: var(--muted);
}
.message.mine {
  align-self: flex-end;
  align-items: flex-end;
}
.message.mine p {
  background: #203f38;
  color: #c1f7e5;
}
.message-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.message-form textarea {
  resize: none;
  max-height: 120px;
  font-size: 13px;
}
.chat-status {
  color: var(--red);
  font-size: 11px;
  padding: 0 22px;
}
.chat-status:empty {
  display: none;
}
.peer-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.peer-result > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.peer-result strong,
.peer-result small {
  display: block;
  overflow-wrap: anywhere;
}
.peer-result strong {
  font-size: 13px;
}
.peer-result small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
@media (min-width: 1600px) {
  .map-layout {
    grid-template-columns: 400px minmax(0, 1fr);
  }
  .page-content {
    padding-top: 36px;
  }
  .post-card.compact {
    padding: 26px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 176px;
    padding: 30px 14px 20px;
  }
  .nav-link {
    padding-left: 12px;
    gap: 10px;
  }
  .workspace {
    margin-left: 176px;
  }
  .content-columns {
    grid-template-columns: minmax(0, 1fr) 195px;
    gap: 24px;
  }
  .page-header {
    padding: 25px 28px;
  }
  .page-content {
    padding: 24px 28px;
  }
  .map-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .map-search-area {
    padding: 16px 14px 0;
  }
  .map-search-area .category-tabs button {
    font-size: 11px;
    padding: 6px;
  }
  .dm-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .thread {
    padding: 18px 12px;
  }
  .thread.active {
    padding-left: 9px;
  }
  .post-card {
    padding: 18px;
  }
  .byline {
    max-width: 45%;
  }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toast {
    left: calc(50% + 70px);
  }
}
@media (max-width: 960px) and (min-width: 721px) {
  .sidebar {
    width: 82px;
    padding: 28px 12px;
  }
  .brand {
    padding: 0 10px 30px;
  }
  .brand > span,
  .nav-link > span,
  .compose-trigger,
  .account-link > span:nth-child(2),
  .account-link > svg {
    display: none;
  }
  .brand > svg {
    width: 30px;
    height: 30px;
  }
  .nav-link {
    justify-content: center;
    padding: 14px;
  }
  .sidebar-bottom .button {
    font-size: 0;
    padding: 10px;
  }
  .workspace {
    margin-left: 82px;
  }
  .map-layout {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .content-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .context-column {
    display: none;
  }
  .toast {
    left: calc(50% + 40px);
  }
}
@media (max-width: 720px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
    min-height: calc(100dvh - 66px - env(safe-area-inset-bottom));
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 1000;
    background: #16191e;
    border-top: 1px solid var(--line);
  }
  .bottom-nav .nav-link {
    min-width: 0;
    padding: 5px 0;
    gap: 5px;
    flex-direction: column;
    font-size: 10px;
    justify-content: center;
    border-radius: 0;
  }
  .bottom-nav .nav-link.active {
    background: transparent;
    color: var(--green);
  }
  .bottom-nav .nav-link svg {
    width: 21px;
    height: 21px;
  }
  .page-header {
    padding: 23px 20px 20px;
    gap: 12px;
  }
  .page-header h1 {
    font-size: 24px;
  }
  .page-header .button {
    min-height: 37px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .page-header .button svg {
    width: 16px;
    height: 16px;
  }
  .page-content {
    padding: 20px 18px 32px;
  }
  .content-columns {
    display: block;
  }
  .context-column {
    display: none;
  }
  .post-list {
    gap: 12px;
  }
  .post-card {
    padding: 18px 16px;
  }
  .post-card h2 {
    font-size: 17px;
  }
  .category-tabs {
    gap: 4px;
  }
  .category-tabs button {
    padding: 7px 9px;
  }
  .list-heading {
    padding: 12px 0;
  }
  .post-footer {
    gap: 5px;
  }
  .post-actions {
    gap: 1px;
  }
  .byline {
    font-size: 10px;
    max-width: 47%;
  }
  .post-actions button {
    padding: 7px 6px;
  }
  .region-item {
    padding: 16px;
  }
  .region-grid {
    gap: 10px;
  }
  .region-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .region-section .section-heading h2 {
    font-size: 14px;
  }
  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 50%;
    font-size: 12px;
    max-width: 90%;
    width: max-content;
  }
  .map-workspace {
    height: calc(100dvh - 66px - env(safe-area-inset-bottom));
    min-height: 400px;
  }
  .map-header {
    padding: 17px 18px;
    gap: 12px;
  }
  .map-header h1 {
    font-size: 20px;
    white-space: nowrap;
  }
  .map-header .eyebrow {
    font-size: 8px;
  }
  .mobile-switch {
    display: flex;
    align-items: center;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 3px;
    flex-shrink: 0;
    background: var(--white);
  }
  .mobile-switch button {
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    border-radius: 3px;
    color: var(--muted);
  }
  .mobile-switch button.active {
    background: var(--green-light);
    color: var(--green);
  }
  .mobile-switch svg {
    width: 14px;
    height: 14px;
  }
  .mobile-compose {
    display: flex;
    padding: 6px;
    min-height: 34px;
    width: 34px;
    flex-shrink: 0;
  }
  .mobile-compose svg {
    width: 17px;
    height: 17px;
  }
  .map-layout {
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .map-sidebar {
    border-right: 0;
    display: contents;
  }
  .map-search-area {
    padding: 12px 16px 0;
    background: var(--paper);
    z-index: 2;
    border-bottom: 1px solid var(--line);
  }
  .map-search-area .category-tabs {
    padding: 10px 0;
    gap: 5px;
  }
  .map-search-area .category-tabs button {
    font-size: 12px;
    padding: 6px 9px;
  }
  .map-canvas {
    flex: 1;
    min-height: 0;
  }
  .map-sidebar > .list-heading,
  .map-list {
    display: none;
  }
  .show-list .map-canvas {
    display: none;
  }
  .show-list .map-sidebar > .list-heading {
    display: flex;
    padding: 12px 18px;
  }
  .show-list .map-list {
    display: block;
    flex: 1;
    min-height: 0;
  }
  .map-tools {
    top: 14px;
    right: 14px;
  }
  .map-zoom {
    right: 14px;
    bottom: 26px;
  }
  .map-fab {
    bottom: 26px;
    min-height: 40px;
    font-size: 12px;
    padding: 10px 15px;
  }
  .map-error {
    top: 67px;
    right: 14px;
    left: 14px;
    font-size: 11px;
  }
  .leaflet-container .leaflet-control-attribution {
    font-size: 9px;
  }
  .compact .post-footer {
    margin-top: 12px;
  }
  .post-card.compact {
    padding: 20px;
  }
  .marker-label {
    max-width: 140px;
    font-size: 10px;
  }
  .dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 8px;
  }
  .dialog-head {
    padding: 12px 17px;
  }
  .dialog-body {
    padding: 20px 17px;
  }
  .dialog-head h2 {
    font-size: 15px;
  }
  .detail-title {
    font-size: 22px;
  }
  .author-row {
    gap: 8px;
  }
  .author-row .button {
    padding: 6px 8px;
  }
  .author-row > .icon-button {
    width: 32px;
    min-width: 32px;
  }
  .detail-actions {
    gap: 7px;
  }
  .detail-actions button {
    padding: 7px 6px;
  }
  .post-media {
    max-height: 330px;
  }
  .profile-summary {
    flex-wrap: wrap;
    gap: 16px;
    padding: 5px 0 24px;
  }
  .avatar.large {
    width: 65px;
    height: 65px;
    font-size: 27px;
  }
  .profile-copy h2 {
    font-size: 21px;
  }
  .profile-copy {
    min-width: calc(100% - 90px);
  }
  .profile-buttons {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .profile-stats {
    padding: 22px 0;
  }
  .profile-stats strong {
    font-size: 22px;
  }
  .profile-stats span {
    font-size: 11px;
  }
  .profile-posts {
    padding-top: 18px;
  }
  .auth-layout {
    padding: 25px 25px;
    min-height: calc(100dvh - 66px);
  }
  .auth-panel {
    padding: 35px 0 40px;
  }
  .auth-panel h1 {
    font-size: 25px;
  }
  .auth-panel input {
    font-size: 16px;
  }
  .messages-workspace {
    height: calc(100dvh - 66px - env(safe-area-inset-bottom));
    min-height: 400px;
  }
  .dm-layout {
    display: block;
    position: relative;
    height: 100%;
  }
  .thread-list {
    height: 100%;
    border-right: 0;
  }
  .thread {
    padding: 20px;
  }
  .thread.active {
    padding-left: 17px;
  }
  .thread-copy strong {
    font-size: 14px;
  }
  .thread-copy > span {
    font-size: 12px;
  }
  .chat-panel {
    display: none;
    height: 100%;
  }
  .chat-open .thread-list {
    display: none;
  }
  .chat-open .chat-panel {
    display: flex;
  }
  #backThreads {
    display: flex;
  }
  .chat-header {
    padding: 12px 14px;
    gap: 9px;
  }
  .chat-header h2 {
    font-size: 14px;
  }
  .chat-messages {
    padding: 18px 16px;
    gap: 18px;
  }
  .message {
    max-width: 85%;
  }
  .message p {
    font-size: 13px;
  }
  .message-form {
    padding: 12px 14px 15px;
  }
  .message-form textarea {
    font-size: 16px;
    line-height: 1.45;
  }
  .chat-status {
    padding: 0 16px;
  }
  .comment-form textarea {
    font-size: 16px;
  }
}
@media (max-width: 370px) {
  .map-header {
    padding: 15px 12px;
    gap: 8px;
  }
  .map-header h1 {
    font-size: 18px;
  }
  .mobile-switch button {
    padding: 6px;
  }
  .mobile-switch svg {
    display: none;
  }
  .map-search-area .category-tabs {
    gap: 1px;
  }
  .category-tabs button {
    padding: 7px;
  }
  .page-content {
    padding: 18px 12px;
  }
  .post-card {
    padding: 16px 13px;
  }
  .author-row .button svg {
    display: none;
  }
  .dialog-body {
    padding: 18px 14px;
  }
  .profile-stats span {
    font-size: 10px;
  }
  .post-meta {
    gap: 6px;
  }
  .byline {
    max-width: 42%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.moderation-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f3c777;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0;
}
.moderation-notice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.review-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.review-scores div {
  display: flex;
  gap: 4px;
}
.review-scores dd {
  margin: 0;
}
.review-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
