:root {
  --ink: #1d2b2a;
  --muted: #657371;
  --paper: #f4f7f5;
  --panel: #ffffff;
  --line: #dce4df;
  --tile: #e6efe9;
  --azul: #126a8a;
  --verde: #248c6b;
  --sol: #e2a735;
  --barro: #b4563a;
  --alerta: #b92f2f;
  --shadow: 0 18px 45px rgba(29, 43, 42, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  line-height: 1.4;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(18, 106, 138, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 140, 107, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px;
}

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

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(18, 106, 138, 0.35);
  outline-offset: 2px;
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 26px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
}

.auth-story {
  display: grid;
  gap: 28px;
  align-content: center;
  min-height: 640px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 106, 138, 0.18), transparent 48%),
    linear-gradient(0deg, rgba(226, 167, 53, 0.22), transparent 42%),
    #eef6f2;
  box-shadow: var(--shadow);
}

.auth-story h1 {
  max-width: 660px;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-story p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.auth-neighborhoods span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  border: 1px solid rgba(18, 106, 138, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.auth-tabs button {
  min-height: 38px;
  color: var(--muted);
  font-weight: 900;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.auth-tabs button.active {
  color: #fff;
  background: var(--ink);
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-message.error {
  color: var(--alerta);
}

.auth-message.success {
  color: var(--verde);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background:
    linear-gradient(135deg, transparent 0 43%, rgba(255, 255, 255, 0.2) 43% 48%, transparent 48%),
    var(--azul);
  border-radius: 8px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-item,
.mobile-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
  background: var(--tile);
}

.nav-item svg,
.mobile-nav svg,
.primary-button svg,
.secondary-button svg,
.composer-actions svg,
.search-box svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.trust-card {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.trust-card h2,
.rail-section h2,
.section-head h2,
.composer-modal h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.trust-card p,
.pulse-panel span,
.map-copy span,
.photo-panel strong,
.event-item span,
.service-card span,
.post-meta,
.post-card p {
  color: var(--muted);
}

.trust-card p {
  margin: 0;
  font-size: 0.88rem;
}

.trust-meter {
  height: 8px;
  overflow: hidden;
  background: var(--tile);
  border-radius: 999px;
}

.trust-meter span {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--verde), var(--sol));
  border-radius: inherit;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--azul);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.8rem, 2.3vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 640px);
}

.search-box,
.neighborhood-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.search-box {
  flex: 1;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.neighborhood-select {
  min-width: 152px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.neighborhood-select select {
  min-width: 0;
  max-width: 112px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 800;
}

.icon-button,
.primary-button,
.secondary-button,
.text-button,
.filter-chip,
.composer-actions button,
.user-button {
  cursor: pointer;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.icon-button:hover,
.secondary-button:hover,
.composer-actions button:hover,
.filter-chip:hover {
  border-color: rgba(18, 106, 138, 0.35);
  background: #f8fbfa;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
}

.primary-button {
  color: #fff;
  background: var(--ink);
}

.primary-button:hover {
  background: #0f1d1c;
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--panel);
}

.user-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 180px;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.user-button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.55fr;
  gap: 14px;
  margin-bottom: 22px;
}

.map-panel,
.photo-panel,
.pulse-panel,
.composer-card,
.post-card,
.rail-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(29, 43, 42, 0.03);
}

.map-panel,
.photo-panel,
.pulse-panel {
  min-height: 160px;
  overflow: hidden;
}

.map-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
}

.map-visual {
  position: relative;
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(36, 140, 107, 0.16), transparent 48%),
    #eaf2ed;
  overflow: hidden;
}

.street {
  position: absolute;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(29, 43, 42, 0.08);
}

.street-a {
  top: 70px;
  left: -12%;
  width: 125%;
  height: 26px;
  transform: rotate(-12deg);
}

.street-b {
  top: -12%;
  left: 44%;
  width: 28px;
  height: 130%;
  transform: rotate(18deg);
}

.street-c {
  bottom: 18px;
  left: 2%;
  width: 92%;
  height: 18px;
  transform: rotate(4deg);
}

.block {
  position: absolute;
  border: 1px solid rgba(29, 43, 42, 0.08);
  border-radius: 8px;
}

.block-a {
  top: 18px;
  left: 24px;
  width: 88px;
  height: 42px;
  background: rgba(226, 167, 53, 0.26);
}

.block-b {
  right: 48px;
  bottom: 48px;
  width: 72px;
  height: 48px;
  background: rgba(18, 106, 138, 0.2);
}

.block-c {
  right: 18px;
  top: 28px;
  width: 54px;
  height: 42px;
  background: rgba(180, 86, 58, 0.18);
}

.pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(29, 43, 42, 0.22);
}

.pin-home {
  top: 78px;
  left: 48%;
  background: var(--azul);
}

.pin-alert {
  right: 60px;
  top: 42px;
  background: var(--alerta);
}

.pin-shop {
  left: 64px;
  bottom: 35px;
  background: var(--verde);
}

.pin-home::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(18, 106, 138, 0.35);
  border-radius: inherit;
  animation: pulse 2.5s infinite;
}

.map-copy {
  display: grid;
  align-content: center;
  padding: 18px;
  border-left: 1px solid var(--line);
}

.map-copy strong {
  font-size: 2.4rem;
  line-height: 1;
}

.photo-panel {
  position: relative;
  color: #fff;
}

.photo-panel img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
}

.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 21, 20, 0.68), transparent 58%);
}

.photo-panel div {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  left: 16px;
}

.photo-panel .eyebrow {
  color: #f8d17a;
}

.photo-panel strong {
  display: block;
  color: #fff;
}

.pulse-panel {
  display: grid;
  align-content: center;
  padding: 18px;
}

.pulse-number {
  font-family: "Newsreader", Georgia, serif;
  font-size: 4rem;
  line-height: 0.92;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.feed-column,
.right-rail {
  min-width: 0;
}

.composer-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.composer-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 8px;
  color: var(--muted);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
  cursor: pointer;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: var(--barro);
}

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

.composer-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.section-head.compact {
  margin-bottom: 10px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.filter-chip {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 6px;
  background: transparent;
}

.filter-chip.active {
  color: #fff;
  background: var(--azul);
}

.provider-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.provider-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.provider-filter select {
  min-width: 168px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 900;
}

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

.provider-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.provider-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
}

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

.provider-card h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.provider-card p {
  margin: 0;
  color: var(--muted);
}

.provider-description {
  font-size: 0.92rem;
}

.provider-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 140, 107, 0.22);
  border-radius: var(--radius);
  background: #f2faf6;
}

.provider-contact span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-contact strong {
  overflow-wrap: anywhere;
}

.muted-contact {
  border-color: var(--line);
  background: #fbfdfc;
}

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

.provider-actions button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.provider-actions button:hover {
  border-color: rgba(18, 106, 138, 0.35);
  background: #f8fbfa;
}

.post-card {
  padding: 16px;
}

.post-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

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

.post-author strong,
.post-card h3,
.service-card strong,
.event-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.post-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.post-card p {
  margin: 0;
}

.post-image {
  width: 100%;
  max-height: 360px;
  margin-top: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tile);
}

.post-meta {
  font-size: 0.84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.Alerta {
  color: #8e2020;
  background: #ffe4e1;
}

.badge.Indicacao {
  color: #176a51;
  background: #dff4ec;
}

.badge.Pedido {
  color: #0e5b76;
  background: #dceff5;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.post-actions button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.post-actions button:hover {
  color: var(--ink);
  border-color: rgba(18, 106, 138, 0.35);
}

.post-actions .active-action {
  color: #fff;
  border-color: var(--verde);
  background: var(--verde);
}

.post-actions .danger-action {
  color: #9f2424;
  border-color: rgba(185, 47, 47, 0.22);
  margin-left: auto;
}

.post-actions .danger-action:hover {
  color: #fff;
  border-color: var(--alerta);
  background: var(--alerta);
}

.right-rail {
  display: grid;
  gap: 14px;
}

.rail-section {
  padding: 14px;
}

.text-button {
  min-height: 32px;
  color: var(--azul);
  font-weight: 800;
  background: transparent;
}

.service-list,
.event-list {
  display: grid;
  gap: 10px;
}

.service-card,
.event-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.service-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  border-radius: 999px;
  background: var(--verde);
}

.service-card .rating,
.provider-card .rating {
  color: #fff;
}

.safety-box {
  display: grid;
  gap: 12px;
  border-color: rgba(185, 47, 47, 0.22);
  background: #fffaf9;
}

.mobile-nav {
  position: fixed;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-nav button {
  justify-content: center;
  min-height: 44px;
  padding: 0;
}

.mobile-nav button.active {
  color: #fff;
  background: var(--ink);
}

.composer-modal {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.composer-modal::backdrop {
  background: rgba(10, 21, 20, 0.38);
  backdrop-filter: blur(3px);
}

.composer-modal form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.icon-button.ghost {
  border-color: transparent;
}

.composer-modal label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.composer-modal input,
.composer-modal select,
.composer-modal textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.composer-modal input,
.composer-modal select {
  min-height: 44px;
  padding: 0 12px;
}

.composer-modal textarea {
  resize: vertical;
  min-height: 118px;
  padding: 12px;
}

.provider-modal textarea {
  min-height: 92px;
}

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

.file-field input {
  padding: 10px 12px;
}

.file-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.comments-modal {
  width: min(620px, calc(100vw - 28px));
}

.comments-list {
  display: grid;
  gap: 10px;
  max-height: min(420px, 48vh);
  overflow: auto;
  padding-right: 2px;
}

.comment-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.comment-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-item strong {
  overflow-wrap: anywhere;
}

.comment-item span,
.comment-item p {
  margin: 0;
  color: var(--muted);
}

.empty-comment {
  background: #f8fbfa;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  color: #fff;
  font-weight: 800;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

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

@keyframes pulse {
  from {
    opacity: 0.9;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(1.65);
  }
}

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

@media (max-width: 1180px) {
  .auth-screen {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 28px));
  }

  .auth-story {
    min-height: auto;
  }

  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 14px;
  }

  .brand span:last-child,
  .nav-item span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .trust-card {
    display: none;
  }

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

  .right-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .auth-screen {
    padding: 18px 0;
  }

  .auth-story {
    padding: 22px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 18px 14px 92px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .topbar-actions {
    min-width: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .map-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .right-rail {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    display: grid;
  }
}

@media (max-width: 560px) {
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 44px;
  }

  .search-box,
  .neighborhood-select {
    min-width: 0;
  }

  .neighborhood-select {
    grid-column: 1 / -1;
  }

  .neighborhood-select select {
    max-width: none;
    width: 100%;
  }

  .topbar-actions .primary-button {
    grid-column: 1 / -1;
  }

  .user-button {
    grid-column: 1 / -1;
    justify-content: center;
    max-width: none;
  }

  .composer-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .provider-filter {
    justify-content: space-between;
  }

  .provider-filter select {
    min-width: 0;
  }

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }
}
