:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #17231d;
  --muted: #657068;
  --green: #123d2b;
  --green-2: #1d5a3d;
  --gold: #d88b28;
  --gold-soft: rgba(216, 139, 40, .14);
  --line: rgba(18, 61, 43, .14);
  --shadow: 0 12px 30px rgba(18, 61, 43, .08);
  --nav-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 61, 43, .98);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.nav {
  max-width: 1120px;
  margin: auto;
  min-height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: white;
  text-decoration: none;
  font-size: 1.38rem;
  font-weight: 950;
  letter-spacing: -.025em;
}

.desktop-nav {
  display: none;
}

main {
  width: min(100%, 900px);
  margin: auto;
  padding: 18px 14px calc(var(--nav-height) + 34px);
}

.welcome {
  padding: 14px 2px 6px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #f4cf91;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #9d631c;
}

.welcome h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.welcome > p:not(.eyebrow),
.page-head > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.5;
}

.page-head {
  padding: 12px 2px 6px;
}

.search-box {
  margin-top: 16px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(18, 61, 43, .55);
  box-shadow: 0 0 0 3px rgba(18, 61, 43, .08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.quick-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.quick-icon {
  font-size: 1.35rem;
  margin-bottom: 9px;
}

.quick-card strong {
  font-size: .98rem;
}

.quick-card small {
  margin-top: 3px;
  color: var(--muted);
}

.section {
  margin-top: 26px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-head > a {
  color: var(--green);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.feed {
  display: grid;
  gap: 10px;
}

.feed-card,
.card,
.composer,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.feed-card {
  padding: 15px;
}

.feed-card p {
  margin: 12px 0;
  line-height: 1.48;
}

.feed-top,
.business-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.feed-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
}

.feed-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: .82rem;
}

.feed-footer button,
.business-actions button,
.business-actions a {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  padding: 3px 0;
}

.badge {
  display: inline-block;
  flex: 0 0 auto;
  background: var(--gold-soft);
  color: #744606;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: .72rem;
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 10px;
}

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

.card {
  padding: 16px;
}

.card h3 {
  margin: 0;
}

.card p {
  color: var(--muted);
  line-height: 1.45;
}

.featured {
  border-color: rgba(216, 139, 40, .42);
}

.tagline {
  margin: 4px 0 !important;
  color: var(--green) !important;
  font-weight: 800;
}

.meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.meta span {
  background: rgba(18, 61, 43, .07);
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
}

.business-actions {
  display: flex;
  gap: 16px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 14px 0;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 12px;
}

.composer {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
}

.button {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  background: var(--green);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.form-note {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.image-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-picker-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--green);
  padding: 10px 13px;
  font-weight: 850;
  cursor: pointer;
}

.image-picker-note {
  color: var(--muted);
  font-size: .76rem;
}

.image-preview-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-strong);
}

.image-preview {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  right: 9px;
  bottom: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 35, 29, .88);
  color: white;
  padding: 8px 11px;
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}

.post-content {
  margin: 11px 0;
}

.post-content.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
  align-items: start;
}

.post-text {
  min-width: 0;
}

.post-text p {
  margin: 0;
}

.post-image-wrap {
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 12px;
  background: #e8e5df;
}

.post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 520px) {
  .post-content.has-image {
    grid-template-columns: minmax(0, 1fr) 132px;
  }

  .post-image-wrap {
    width: 132px;
    height: 106px;
  }
}

.job-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 14px 0;
  padding-bottom: 2px;
}

.job-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 13px;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.job-tab.active {
  background: var(--green);
  color: white;
}

.notice {
  padding: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.deal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-offer {
  margin: 4px 0 !important;
  color: var(--ink) !important;
  font-size: 1.08rem;
  font-weight: 850;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: calc(var(--nav-height) + 8px);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 0;
  background: rgba(255, 253, 248, .98);
  border-top: 1px solid var(--line);
  padding: 0 3px env(safe-area-inset-bottom);
}

.bottom-nav-fixed,
.bottom-nav-center > a {
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
}

.bottom-nav-center {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
}

.bottom-nav-center > a {
  overflow: hidden;
}

.bottom-nav-fixed.active,
.bottom-nav-center > a.active {
  color: var(--green);
  font-weight: 900;
}

.bottom-nav-center > a.active {
  background: rgba(18, 61, 43, .08);
  border-radius: 10px;
}

.bottom-nav span {
  font-size: 1.35rem;
  line-height: 1;
}

.bottom-nav small {
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  font-size: .68rem;
  line-height: 1.05;
  font-weight: 700;
}

.bottom-nav-home span {
  font-size: 1.15rem;
}

.bottom-post {
  justify-self: center;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  background: var(--green) !important;
  color: white !important;
  box-shadow: 0 5px 15px rgba(18, 61, 43, .25);
  font-size: 1.75rem !important;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.floating-post {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, .45);
  padding: 14px;
}

.modal-card {
  position: relative;
  width: min(100%, 520px);
  background: var(--surface-strong);
  border-radius: 22px;
  padding: 20px;
}

.modal-card h2 {
  margin-top: 0;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.post-options {
  display: grid;
  gap: 8px;
}

.post-options a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

@media (min-width: 760px) {
  main {
    padding: 28px 22px 60px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .desktop-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 750;
    font-size: .9rem;
  }

  .desktop-nav a.active,
  .desktop-nav a:hover {
    background: rgba(255, 255, 255, .12);
  }

  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .controls {
    grid-template-columns: 1fr 180px 180px;
  }

  .bottom-nav {
    display: none;
  }

  .floating-post {
    display: block;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(18, 61, 43, .28);
    cursor: pointer;
  }

  .modal {
    place-items: center;
  }
}


/* ==========================================================
   LIVE POST CHAT
   ========================================================== */

.feed-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.open-chat {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 850;
  cursor: pointer;
  padding: 3px 0;
}

.post-chat {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.chat-head strong {
  font-size: .9rem;
}

.chat-count {
  color: var(--muted);
  font-size: .72rem;
}

.chat-messages {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
}

.chat-empty {
  margin: 6px 0;
  color: var(--muted);
  font-size: .82rem;
}

.chat-message {
  align-self: flex-start;
  max-width: 88%;
  background: rgba(18, 61, 43, .065);
  border-radius: 13px;
  padding: 8px 10px;
}

.chat-message-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.chat-message-top strong {
  font-size: .78rem;
}

.chat-message-top span {
  color: var(--muted);
  font-size: .65rem;
}

.chat-message p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.38;
}

.chat-message-image {
  display: block;
  width: 96px;
  height: 96px;
  margin-top: 6px;
  border-radius: 10px;
  object-fit: cover;
}

.chat-compose {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.chat-name {
  padding: 9px 11px;
  font-size: .82rem;
}

.chat-message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px auto;
  gap: 6px;
  align-items: end;
}

.chat-input {
  min-height: 42px;
  max-height: 110px;
  resize: none;
  padding: 10px 11px;
  line-height: 1.3;
}

.chat-image-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  cursor: pointer;
}

.chat-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-send {
  height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 13px;
  background: var(--green);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.chat-image-preview {
  position: relative;
  width: fit-content;
}

.chat-image-preview img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
}

.chat-remove-image {
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.chat-status {
  min-height: 1em;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}

@media (max-width: 390px) {
  .chat-message-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .chat-send {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* ==========================================================
   PRIVATE JOB RESPONSES
   ========================================================== */

.job-contact-button {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 850;
  cursor: pointer;
  padding: 3px 0;
}

.job-contact-panel {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.job-contact-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-contact-head strong {
  font-size: .9rem;
}

.job-contact-head span {
  color: var(--muted);
  font-size: .74rem;
}

.job-response-preview {
  position: relative;
  width: fit-content;
}

.job-response-preview img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.job-response-preview button {
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--green);
  padding: 0;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}


/* ==========================================================
   BUSINESS DETAIL + REPORT
   ========================================================== */

.detail-modal-card,
.report-modal-card {
  max-height: calc(
    100dvh - 28px
  );
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-modal-card {
  padding-top: 56px;
}

.detail-modal-card .modal-close {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin:
    -46px
    -8px
    4px
    auto;
  border-radius: 50%;
  background:
    var(--surface-strong);
  box-shadow:
    0 2px 10px
    rgba(0, 0, 0, .12);
}

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-right: 28px;
}

.detail-top h2 {
  margin: 0;
  font-size: 1.55rem;
}

.detail-description {
  color: var(--muted);
  line-height: 1.5;
}

.detail-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.detail-list > div {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  background: var(--surface-strong);
}

.detail-list span {
  color: var(--muted);
  font-size: .72rem;
}

.detail-list strong {
  font-size: .9rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secondary-action {
  background: var(--surface-strong);
  color: var(--green);
  border: 1px solid var(--line);
}

.field-label {
  display: block;
  margin: 13px 0 5px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.report-modal-card h2 {
  margin-top: 0;
  padding-right: 28px;
  font-size: 1.25rem;
}

.report-modal-card textarea {
  min-height: 100px;
}

.report-modal-card .button {
  width: 100%;
  margin-top: 11px;
}

.business-actions {
  flex-wrap: wrap;
}

/* Business card action alignment */
.business-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.business-actions [data-report-type="business"] {
  margin-left: auto;
}


/* Persistent anonymous chat identity */

.chat-identity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.chat-name-button {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-strong);
  color: var(--green);
  padding: 0 12px;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}

.chat-name-button:disabled {
  opacity: .55;
  cursor: default;
}


/* ==========================================================
   EXPANDABLE IMAGES
   ========================================================== */

.expandable-image {
  cursor: zoom-in;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
  padding: 18px;
}

.image-viewer-image {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.image-viewer-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 201;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .58);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.create-modal-card {
  max-width: 480px;
}


/* ==========================================================
   GLOBAL SEARCH
   ========================================================== */

.top-global-search {
  margin-bottom: 14px;
}

.top-global-search input,
.global-search-box input {
  background: var(--surface-strong);
}

.global-search-box {
  margin-top: 12px;
}

.search-summary {
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .82rem;
}

.search-results {
  display: grid;
  gap: 9px;
}

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

  padding: 14px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;

  box-shadow: var(--shadow);

  color: inherit;
  text-decoration: none;
}

.search-result-main {
  min-width: 0;
}

.search-result-card h3 {
  margin: 7px 0 3px;
}

.search-result-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.search-result-image {
  width: 82px;
  height: 82px;
  border-radius: 11px;
  object-fit: cover;
}


/* ==========================================================
   COMPACT CREATE FORMS
   ========================================================== */

.compact-create-section {
  margin-top: 12px;
}

.compact-create-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: var(--surface);
  color: var(--green);

  padding: 10px 13px;

  box-shadow: var(--shadow);

  text-align: left;
  cursor: pointer;
}

.compact-create-button > span {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 50%;
  background: var(--green);
  color: white;

  font-size: 1.25rem;
  line-height: 1;
}

.compact-create-button strong {
  font-size: .9rem;
}

.compact-create-button.active {
  border-color: rgba(18, 61, 43, .35);
}

.compact-create-section > .composer {
  margin-top: 8px;
  box-shadow: none;
}

.composer {
  padding: 11px;
  gap: 7px;
}

.composer input,
.composer select,
.composer textarea {
  padding: 10px 11px;
}

.composer textarea {
  min-height: 88px;
}

.composer .button {
  padding: 11px 14px;
}

.image-picker-button {
  padding: 8px 11px;
}

.image-preview {
  max-height: 220px;
}

/* Home location label */
.welcome .eyebrow {
  color: #8a5518;
}

.business-filter-controls {
  grid-template-columns: 1fr 1fr;
}


/* Home primary identity */

.primary-features {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.primary-feature {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.primary-feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(18, 61, 43, .08);
  font-size: 1.45rem;
}

.primary-feature strong {
  display: block;
  font-size: 1.05rem;
}

.primary-feature small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.secondary-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.secondary-features a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green);
  text-decoration: none;
  text-align: center;
}

.secondary-features span {
  font-size: 1.15rem;
}

.secondary-features strong {
  font-size: .76rem;
}

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

.news-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 12px;
}

@media (min-width: 760px) {
  .primary-features {
    grid-template-columns: repeat(3, 1fr);
  }

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


/* News discussions */

.news-source {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: .76rem;
}

.news-source strong {
  color: var(--ink);
}

.news-discussion-button {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 850;
  padding: 3px 0;
  cursor: pointer;
}

.news-card .feed-footer a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}


/* Event creation */

.event-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.event-date-row label {
  display: grid;
  gap: 4px;
}

.event-date-row label > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.event-card .feed-top > div:first-child {
  min-width: 0;
}

.event-card .post-image-wrap {
  flex: 0 0 auto;
}

.event-card h3 {
  margin-top: 8px;
}

.event-venue {
  margin: 4px 0 !important;
  font-size: .85rem;
}


/* ==========================================================
   BOTTOM MORE MENU
   ========================================================== */

.bottom-more {
  height: 100%;
  border: 0;
  background: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.bottom-more span {
  font-size: 1.05rem;
  line-height: 1;
}

.bottom-more small {
  font-size: .68rem;
}

.more-modal-card {
  max-width: 460px;
}

.more-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.more-menu a {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 1px solid var(--line);
  border-radius: 15px;

  background: var(--surface);

  color: var(--green);
  text-decoration: none;
}

.more-menu span {
  font-size: 1.4rem;
}

.more-menu strong {
  font-size: .86rem;
}


/* Create menu */

.post-options {
  grid-template-columns: 1fr;
}

.post-options a {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.business-card .post-image-wrap {
  flex: 0 0 auto;
}


/* Marketplace */

.market-card h3 {
  margin-top: 8px;
}

.market-price {
  margin: 10px 0 4px !important;
  color: var(--green) !important;
  font-size: 1.25rem;
  font-weight: 950;
}

.market-contact-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 3px 0;
  font-weight: 850;
  cursor: pointer;
}


/* Marketplace private contact */

.market-contact-panel {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.market-response-preview {
  width: fit-content;
}

.market-response-preview img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.market-response-preview button {
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--green);
  padding: 0;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}


/* ==========================================================
   BUSINESS DEAL INTEGRATION
   ========================================================== */

.deal-business-name {
  display: block;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.deal-business-name:hover {
  color: var(--green);
}

.business-detail-image {
  display: block;
  width: 100%;
  max-height: 220px;
  margin: 14px 0;
  border-radius: 14px;
  object-fit: cover;
  cursor: zoom-in;
}

.business-detail-deals {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

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

.detail-section-head h3 {
  margin: 0;
}

.detail-section-head span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #744606;
  font-size: .75rem;
  font-weight: 900;
}

.business-deal-list {
  display: grid;
  gap: 8px;
}

.business-deal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.business-deal-content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.business-deal-content strong {
  line-height: 1.3;
}

.business-deal-content small,
.detail-empty {
  color: var(--muted);
}

.business-deal-image {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
}

.deal-card .feed-footer button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 3px 0;
  font-weight: 850;
  cursor: pointer;
}


/* Unified section filters */

.section-filters {
  margin-top: 14px;
  margin-bottom: 12px;
}

.section-filters select {
  min-width: 0;
}

/* Owner private inbox */

.owner-inbox-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.owner-inbox-list {
  display: grid;
  gap: 9px;
}

.owner-inbox-message {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.owner-inbox-message p {
  margin: 7px 0 0;
  line-height: 1.45;
}

/* Response moderation */

.owner-response-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.owner-response-actions button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 11px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.owner-reply-input {
  min-height: 70px;
  margin-top: 10px;
}

.owner-existing-reply,
.public-owner-reply {
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--gold-soft);
}

.owner-existing-reply p,
.public-owner-reply p {
  margin: 4px 0 0;
}

.public-responses {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.public-response-head {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.public-response {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.public-response p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.chat-name-locked {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

/* Required field validation */

.field-error {
  border-color: #b42318 !important;
  outline: 2px solid rgba(180, 35, 24, 0.16);
  outline-offset: 1px;
}

.field-error:focus {
  outline: 3px solid rgba(180, 35, 24, 0.22);
}

/* Required fields */

.field-error {
  border-color: #b42318 !important;
  outline: 2px solid rgba(180, 35, 24, 0.16);
  outline-offset: 1px;
}

.field-error:focus {
  outline: 3px solid rgba(180, 35, 24, 0.24);
}

/* Inline owner/admin moderation */

.admin-inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px dashed rgba(160, 90, 40, .45);
}

.admin-inline-controls::before {
  content: "Owner";
  align-self: center;
  margin-right: .2rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .68;
}

.admin-inline-controls button {
  min-height: 34px;
  padding: .4rem .65rem;
  font-size: .78rem;
}

.admin-inline-controls .admin-danger {
  border-color: #a33;
}

/* Two-way private conversations */

.private-conversation {
  margin-top: 1rem;
  padding: .9rem;
  border: 1px solid rgba(127, 127, 127, .35);
  border-radius: 12px;
}

.private-conversation-messages {
  display: grid;
  gap: .65rem;
  margin: .75rem 0;
}

.private-conversation-message {
  padding: .7rem;
  border-radius: 10px;
  background: rgba(127, 127, 127, .08);
}

.private-conversation-message.from-owner {
  border-left: 3px solid currentColor;
}

.private-participant-conversation:not(.hidden) {
  margin-top: 1rem;
}

/* Business claims */

.business-claim-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(127,127,127,.35);
  border-radius: 12px;
}

.business-claim-panel input,
.business-claim-panel textarea {
  width: 100%;
  margin-top: .6rem;
}

.business-claim-panel textarea {
  min-height: 110px;
  resize: vertical;
}

/* Business owner account */

.business-owner-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(127,127,127,.35);
  border-radius: 12px;
}

.business-owner-panel input {
  width: 100%;
  margin-top: .6rem;
}

/* Password minimum meter */

.password-length {
  margin: .25rem 0 .8rem;
}

.password-length-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127,127,127,.25);
}

.password-length-fill {
  width: 0;
  height: 100%;
  background: currentColor;
  opacity: .55;
  transition: width .15s ease;
}

.password-length-fill.complete {
  opacity: 1;
}

.password-length .form-note {
  display: block;
  margin-top: .3rem;
}


/* Business owner management */

.owner-signed-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.owner-management-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.owner-management-section {
  margin-top: .75rem;
}

.owner-management-section textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}

.owner-deal-item {
  padding: .8rem 0;
  border-bottom:
    1px solid rgba(127,127,127,.25);
}

.owner-deal-item:last-child {
  border-bottom: 0;
}

/* Owner Deal creation */

.owner-deal-composer {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom:
    1px solid rgba(127,127,127,.25);
}

.owner-deal-composer input,
.owner-deal-composer select {
  width: 100%;
  margin-top: .6rem;
}

.owner-deal-image-preview {
  margin: .7rem 0;
}

.owner-deal-image-preview img {
  max-width: 180px;
  max-height: 140px;
  border-radius: 10px;
  object-fit: cover;
}

/* Owner management mobile containment */

.business-owner-panel,
.owner-management-section,
.owner-deal-composer,
.owner-deal-item,
.owner-deal-content {
  min-width: 0;
  max-width: 100%;
}

.business-owner-panel {
  overflow-x: hidden;
}

.owner-management-tabs {
  max-width: 100%;
}

.owner-management-tabs button {
  max-width: 100%;
  min-width: 0;
}

.owner-management-section input,
.owner-management-section textarea,
.owner-management-section select,
.owner-deal-composer input,
.owner-deal-composer select {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.owner-deal-item {
  display: grid;
  grid-template-columns:
    minmax(0, 100px)
    minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  width: 100%;
  overflow: hidden;
}

.owner-deal-image {
  display: block;
  width: 100px;
  height: 90px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.owner-deal-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.owner-deal-content button {
  margin-top: .65rem;
  max-width: 100%;
}

@media (max-width: 420px) {
  .owner-deal-item {
    grid-template-columns:
      minmax(0, 82px)
      minmax(0, 1fr);
    gap: .65rem;
  }

  .owner-deal-image {
    width: 82px;
    height: 76px;
  }

  .owner-management-tabs {
    display: grid;
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .owner-management-tabs button {
    width: 100%;
  }
}

/* Owner panel width correction */

.business-card,
.business-owner-panel,
.owner-management-section,
.owner-deal-composer,
.owner-deal-item,
.owner-deal-content,
.owner-deal-image-preview,
.business-owner-panel .image-picker {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.business-owner-panel {
  overflow: hidden;
}

.owner-deal-image-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.business-owner-panel .image-picker {
  overflow: hidden;
}

.business-owner-panel input,
.business-owner-panel textarea,
.business-owner-panel select,
.business-owner-panel button {
  box-sizing: border-box;
  max-width: 100%;
}

/* Hidden image inputs must never affect layout width */

.business-owner-panel .image-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Public image crop / focus editor */

.public-image-editor {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .88);
}

.public-image-editor-card {
  width: min(100%, 520px);
  max-height: 94vh;
  overflow-y: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--text, #111);
}

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

.public-image-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  touch-action: none;
  user-select: none;
}

.public-image-crop img {
  position: absolute;
  display: block;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.public-image-zoom {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.public-image-zoom input {
  width: 100%;
}

/* ==========================================================
   PUBLIC IMAGE DISPLAY RATIO
   Keep displayed public images proportional to the 4:3 crop editor.
   Messaging images are intentionally excluded.
   ========================================================== */

/* Standard public cards:
   Scene, Jobs, Marketplace, Businesses, Deals, Events */
.post-image-wrap {
  width: 104px;
  height: auto;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 520px) {
  .post-image-wrap {
    width: 132px;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Business detail main image */
.business-detail-image {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Deals shown inside business detail */
.business-deal-image {
  width: 80px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Deals shown in owner Manage Deals */
.owner-deal-image {
  width: 100px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.owner-deal-image-preview img {
  display: block;
  width: min(180px, 100%);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 420px) {
  .owner-deal-image {
    width: 82px;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================
   BUSINESS OWNER IMAGE MANAGEMENT
   ========================================================== */

.owner-business-image-editor {
  width: 100%;
  min-width: 0;
  margin: .9rem 0;
}

.owner-business-image-preview {
  width: min(100%, 320px);
  aspect-ratio: 4 / 3;
  margin: .65rem 0;
  overflow: hidden;
  border-radius: 12px;
  background: #e8e5df;
}

.owner-business-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-business-image-editor .image-picker {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}

.owner-business-image-editor .image-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================
   INSTALL APP UI
   ========================================================== */

.install-app-button {
  position: fixed;
  right: 14px;
  bottom: calc(var(--nav-height, 68px) + 14px);
  z-index: 145;
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  background: var(--green, #123d2b);
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 850;
  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, .18);
  cursor: pointer;
}

.install-app-reminder {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height, 68px) + 14px);
  z-index: 150;
  width: min(
    calc(100% - 24px),
    460px
  );
  transform: translateX(-50%);
  padding: 14px;
  border: 1px solid
    rgba(127, 127, 127, .3);
  border-radius: 14px;
  background:
    var(--surface-strong, #fff);
  color:
    var(--ink, #17201b);
  box-shadow:
    0 12px 36px
    rgba(0, 0, 0, .2);
}

.install-app-reminder-copy {
  margin-bottom: 11px;
}

.install-app-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.install-app-reminder-actions button {
  border: 1px solid
    rgba(127, 127, 127, .35);
  border-radius: 9px;
  padding: 8px 10px;
  background:
    var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.install-app-reminder-actions
[data-install-app-now] {
  border-color:
    var(--green, #123d2b);
  background:
    var(--green, #123d2b);
  color: #fff;
}


/* ==========================================================
   DEAL VOTING / OWNER EDITING
   ========================================================== */

.deal-votes {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.deal-votes button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 6px 10px;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.deal-votes button.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(18, 61, 43, .08);
}

.deal-votes button:disabled {
  opacity: .55;
}

.deal-updated {
  margin-top: 4px !important;
}

.owner-deal-edit {
  display: grid;
  gap: 8px;
}

.owner-deal-edit.hidden {
  display: none;
}

.owner-deal-edit input,
.owner-deal-edit select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.owner-deal-summary.hidden {
  display: none;
}


/* DEAL DETAIL CARDS */

.deal-card,
.business-deal {
  cursor: pointer;
}

.deal-preview {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.deal-card:focus-visible,
.business-deal:focus-visible {
  outline:
    3px solid
    rgba(18, 61, 43, .25);
  outline-offset: 2px;
}

.deal-detail-modal-card {
  max-height:
    calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior:
    contain;
  padding-top: 56px;
}

.deal-detail-modal-card
.modal-close {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin:
    -46px
    -8px
    4px
    auto;
  border-radius: 50%;
  background:
    var(--surface-strong);
  box-shadow:
    0 2px 10px
    rgba(0,0,0,.12);
}


/* Open Chat button */
.open-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.open-chat:active {
  transform: translateY(1px);
}

.open-chat:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Compact moderation controls */




.admin-control-menu > summary::-webkit-details-marker {
  display: none;
}

.admin-control-menu[open] > summary {
  margin-bottom: .55rem;
}

.admin-control-menu .admin-inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

/* Small inline admin moderation trigger */
.admin-control-menu {
  display: inline-block !important;
  width: auto !important;
  margin-top: .25rem !important;
}

.admin-control-menu > summary {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: .2rem .4rem !important;
  border-radius: 6px !important;
  font-size: .68rem !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
}

.admin-control-menu[open] {
  display: block !important;
}


/* User-facing moderation notice */
.moderation-notice-banner {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.15);
  background: var(--surface, #fff);
  box-shadow: 0 3px 14px rgba(0,0,0,.12);
}

.moderation-notice-content {
  min-width: 0;
}

.moderation-notice-content > strong {
  display: block;
  margin-bottom: .25rem;
}

.moderation-notice-content p {
  margin: .15rem 0;
}

.moderation-notice-close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
}

button.report-submitted,
button.report-submitted:disabled {
  opacity: .65;
  cursor: default;
}


/* Global non-chat success confirmation */
.site-success-notice {
  position: fixed;
  left: 50%;
  bottom: calc(
    1rem + env(safe-area-inset-bottom)
  );
  z-index: 12000;
  max-width: min(
    calc(100vw - 2rem),
    32rem
  );
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--surface, #fff);
  border: 1px solid rgba(0,0,0,.14);
  box-shadow:
    0 5px 24px rgba(0,0,0,.18);
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform:
    translate(-50%, .75rem);
  transition:
    opacity .18s ease,
    transform .18s ease;
}

.site-success-notice.show {
  opacity: 1;
  transform:
    translate(-50%, 0);
}


/* === HOME COUNTY PULSE === */

.home-pulse-section {
  margin-top: 18px;
}

.home-pulse-head {
  align-items: center;
}

.home-pulse-counter {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.home-pulse {
  min-height: 205px;
}

.home-pulse-card,
.home-pulse-loading,
.home-pulse-empty {
  min-height: 205px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-pulse-card {
  display: flex;
  flex-direction: column;
  padding: 17px;
  color: var(--ink);
  text-decoration: none;
  animation: homePulseIn .28s ease;
}

@keyframes homePulseIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-pulse-loading,
.home-pulse-empty {
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.home-pulse-type {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.home-pulse-type > span {
  font-size: 1.2rem;
}

.home-pulse-type strong {
  font-size: .82rem;
}

.home-pulse-type small {
  margin-left: auto;
  color: var(--muted);
}

.home-pulse-card h3 {
  margin: 14px 0 7px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.home-pulse-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.home-pulse-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
}

.home-pulse-footer span {
  color: var(--muted);
  font-size: .75rem;
}

.home-pulse-footer strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: .8rem;
}

.home-pulse-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  min-height: 8px;
  margin-top: 9px;
}

.home-pulse-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(18, 61, 43, .18);
}

.home-pulse-dots span.active {
  width: 18px;
  background: var(--green);
}

.home-activity {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-activity-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.home-activity-row:last-child {
  border-bottom: 0;
}

.home-activity-row:first-child {
  background: rgba(18, 61, 43, .045);
  animation: homeActivityIn .3s ease;
}

@keyframes homeActivityIn {
  from {
    opacity: .45;
    transform: translateY(-7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-activity-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: rgba(18, 61, 43, .07);
  font-size: 1.05rem;
}

.home-activity-copy {
  min-width: 0;
}

.home-activity-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.home-activity-top strong {
  color: var(--green);
  font-size: .73rem;
}

.home-activity-top small,
.home-activity-copy > small {
  color: var(--muted);
  font-size: .67rem;
}

.home-activity-title {
  overflow: hidden;
  margin: 2px 0;
  font-size: .87rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-worth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.home-worth-card {
  min-width: 0;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  padding: 13px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.home-worth-icon {
  font-size: 1.2rem;
}

.home-worth-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-worth-card small {
  color: var(--green);
  font-size: .68rem;
  font-weight: 850;
}

.home-worth-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .86rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-worth-card span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-featured-businesses {
  margin-bottom: 12px;
}

.home-featured-empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  grid-column: 1 / -1;
  border: 1px dashed rgba(18, 61, 43, .25);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.home-featured-empty strong {
  color: var(--green);
}

@media (min-width: 760px) {
  .home-pulse {
    min-height: 230px;
  }

  .home-pulse-card,
  .home-pulse-loading,
  .home-pulse-empty {
    min-height: 230px;
  }

  .home-worth-grid {
    grid-template-columns:
      repeat(4, 1fr);
  }
}


/* === HOME PULSE PROGRESS + BUSINESS FEATURED === */

.home-pulse-progress {
  overflow: hidden;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background:
    rgba(18, 61, 43, .10);
}

.home-pulse-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

@keyframes homePulseProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.business-featured-section {
  margin-top: 18px;
  margin-bottom: 22px;
}

.business-featured-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.business-featured-list
.business-card {
  border-color:
    rgba(216, 139, 40, .48);
}

@media (min-width: 760px) {
  .business-featured-list {
    grid-template-columns:
      repeat(2, 1fr);
  }
}


/* === COUNTY PULSE SWIPE BEHAVIOR === */

#homePulse {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.home-pulse-card {
  touch-action: pan-y;
}


/* ==========================================================
   NEWS SOURCES
   ========================================================== */

.news-source-section {
  margin-top: 24px;
}

.news-source-section.hidden {
  display: none !important;
}

.news-developing {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  border-radius: 999px;
  background: rgba(160, 47, 35, .1);
  color: #8b281e;
  padding: 4px 7px;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.news-card .feed-top > div {
  min-width: 0;
}

.news-card .feed-top strong {
  display: block;
  line-height: 1.35;
}

.news-card .news-source {
  flex-wrap: wrap;
}

.news-card .news-source > span {
  font-weight: 750;
}



/* === NEWS CONTRIBUTOR PANEL === */

.news-contributor-panel {
  margin-top: 14px;
}

.news-contributor-panel > details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px 14px;
}

.news-contributor-panel summary {
  color: var(--green);
  font-weight: 850;
  cursor: pointer;
}

.news-contributor-content,
.news-contributor-login,
.news-contributor-editor {
  display: grid;
  gap: 9px;
}

.news-contributor-content {
  margin-top: 12px;
}

.news-contributor-signed-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.news-contributor-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
}

.news-contributor-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-contributor-check input {
  width: auto;
}

.news-contributor-logout {
  width: fit-content;
  border: 0;
  background: none;
  color: var(--green);
  padding: 4px 0;
  font-weight: 800;
  cursor: pointer;
}



/* === UNIFIED ACCOUNT === */

.post-option-account {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--green);
  padding: 13px;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.account-modal-card {
  max-width: 460px;
}

.account-login-form {
  display: grid;
  gap: 9px;
}

.account-summary h2 {
  margin: 2px 0 4px;
}

.account-actions {
  margin-top: 14px;
}

.account-signout {
  margin-top: 16px;
  border: 0;
  background: none;
  color: var(--green);
  padding: 4px 0;
  font-weight: 850;
  cursor: pointer;
}

