:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --surface: #fffef9;
  --ink: #192d25;
  --muted: #56665a;
  --forest: #245443;
  --forest-deep: #14382c;
  --soft: #e7efe6;
  --lime: #dfebbc;
  --line: #dde3d8;
  --warm: #f3ead9;
  --shadow: 0 12px 38px #15382b0c;
  --radius: 19px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; line-height: 1.48; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--forest); }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { line-height: 1.18; }
h3 { font-size: 1rem; letter-spacing: -.015em; }

.skip-link { position: absolute; left: 12px; top: -100px; background: var(--surface); z-index: 20; padding: 10px; }
.skip-link:focus { top: 10px; }
.app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; min-height: 73px; padding: 12px 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); background: transparent; border: 0; padding: 0; text-align: left; }
.brand strong, .brand small { display: block; }
.brand strong { font-weight: 750; letter-spacing: -.04em; font-size: 1.12rem; line-height: 1.2; }
.brand small { margin-top: 1px; color: var(--muted); font-size: .72rem; }
.brand-mark { display: block; width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto; background: #235443 url("assets/linden.svg") center / cover no-repeat; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.utility {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap; min-height: 43px; padding: 8px 12px; color: var(--forest-deep);
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  font-weight: 650; font-size: .82rem;
}
.utility svg { width: 17px; height: 17px; }
.utility:hover { background-color: var(--soft); }
.chat-shortcut { min-width: 44px; min-height: 44px; padding: 0; }
.chat-shortcut svg { width: 20px; height: 20px; }
.chat-shortcut[aria-current="page"] { background: var(--soft); border-color: #bfd1bb; }

.app-frame { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 28px; max-width: 1240px; margin: auto; padding: 26px 28px 0; }
.app-panel, #app-main { min-width: 0; }
.app-nav[hidden] + .app-panel { grid-column: 1 / -1; width: min(100%, 920px); margin-inline: auto; }
#app-main { display: grid; gap: 25px; }
#app-main:focus { outline: none; }
.app-nav { align-self: start; position: sticky; top: 24px; display: grid; gap: 6px; }
.app-nav button {
  display: flex; align-items: center; gap: 10px; min-height: 49px; text-align: left;
  padding: 9px 13px; border: 0; border-radius: 11px; background: transparent;
  color: var(--muted); font-weight: 600; font-size: .91rem;
}
.app-nav button:hover { background: #edf1e8; color: var(--ink); }
.app-nav button[aria-current="page"], .app-nav button[aria-pressed="true"], .app-nav button.active {
  background: #e1eadf; color: var(--forest-deep); font-weight: 750;
}
.app-nav svg { width: 20px; height: 20px; }
.app-footer { display: flex; gap: 7px; align-items: center; color: var(--muted); padding: 24px 0 28px; font-size: .75rem; min-width: 0; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #70865c; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: .68rem;
  font-weight: 790; letter-spacing: .11em; text-transform: uppercase;
}
.muted, .meta { color: var(--muted); }
.meta, small.muted { font-size: .8rem; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.view-heading h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.065em; font-weight: 720; }
.view-heading p { margin-top: 5px; font-size: .9rem; }
.section, .stack, .card-list { display: grid; gap: 11px; min-width: 0; }
.section-heading, .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-width: 0; }
.section-heading h2, .section > h2 { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 750; letter-spacing: -.035em; }
.section-heading p { font-size: .8rem; }
.card {
  min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow-wrap: anywhere;
}
.card p + p { margin-top: 4px; }
.card p { font-size: .88rem; }
.card :is(h2,h3) + p { margin-top: 5px; }
.card-list { list-style: none; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; min-width: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; min-width: 0; }
.feature {
  display: flex; align-items: center; text-align: left; gap: 11px; min-width: 0; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
}
.feature:hover, .listing:hover { border-color: #99ab98; }
.feature .icon, .feature > svg { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--soft); color: var(--forest); }
.feature .icon svg { width: 20px; height: 20px; }
.feature strong, .feature small { display: block; line-height: 1.3; }
.feature strong { font-size: .92rem; }
.feature small { margin-top: 3px; font-size: .72rem; color: var(--muted); }
.feature > svg:last-child { margin-left: auto; background: none; width: 16px; height: 16px; padding: 0; color: var(--muted); }

.hero {
  display: grid; align-items: end; overflow: hidden; isolation: isolate; min-height: 280px; border-radius: 24px;
  color: #fffdf4; background-color: var(--forest-deep);
  background-image: linear-gradient(90deg, #102c22ef 0%, #173b2ec9 40%, #15342934 78%), url("assets/hero.webp");
  background-size: cover; background-position: center 55%;
}
.hero-content { width: min(100%, 520px); padding: clamp(22px, 4vw, 38px); display: grid; justify-items: start; gap: 11px; }
.hero .eyebrow { color: #e0edc3; }
.hero h1 { max-width: 12ch; font-size: clamp(2.65rem, 5.5vw, 4rem); font-family: Georgia, Cambria, serif; font-weight: 400; letter-spacing: -.06em; line-height: .99; }
.hero p { color: #f3f4e5; max-width: 35ch; font-size: .93rem; }
.hero button, .hero a.primary { margin-top: 6px; background: #e7edc6; color: #234135; border-color: transparent; }
.hero .primary:not(:disabled):hover { background: #f4f6dc; color: #234135; }
.hero button :is(svg, .icon) { width: 18px; height: 18px; }

.primary, .secondary, .link-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; text-decoration: none;
  min-height: 44px; padding: 9px 13px; border: 1px solid transparent; border-radius: 11px;
  font-size: .86rem; line-height: 1.25; font-weight: 700;
}
.primary { background: var(--forest); color: #fffef9; }
.primary:not(:disabled):hover { background: var(--forest-deep); }
.secondary { background: var(--surface); border-color: var(--line); color: var(--forest-deep); }
.secondary:not(:disabled):hover { background: var(--soft); }
.link-button { background: transparent; padding: 5px 3px; color: var(--forest); }
.link-button:hover { text-decoration: underline; }
.primary svg, .secondary svg, .link-button svg { width: 17px; height: 17px; }
.status {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; border-radius: 999px; background: var(--warm);
  color: #594526; padding: 4px 9px; font-size: .73rem; font-weight: 700;
}
.status[data-status="Resolved"], .status[data-status="resolved"], .status[data-status="scheduled"], .status[data-status="Scheduled"] {
  background: var(--soft); color: #285541;
}
.status svg { width: 13px; height: 13px; }
.segmented {
  display: inline-flex; align-items: center; justify-self: start; flex-wrap: wrap; gap: 3px; max-width: 100%;
  padding: 4px; border-radius: 13px; background: #e9ede4;
}
.segmented button {
  background: transparent; color: var(--muted); border: 0; border-radius: 9px;
  padding: 7px 14px; min-height: 43px; font-weight: 680; font-size: .83rem;
}
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"], .segmented button.active {
  background: var(--surface); box-shadow: 0 1px 4px #15382b16; color: var(--forest-deep);
}
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.listing {
  display: grid; align-content: start; min-width: 0; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; padding: 0;
}
.listing-button { display: grid; width: 100%; border: 0; background: transparent; padding: 0; color: inherit; text-align: left; }
.listing-button:focus-visible { outline-offset: -3px; }
.listing-image {
  display: grid; place-items: center; position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  overflow: hidden; background: var(--soft); color: var(--forest);
}
.listing-image[data-kind="business"] { aspect-ratio: 3 / 1; }
.listing-image[data-accent="blue"] { background: #e4ecee; color: #375764; }
.listing-image[data-accent="sand"] { background: #f2ebde; color: #715b34; }
.listing-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-image svg { width: 34px; height: 34px; }
.listing-content { display: grid; gap: 6px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.listing-content :is(strong,h3) { display: block; font-size: .94rem; }
.listing-content p { color: var(--muted); font-size: .82rem; }
.listing-content p:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.listing-detail-image { width: 100%; max-height: 235px; object-fit: cover; border-radius: 11px; }
.repair-photo { width: 100%; max-height: 215px; object-fit: contain; background: var(--soft); border-radius: 10px; }
.timeline { list-style: none; padding: 0; margin: 4px 0 0; }
.timeline li { display: flex; align-items: start; gap: 9px; padding: 6px 0; font-size: .84rem; color: var(--muted); }
.timeline li svg { width: 17px; height: 17px; }
.timeline li[data-state="done"], .timeline li[data-state="current"] { color: var(--forest-deep); }
.timeline .icon { margin-top: 2px; }
.timeline li[data-state="current"] { background: var(--soft); border-radius: 9px; padding-inline: 8px; }
.empty { padding: 20px; border: 1px dashed #a9b9a9; border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.home-updates > .card { display: grid; align-content: start; gap: 6px; }
.home-updates > .card .row:first-child { justify-content: flex-start; margin-bottom: 3px; }
.home-updates > .card .icon, .repair-card .icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--soft); color: var(--forest); }
.home-updates > .card .icon svg, .repair-card .icon svg { width: 19px; height: 19px; }
.home-updates > .card :is(.secondary,.link-button) { justify-self: start; }
.event-card .icon { background: #eee9da !important; color: #675433 !important; }
.repair-card { display: grid; gap: 8px; }
.repair-card .repair-actions { justify-content: flex-start; }
.repair-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.repair-counts strong { display: block; color: var(--forest); font-size: clamp(1.2rem, 4vw, 1.65rem); line-height: 1; }

.chat-card {
  display: grid; grid-template-columns: minmax(155px, 1fr) minmax(0, 3fr); gap: 14px;
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; min-width: 0;
}
.chat-rooms {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding-right: 13px; border-right: 1px solid var(--line); min-width: 0;
}
.chat-room {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 6px 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted); text-align: left; line-height: 1.2; font-size: .8rem; font-weight: 660;
}
.chat-room-copy small { display: block; margin-top: 2px; font-size: .66rem; font-weight: 500; }
.chat-card .chat-room-label { color: var(--muted); font-size: .72rem; font-weight: 700; margin: 4px 0 0; }
.chat-room svg { width: 16px; height: 16px; }
.chat-room:hover { color: var(--forest-deep); border-color: #a9bca9; }
.chat-room[aria-pressed="true"], .chat-room[aria-selected="true"] {
  background: var(--soft); border-color: #bfd1bb; color: var(--forest-deep); font-weight: 750;
}
.chat-panel { display: grid; gap: 9px; min-width: 0; }
.chat-thread-heading { display: grid; gap: 3px; }
.chat-card .chat-thread-heading p, .chat-room-copy { font-size: .8rem; margin: 0; }
.chat-log {
  display: flex; flex-direction: column; gap: 12px; overflow: auto; max-height: 310px;
  min-height: 98px; background: #f4f6ef; border-radius: 13px; padding: 12px;
  scrollbar-color: #b7c7b4 transparent; overscroll-behavior: contain; margin: 0; list-style: none;
}
.chat-message { display: flex; align-items: end; gap: 7px; align-self: flex-start; min-width: 0; max-width: min(90%, 430px); }
.chat-message.is-mine { align-self: flex-end; }
.chat-message.is-mine .chat-avatar { order: 1; }
.chat-message-content { min-width: 0; }
.chat-avatar {
  width: 28px; height: 28px; display: inline-grid; place-items: center; background: #deead9;
  border-radius: 50%; flex: 0 0 auto; color: var(--forest-deep); font-size: .68rem; font-weight: 760;
}
.chat-bubble {
  background: var(--surface); color: var(--ink); border-radius: 12px 12px 12px 4px;
  padding: 8px 10px; min-width: 0; overflow-wrap: anywhere;
}
.chat-message.is-mine .chat-bubble { background: #dae9d9; border-radius: 12px 12px 4px 12px; }
.chat-card .chat-bubble { font-size: .84rem; white-space: pre-wrap; margin: 0; }
.chat-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--muted); font-size: .68rem; margin-bottom: 2px; }
.chat-message-meta strong { color: var(--forest-deep); }
.chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.chat-composer label { display: grid; gap: 3px; min-width: 0; font-size: .78rem; font-weight: 660; }
.chat-composer :is(input, textarea) {
  width: 100%; padding: 9px 10px; min-height: 44px; border: 1px solid #bdcabc; border-radius: 9px;
  background: #fffffc; color: var(--ink); font-size: 16px; resize: vertical;
}
.chat-composer textarea { max-height: 104px; }
.chat-composer :is(.chat-note, .chat-error) { grid-column: 1 / -1; }
.chat-card .chat-note { margin: 0; color: var(--muted); font-size: .74rem; }
.chat-card .form-error, .chat-card .chat-error { margin: 0; color: #9c3528; font-size: .75rem; }
.chat-error:empty { display: none; }

.profile-card {
  display: grid; gap: 15px; max-width: 680px; min-width: 0; padding: 20px;
  background: linear-gradient(115deg, #e8f0e4, var(--surface) 72%);
}
.profile-avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 70px; height: 70px; border-radius: 18px;
  overflow: hidden; background: var(--forest); color: #fffef9; font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em;
}
.profile-photo { width: 70px; height: 70px; border-radius: 18px; object-fit: cover; flex: 0 0 auto; }
.profile-info { display: flex; gap: 12px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.profile-info h2 { font-size: clamp(1.16rem, 4vw, 1.6rem); letter-spacing: -.04em; }
.profile-details { display: grid; gap: 9px; min-width: 0; margin: 0; }
.profile-details div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.profile-details div:last-child { border-bottom: 0; }
.profile-details dt { color: var(--muted); font-size: .84rem; }
.profile-details dd { margin: 0; text-align: start; color: var(--ink); font-size: .9rem; font-weight: 650; }
.profile-bio { padding-top: 12px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-meta { min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.profile-meta h3 { margin-bottom: 5px; }
.profile-interests { display: grid; gap: 8px; min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.profile-interests ul {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0;
}
.profile-interest {
  display: inline-flex; max-width: 100%; padding: 4px 10px; border: 1px solid #cbdcc7; border-radius: 999px;
  background: var(--soft); color: var(--forest-deep); font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere;
}
.profile-activity {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px;
  max-width: 680px; min-width: 0;
}
.profile-activity h3 { grid-column: 1 / -1; }
.profile-activity-button {
  display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 6px;
  min-width: 0; min-height: 70px; padding: 11px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--forest-deep); overflow-wrap: anywhere;
}
.profile-activity-button:hover { border-color: #a9bca9; background: var(--soft); }
.profile-activity-button .icon {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px;
  background: var(--soft); border-radius: 8px;
}
.profile-activity-button > span:nth-child(2) { flex: 1; min-width: 0; }
.profile-activity-button strong { display: block; font-weight: 750; font-size: .94rem; }
.profile-activity-button small { display: block; color: var(--muted); font-size: .76rem; margin-top: 3px; }
.profile-activity-button svg { width: 17px; height: 17px; }

.app-dialog {
  width: min(520px, calc(100% - 26px)); max-height: calc(100dvh - 30px); overflow-y: auto; padding: 18px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 24px 55px #11261f48;
}
.app-dialog::backdrop { background: #1b2e27a0; }
#dialog-content { display: grid; gap: 12px; }
#dialog-content h2 { font-size: clamp(1.35rem, 5vw, 1.85rem); letter-spacing: -.042em; }
#dialog-content p { font-size: .88rem; }
.dialog-heading { align-items: flex-start; flex-wrap: nowrap; }
.dialog-heading .dialog-close { flex: 0 0 auto; min-width: 44px; padding: 8px; }
.form-error { color: #9c3528; }
.form-error:empty { display: none; }
.form-stack { display: grid; gap: 12px; }
.form-stack label { display: grid; gap: 4px; min-width: 0; font-size: .84rem; font-weight: 650; }
.form-stack :is(input, textarea, select) {
  width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #bdcabc; border-radius: 9px;
  background: #fffffc; color: var(--ink); font: 400 16px/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.form-stack textarea { min-height: 86px; resize: vertical; }
.photo-field {
  min-width: 0; margin: 0; display: grid; gap: 8px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #f7f8f2;
}
.photo-field legend { padding: 0 5px; color: var(--forest-deep); font-size: .84rem; font-weight: 700; }
.photo-field legend small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.photo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.photo-controls .photo-picker { position: relative; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.photo-controls .photo-picker:focus-within { outline: 2px solid var(--forest); outline-offset: 3px; }
.photo-controls .photo-file {
  position: absolute; inset: 0; min-height: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; overflow: hidden; padding: 0; cursor: pointer; font-size: 16px;
}
.photo-remove { min-height: 44px; font-size: .8rem; }
.photo-preview {
  width: min(100%, 340px); max-height: 170px; object-fit: contain; object-position: left center;
  border-radius: 9px; background: var(--soft);
}
#dialog-content .photo-status { margin: 0; color: var(--muted); font-size: .77rem; }
.photo-status:empty { display: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.app-toast {
  position: fixed; z-index: 12; right: 18px; bottom: 18px; max-width: min(390px, calc(100vw - 36px));
  border-radius: 11px; padding: 10px 14px; background: var(--forest-deep); color: white; font-size: .88rem; box-shadow: var(--shadow);
}
.app-toast:empty { display: none; }

@media (max-width: 900px) {
  .app-frame { grid-template-columns: 141px minmax(0, 1fr); gap: 18px; padding-inline: 20px; }
  .header-inner { padding-inline: 20px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .header-inner { min-height: 66px; padding: 10px 14px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 11px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .67rem; }
  .header-actions { gap: 5px; }
  .utility { padding-inline: 8px; min-height: 44px; font-size: .75rem; }
  .app-frame { display: block; padding: 14px 13px 0; }
  #app-main { gap: 19px; }
  .app-header { position: sticky; top: 0; z-index: 5; }
  .app-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 8;
    inset: auto 0 0; gap: 2px; padding: 6px 7px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fffef9; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px #15382b0b;
  }
  .app-nav button {
    flex-direction: column; justify-content: center; min-height: 49px; text-align: center; padding: 3px 1px;
    font-size: .67rem; gap: 2px; line-height: 1.15; border-radius: 9px; white-space: nowrap;
  }
  .app-nav svg { width: 19px; height: 19px; }
  .app-footer { padding: 16px 0 calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hero { min-height: 249px; border-radius: 19px; background-position: 54% center; background-image: linear-gradient(90deg, #102c22df 0%, #18392a9e 58%, #18392a2e 100%), url("assets/hero.webp"); }
  .hero-content { padding: 18px; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.45rem); }
  .hero p { font-size: .84rem; }
  .feature-grid, .grid, .market-grid { gap: 8px; }
  .feature { min-height: 56px; padding: 7px; gap: 7px; }
  .feature strong { font-size: .78rem; }
  .feature small { font-size: .65rem; }
  .feature > svg:last-child { display: none; }
  .card { padding: 13px; border-radius: 15px; }
  .listing { border-radius: 14px; }
  .listing-content { padding: 9px; }
  .app-toast { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .chat-card { grid-template-columns: minmax(0, 1fr); }
  .chat-rooms { flex-direction: row; align-items: center; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
  .chat-card .chat-room-label { flex-basis: 100%; }
  .chat-room-copy small { display: none; }
}
@media (max-width: 430px) {
  .home-updates { grid-template-columns: 1fr; }
  .chat-card { padding: 10px; gap: 9px; }
  .chat-room { padding-inline: 8px; }
  .chat-rooms { gap: 4px; }
  .chat-log { max-height: 245px; padding: 8px; }
  .chat-bubble { padding: 7px 8px; }
  .profile-activity { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .profile-activity-button { min-height: 58px; }
}
#community-event { scroll-margin-top: 80px; }
@media (max-width: 350px) {
  .app-frame { padding-inline: 9px; }
  .header-inner { padding-inline: 9px; }
  .app-nav button { font-size: .61rem; }
  .feature { align-items: start; }
  .feature .icon, .feature > svg { width: 26px; height: 26px; padding: 4px; flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
