:root {
  color-scheme: light;
  --ink: #213028;
  --muted: #708077;
  --muted-2: #8e9c93;
  --page: #edf2ed;
  --surface: #ffffff;
  --surface-2: #f4f7f3;
  --border: #dce6dc;
  --green: #2f6b45;
  --green-dark: #245534;
  --green-soft: #e4f0e5;
  --orange: #b96f2c;
  --orange-soft: #fff0dd;
  --blue: #4d7187;
  --blue-soft: #e7f0f4;
  --shadow: 0 16px 40px rgba(31, 52, 37, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 107, 69, 0.24);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  gap: 19px;
  padding: 25px 15px 17px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.sidebar > * {
  flex-shrink: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 13px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  background: var(--green);
  border-radius: 11px;
}

.brand-name {
  color: var(--green-dark);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.beta-label {
  margin-left: auto;
  padding: 3px 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.sidebar-label {
  padding: 0 11px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.nav-item:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-item.is-active {
  color: var(--green-dark);
  font-weight: 750;
  background: var(--green-soft);
}

.nav-item:disabled,
.nav-item:disabled:hover {
  color: var(--muted);
  background: transparent;
  opacity: 0.4;
}

.nav-item:disabled:hover .nav-icon {
  background: transparent;
  color: inherit;
}

.nav-icon {
  display: inline-grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  color: currentColor;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 9px;
  line-height: 1;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.nav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease, stroke-width 140ms ease;
}

.nav-item:hover .nav-icon {
  background: var(--surface);
  border-color: var(--border);
}

.nav-item.is-active .nav-icon {
  background: var(--surface);
  border-color: rgba(47, 107, 69, 0.2);
  box-shadow: 0 3px 9px rgba(31, 52, 37, 0.08);
}

.nav-item:hover .nav-icon svg,
.nav-item.is-active .nav-icon svg {
  transform: scale(1.06);
  stroke-width: 2.1;
}

.nav-count {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 6px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  background: rgba(47, 107, 69, 0.13);
  border-radius: 999px;
}

.nav-count[hidden],
.notification-dot[hidden] {
  display: none;
}

.sidebar-spacer {
  min-height: 28px;
  flex: 1;
}

.pro-card {
  padding: 15px;
  background: var(--orange-soft);
  border: 1px solid rgba(185, 111, 44, 0.25);
  border-radius: 14px;
}

.pro-icon,
.intent-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--orange);
  font-size: 17px;
  background: rgba(185, 111, 44, 0.13);
  border-radius: 9px;
}

.pro-title {
  margin-top: 8px;
  color: #9c5b1c;
  font-weight: 800;
}

.pro-card p {
  margin: 4px 0 11px;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  padding: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  border: 0;
}

.text-button span {
  margin-left: 4px;
}

.account-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 7px 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
}

.avatar,
.top-avatar,
.large-avatar {
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-weight: 800;
  background: var(--green-soft);
  border-radius: 50%;
}

.avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.avatar {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  font-size: 11px;
}

.account-copy {
  min-width: 0;
}

.account-copy strong,
.account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 12px;
}

.account-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.more-icon {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
}

.main-area {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.location-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 4px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.location-pill:hover {
  background: var(--surface-2);
}

.location-pin {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--green-dark);
  font-size: 19px;
  background: var(--green-soft);
  border-radius: 10px;
}

.location-pill small,
.location-pill strong {
  display: block;
}

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

.location-pill strong {
  font-size: 12px;
}

.chevron {
  margin-left: 5px;
  color: var(--muted);
}

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

.role-switch {
  display: flex;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 10px;
}

.role-switch button {
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.role-switch button.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(31, 52, 37, 0.08);
}

.icon-button,
.top-avatar {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--muted);
  font-size: 17px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--border);
}

.top-avatar {
  color: var(--green-dark);
  font-size: 11px;
  background: var(--green-soft);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border: 1px solid var(--surface);
  border-radius: 50%;
}

.mobile-menu {
  display: none;
}

.screen-wrap {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 35px clamp(18px, 4vw, 42px) 55px;
}

.screen {
  display: none;
  animation: screen-in 180ms ease-out;
}

.screen.is-visible {
  display: block;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

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

h1 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.page-header p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover {
  border-color: rgba(47, 107, 69, 0.38);
  transform: translateY(-1px);
}

.primary-button {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 5px 13px rgba(47, 107, 69, 0.18);
}

.primary-button:hover {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.secondary-button {
  background: var(--surface);
}

.outline-button {
  width: 100%;
  color: var(--green-dark);
  background: transparent;
  border-color: rgba(47, 107, 69, 0.3);
}

.full-button {
  width: 100%;
}

.discover-browse-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin: -5px 0 15px;
  padding: 12px;
  background: var(--green-soft);
  border: 1px solid rgba(47, 107, 69, 0.18);
  border-radius: 15px;
}

.discover-browse-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 10px;
  padding: 2px 6px 0;
}

.discover-section-kicker {
  grid-column: 1 / -1;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.discover-browse-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.discover-browse-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.discover-browse-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 10px 11px;
  color: var(--muted);
  text-align: left;
  background: var(--surface);
  border: 1px solid rgba(47, 107, 69, 0.13);
  border-radius: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.discover-browse-button:hover,
.discover-browse-button.is-active {
  color: var(--green-dark);
  border-color: rgba(47, 107, 69, 0.4);
  box-shadow: 0 5px 13px rgba(31, 52, 37, 0.08);
  transform: translateY(-1px);
}

.discover-browse-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--green-dark);
  font-size: 18px;
  background: var(--green-soft);
  border-radius: 9px;
}

.discover-browse-button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 2px;
}

.discover-browse-button strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.discover-browse-button small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-browse-arrow {
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
}

.search-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 155px minmax(250px, 0.8fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 12px;
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
}

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

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box-with-action {
  gap: 8px;
  padding-right: 4px;
  overflow: hidden;
}

.search-box-with-action input {
  flex: 1 1 auto;
}

.search-submit {
  min-height: 36px;
  padding: 0 15px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  transition: background 140ms ease, transform 140ms ease;
}

.search-submit:hover {
  background: var(--green-dark);
}

.search-submit:active {
  transform: translateY(1px);
}

.discover-distance-stack,
.discover-location-stack {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(2, 46px);
  gap: 8px;
}

.discover-distance-stack .select-box,
.discover-distance-stack .filter-button,
.discover-location-stack .location-button,
.discover-location-stack .search-submit {
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  box-sizing: border-box;
}

.discover-distance-stack .filter-button {
  background: var(--surface);
}

.select-box select {
  cursor: pointer;
}

.filter-button {
  background: var(--surface);
}

.location-button {
  min-width: 140px;
  min-height: 46px;
  padding-inline: 15px;
  color: var(--green-dark);
  white-space: nowrap;
  background: var(--green-soft);
  border-color: rgba(47, 107, 69, 0.34);
  box-shadow: 0 5px 14px rgba(47, 107, 69, 0.12);
}

.location-button:hover,
.location-button.is-location-ready {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 6px 16px rgba(47, 107, 69, 0.2);
}

.filter-button b {
  display: inline-grid;
  min-width: 17px;
  min-height: 17px;
  place-items: center;
  color: var(--green-dark);
  font-size: 10px;
  background: var(--green-soft);
  border-radius: 50%;
}

.filter-chips {
  display: flex;
  gap: 7px;
  margin-bottom: 25px;
  overflow-x: auto;
  scrollbar-width: none;
}

.discover-type-tabs {
  display: grid;
  gap: 10px;
  margin: -5px 0 19px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(31, 52, 37, 0.05);
}

.discover-browse-tabs {
  gap: 9px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.discover-browse-tabs > .discover-type-label {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 0 0 10px;
  color: var(--green-dark);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  border-left: 4px solid var(--green-dark);
  border-radius: 4px;
}

.discover-browse-tabs .discover-type-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

.discover-browse-tabs .discover-type-options::-webkit-scrollbar {
  display: none;
}

.discover-browse-tabs .discover-type-option {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  grid-template-columns: none;
  grid-template-rows: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(47, 107, 69, 0.18);
  border-radius: 999px;
  box-shadow: none;
  white-space: nowrap;
}

.discover-browse-tabs .discover-type-option > span {
  grid-row: auto;
  font-size: 17px;
}

.discover-browse-tabs .discover-type-option strong {
  font-size: 13px;
}

.discover-browse-tabs .discover-type-option small {
  display: none;
}

.discover-browse-tabs .discover-type-option:hover,
.discover-browse-tabs .discover-type-option.is-active {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: rgba(47, 107, 69, 0.34);
  box-shadow: 0 3px 10px rgba(31, 52, 37, 0.06);
  transform: none;
}

.discover-browse-tabs .discover-type-option.is-active strong {
  color: var(--green-dark);
}

#discoverTypeTabs,
#requestTypeTabs {
  gap: 9px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#discoverTypeTabs > .discover-type-label,
#requestTypeTabs > .discover-type-label {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}

#discoverTypeTabs .discover-type-options,
#requestTypeTabs .discover-type-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

#discoverTypeTabs .discover-type-options::-webkit-scrollbar,
#requestTypeTabs .discover-type-options::-webkit-scrollbar {
  display: none;
}

#discoverTypeTabs .discover-type-option,
#requestTypeTabs .discover-type-option {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  grid-template-columns: none;
  grid-template-rows: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(77, 113, 135, 0.2);
  border-radius: 999px;
  box-shadow: none;
  white-space: nowrap;
}

#discoverTypeTabs .discover-type-option > span,
#requestTypeTabs .discover-type-option > span {
  grid-row: auto;
  font-size: 17px;
}

#discoverTypeTabs .discover-type-option strong,
#requestTypeTabs .discover-type-option strong {
  font-size: 13px;
}

#discoverTypeTabs .discover-type-option small,
#requestTypeTabs .discover-type-option small {
  display: none;
}

#discoverTypeTabs .discover-type-option:hover,
#discoverTypeTabs .discover-type-option.is-active,
#requestTypeTabs .discover-type-option:hover,
#requestTypeTabs .discover-type-option.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(77, 113, 135, 0.36);
  box-shadow: 0 3px 10px rgba(46, 81, 98, 0.07);
  transform: none;
}

#discoverTypeTabs .discover-type-option.is-active strong,
#requestTypeTabs .discover-type-option.is-active strong {
  color: var(--blue);
}

.discover-type-label {
  padding: 0 5px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discover-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.discover-type-option {
  display: grid;
  min-height: 58px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 8px;
  padding: 9px 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
}

.discover-type-option[data-browse-view="discover"],
.discover-type-option[data-discover-type="all"] {
  --tab-accent: var(--green-dark);
  --tab-soft: var(--green-soft);
  --tab-border: rgba(47, 107, 69, 0.24);
}

.discover-type-option[data-browse-view="offers"] {
  --tab-accent: var(--green-dark);
  --tab-soft: #edf5ed;
  --tab-border: rgba(47, 107, 69, 0.2);
}

.discover-type-option[data-browse-view="requests"] {
  --tab-accent: #956d4d;
  --tab-soft: #fbf2e9;
  --tab-border: rgba(149, 109, 77, 0.22);
}

.discover-type-option[data-discover-type="product"] {
  --tab-accent: #5b849a;
  --tab-soft: var(--blue-soft);
  --tab-border: rgba(77, 113, 135, 0.22);
}

.discover-type-option[data-discover-type="service"] {
  --tab-accent: var(--blue);
  --tab-soft: #edf3f6;
  --tab-border: rgba(77, 113, 135, 0.28);
}

.discover-type-option > span {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 20px;
  line-height: 1;
}

.discover-type-option strong {
  color: var(--ink);
  font-size: 13px;
}

.discover-type-option small {
  margin-top: 1px;
  font-size: 10px;
}

.discover-type-option:hover,
.discover-type-option.is-active {
  color: var(--tab-accent, var(--green-dark));
  background: var(--tab-soft, var(--green-soft));
  border-color: var(--tab-border, rgba(47, 107, 69, 0.3));
}

.discover-type-option.is-active strong {
  color: var(--tab-accent, var(--green-dark));
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.discover-category-filters {
  display: grid;
  gap: 8px;
  margin: -2px 0 22px;
}

.discover-filter-panel {
  overflow: hidden;
  background: #f8fbfc;
  border: 1px solid rgba(77, 113, 135, 0.2);
  border-radius: 13px;
}

.discover-filter-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: rgba(231, 240, 244, 0.52);
}

.discover-filter-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.discover-filter-heading strong {
  color: var(--ink);
  font-size: 12px;
}

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

.discover-filter-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid rgba(77, 113, 135, 0.18);
  border-radius: 8px;
}

.discover-filter-toggle:hover {
  background: var(--blue-soft);
  border-color: rgba(77, 113, 135, 0.3);
}

.discover-filter-toggle b {
  font-size: 14px;
  line-height: 0.7;
}

.discover-filter-body {
  display: grid;
  gap: 9px;
  padding: 10px 11px 11px;
  border-top: 1px solid rgba(77, 113, 135, 0.12);
}

.discover-filter-body[hidden] {
  display: none;
}

.discover-filter-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.discover-filter-search > span {
  font-size: 17px;
  line-height: 1;
}

.discover-filter-search input {
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.discover-filter-search small {
  color: var(--muted-2);
  font-size: 9px;
  white-space: nowrap;
}

.discover-filter-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.discover-filter-chip {
  display: grid;
  min-height: 51px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.discover-filter-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 16px;
  background: var(--surface-2);
  border-radius: 7px;
}

.discover-filter-chip > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.discover-filter-chip strong {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.2;
}

.discover-filter-chip small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
}

.discover-filter-chip:hover,
.discover-filter-chip.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(77, 113, 135, 0.32);
  box-shadow: inset 3px 0 0 rgba(77, 113, 135, 0.62);
}

.discover-filter-chip.is-active strong {
  color: var(--blue);
}

.discover-filter-empty {
  grid-column: 1 / -1;
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 9px;
}

.chip {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.chip:hover,
.chip.is-active {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: rgba(47, 107, 69, 0.3);
}

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

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

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

.section-heading h2,
.section-heading h3 {
  margin-bottom: 2px;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.section-heading.compact {
  margin-bottom: 17px;
}

.discover-subsection {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid var(--border);
}

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

.compact-empty {
  margin-top: 10px;
  padding: 24px 16px;
}

.muted {
  color: var(--muted);
  font-size: 11px;
}

.sort-button {
  padding: 7px 8px;
  color: var(--muted);
  font-size: 11px;
  background: transparent;
  border: 0;
}

.sort-button:hover {
  color: var(--ink);
}

.listing-list,
.request-list,
.mini-offer-list {
  display: grid;
  gap: 10px;
}

.offer-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.offer-card:hover {
  border-color: rgba(47, 107, 69, 0.42);
  box-shadow: 0 8px 22px rgba(31, 52, 37, 0.07);
  transform: translateY(-1px);
}

.offer-card.is-highlighted,
.request-card.is-highlighted,
.preview-offer.is-highlighted {
  position: relative;
  overflow: hidden;
  border-color: rgba(226, 86, 42, 0.72);
  background: linear-gradient(105deg, rgba(255, 244, 220, 0.96), var(--surface) 31%, var(--surface));
  box-shadow: 0 0 0 1px rgba(255, 155, 53, 0.28), 0 0 18px rgba(238, 104, 35, 0.24), 0 9px 24px rgba(190, 74, 29, 0.12);
  animation: highlightedOfferGlow 2.3s ease-in-out infinite;
}

.offer-card.is-offer.product:not(.is-highlighted) {
  border-left: 2px solid rgba(91, 132, 154, 0.24);
}

.offer-card.is-offer.service:not(.is-highlighted) {
  border-left: 2px solid rgba(77, 113, 135, 0.36);
}

.offer-card.is-request.product:not(.is-highlighted) {
  border-left: 2px solid rgba(91, 132, 154, 0.24);
}

.offer-card.is-request.service:not(.is-highlighted) {
  border-left: 2px solid rgba(77, 113, 135, 0.36);
}

.request-offer-right {
  min-width: 115px;
}

.request-contact-button {
  min-width: 104px;
}

.request-owner-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  white-space: nowrap;
}

.offer-card.is-highlighted::before,
.request-card.is-highlighted::before,
.preview-offer.is-highlighted::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, rgba(255, 177, 54, 0.22), transparent 25%, transparent 76%, rgba(221, 64, 35, 0.1));
}

.offer-card.is-highlighted > *,
.request-card.is-highlighted > *,
.preview-offer.is-highlighted > * {
  position: relative;
  z-index: 1;
}

.offer-card.is-highlighted > .offer-flames,
.request-card.is-highlighted > .offer-flames,
.preview-offer.is-highlighted > .offer-flames {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.fire-edge { position: absolute; overflow: hidden; }
.fire-edge::before {
  position: absolute;
  inset: 0;
  content: "";
  background-repeat: repeat-x;
  background-position: left bottom;
  background-image: url("./icons/fire-strip.svg");
  background-size: 72px 15px;
  transform-origin: center bottom;
  animation: fireFlicker 1.15s ease-in-out infinite alternate;
}
.fire-top, .fire-bottom {
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(0deg, rgba(255, 98, 12, .3), transparent 60%);
}
.fire-bottom { bottom: 0; }
.fire-top { top: 0; transform: rotate(180deg); }
.fire-top::before { animation-delay: -.4s; animation-duration: .95s; }
.fire-left, .fire-right {
  top: 0;
  bottom: 0;
  width: 16px;
  background: linear-gradient(90deg, rgba(255, 98, 12, .3), transparent 60%);
}
.fire-left { left: 0; }
.fire-right { right: 0; transform: rotate(180deg); }
.fire-left::before, .fire-right::before {
  background-image: url("./icons/fire-strip-side.svg");
  background-size: 15px 72px;
  background-repeat: repeat-y;
  background-position: left top;
  transform-origin: left center;
  animation-name: fireSideFlicker;
  animation-duration: 1.3s;
}
.fire-right::before { animation-delay: -.65s; }

/* Small sparks stay within the narrow flame rim. */
.offer-flames i {
  position: absolute;
  left: calc(var(--flame) * 12.5%);
  bottom: 3px;
  width: 2px;
  height: 3px;
  border-radius: 50%;
  background: #ffc047;
  box-shadow: 0 0 3px #ff7619;
  opacity: 0;
  animation: fireSpark 1.7s ease-out infinite;
  animation-delay: calc(var(--flame) * -.21s);
}
.fire-left i, .fire-right i {
  top: calc(var(--flame) * 12.5%);
  left: 3px;
  bottom: auto;
  width: 3px;
  height: 2px;
  animation-name: fireSideSpark;
}
@keyframes fireFlicker {
  0% { transform: scaleY(.86); opacity: .8; }
  35% { transform: scaleY(1); opacity: 1; }
  65% { transform: scaleY(.92); opacity: .88; }
  100% { transform: scaleY(1.06); opacity: 1; }
}
@keyframes fireSideFlicker {
  0% { transform: scaleX(.86); opacity: .8; }
  35% { transform: scaleX(1); opacity: 1; }
  65% { transform: scaleX(.92); opacity: .88; }
  100% { transform: scaleX(1.06); opacity: 1; }
}
@keyframes fireSpark {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: .85; }
  100% { transform: translate(3px, -12px) scale(.4); opacity: 0; }
}
@keyframes fireSideSpark {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: .85; }
  100% { transform: translate(12px, 3px) scale(.4); opacity: 0; }
}

.fire-button {
  color: #fff;
  border-color: #b64812;
  background: linear-gradient(135deg, #c34713, #a7330a);
}

.fire-button:hover { background: #a7330a; }
.highlight-controls { margin: 18px 0; padding: 16px; border: 1px solid #ebc18e; border-radius: 16px; background: #fff8eb; }
.highlight-controls h3 { margin: 0 0 8px; }
.highlight-controls > small { display: block; margin-top: 10px; color: var(--muted); }
.offer-interest { color: var(--green-dark); }
.interest-note { color: var(--muted); font-size: 12px; line-height: 1.5; }

@keyframes highlightedOfferGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 155, 53, 0.25), 0 0 14px rgba(238, 104, 35, 0.18), 0 9px 24px rgba(190, 74, 29, 0.1);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 155, 53, 0.48), 0 0 25px rgba(238, 104, 35, 0.34), 0 10px 28px rgba(190, 74, 29, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card.is-highlighted,
  .request-card.is-highlighted,
  .preview-offer.is-highlighted,
  .offer-flames i,
  .fire-edge::before {
    animation: none;
  }
}

.offer-visual {
  display: grid;
  overflow: hidden;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--green-dark);
  font-size: 30px;
  background: var(--green-soft);
  border-radius: 13px;
}

.offer-photo,
.detail-photo,
.preview-photo,
.upload-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-visual.service {
  color: var(--blue);
  background: var(--blue-soft);
}

.offer-visual.product {
  color: var(--blue);
  background: var(--blue-soft);
}

.offer-main {
  min-width: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  background: var(--green-soft);
  border-radius: 5px;
}

.badge.highlighted {
  color: #9b3e18;
  background: #ffe0b0;
  box-shadow: 0 0 9px rgba(238, 104, 35, 0.22);
}

.badge.service {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge.product {
  color: var(--blue);
  background: var(--blue-soft);
}

.offer-card h3 {
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-meta,
.offer-seller {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.offer-seller {
  margin-top: 7px;
  color: var(--ink);
  font-weight: 750;
}

.offer-seller span {
  color: var(--muted);
  font-weight: 400;
}

.verified-dot {
  color: var(--green);
  font-size: 12px;
}

.offer-right {
  min-width: 115px;
  text-align: right;
}

.price {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.price small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 9px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  background: var(--green-soft);
  border: 1px solid transparent;
  border-radius: 8px;
}

.contact-button:hover {
  border-color: rgba(47, 107, 69, 0.34);
}

.side-column {
  display: grid;
  gap: 11px;
}

.intent-card,
.nearby-card,
.request-help,
.plan-panel,
.preview-card,
.conversation-list,
.conversation-panel,
.profile-main,
.settings-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.intent-card,
.nearby-card,
.request-help {
  padding: 16px;
}

.intent-card h3,
.nearby-card h3,
.request-help h3 {
  margin: 12px 0 4px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.intent-card p,
.request-help p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 12px;
}

.online-dot {
  color: var(--green);
  font-size: 13px;
}

.nearby-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.nearby-stat strong {
  font-size: 16px;
}

.nearby-stat span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.ad-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.ad-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 8px;
}

.ad-strip strong,
.ad-strip small {
  display: block;
}

.ad-strip strong {
  color: var(--ink);
  font-size: 10px;
}

.ad-strip small {
  margin-top: 1px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-strip em {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.empty-state {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  place-items: center;
  color: var(--green-dark);
  font-size: 22px;
  background: var(--green-soft);
  border-radius: 13px;
}

.empty-state h3,
.conversation-empty h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 16px;
}

.empty-state p,
.conversation-empty p {
  margin-bottom: 16px;
  font-size: 12px;
}

.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.back-button,
.share-button {
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  background: transparent;
  border: 0;
}

.back-button:hover,
.share-button:hover {
  color: var(--green-dark);
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-visual {
  display: grid;
  overflow: hidden;
  min-height: 360px;
  place-items: center;
  color: var(--green-dark);
  font-size: 86px;
  background: linear-gradient(135deg, var(--green-soft), var(--orange-soft));
  border-radius: 15px;
}

.detail-content {
  min-width: 0;
  padding: 7px 6px 4px 0;
}

.detail-content h1 {
  margin-top: 13px;
  font-size: clamp(26px, 3vw, 34px);
}

.detail-description {
  margin: 17px 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-price {
  font-size: 26px;
  font-weight: 850;
}

.detail-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.available {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}

.fact-box {
  padding: 10px;
  background: var(--surface-2);
  border-radius: 10px;
}

.fact-box small,
.fact-box strong {
  display: block;
}

.fact-box small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.fact-box strong {
  font-size: 12px;
}

.location-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 11px;
}

.location-box > span:first-child {
  color: var(--green);
  font-size: 20px;
}

.location-box strong,
.location-box small {
  display: block;
}

.location-box small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.map-link {
  margin-left: auto;
  padding: 0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: transparent;
  border: 0;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.seller-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.seller-strip .avatar {
  width: 37px;
  height: 37px;
}

.seller-strip strong,
.seller-strip small {
  display: block;
}

.seller-strip strong {
  font-size: 12px;
}

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

.seller-profile-button {
  margin-left: auto;
  padding: 0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  background: transparent;
  border: 0;
}

.create-header {
  align-items: center;
}

.offer-limit {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

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

.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.form-card,
.preview-card,
.plan-panel {
  padding: 21px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.create-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 19px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 10px;
}

.create-mode button {
  min-height: 35px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.create-mode button.is-active {
  color: var(--green-dark);
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(31, 52, 37, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.form-field.full,
.form-info.full,
.highlight-row.full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  padding: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.form-field label span {
  color: var(--muted);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
}

.form-field textarea {
  min-height: 80px;
  resize: vertical;
}

.category-picker {
  position: relative;
  min-width: 0;
}

.category-picker-popover {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 3px;
  max-height: 270px;
  overflow-y: auto;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(31, 52, 37, 0.16);
}

.category-picker-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.category-picker-option:hover,
.category-picker-option.is-selected {
  background: var(--green-soft);
}

.category-picker-option-icon {
  width: 24px;
  flex: 0 0 24px;
  font-size: 17px;
  text-align: center;
}

.category-picker-option strong {
  font-size: 13px;
  font-weight: 750;
}

.category-picker-empty {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 12px;
}

.category-picker select[hidden] {
  display: none;
}

.category-picker input {
  width: 100%;
}

.category-picker input::placeholder {
  color: var(--muted-2);
}

.location-autocomplete {
  position: relative;
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  gap: 3px;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(31, 52, 37, 0.15);
}

.location-suggestion,
.location-suggestion-status {
  padding: 9px 10px;
  text-align: left;
  border-radius: 7px;
}

.location-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.location-suggestion:hover,
.location-suggestion[aria-selected="true"],
.location-suggestion:focus-visible {
  background: var(--green-soft);
  outline: 0;
}

.location-suggestion strong {
  font-size: 12px;
  font-weight: 800;
}

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

.input-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  gap: 7px;
}

.upload-box {
  display: grid;
  overflow: hidden;
  min-height: 80px;
  place-items: center;
  gap: 2px;
  padding: 12px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed rgba(47, 107, 69, 0.4);
  border-radius: 10px;
}

.upload-box.has-photo {
  grid-template-rows: 90px auto auto;
  padding: 8px;
}

.upload-preview {
  width: 100%;
  min-height: 0;
  border-radius: 7px;
}

.upload-box:hover {
  background: var(--green-soft);
}

.upload-icon {
  color: var(--green-dark);
  font-size: 20px;
}

.upload-box strong {
  color: var(--green-dark);
  font-size: 12px;
}

.upload-box small {
  font-size: 10px;
}

.form-info {
  padding: 10px 11px;
  color: var(--muted);
  font-size: 11px;
  background: var(--green-soft);
  border-radius: 9px;
}

.form-info strong {
  color: var(--green-dark);
}

fieldset.form-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 8px 12px;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 8px;
}

.check-chip:has(input:checked) {
  color: var(--green-dark) !important;
  background: var(--green-soft);
  border-color: rgba(47, 107, 69, 0.28);
}

.check-chip input {
  width: auto !important;
  accent-color: var(--green);
}

.form-field .check-chip {
  padding: 8px 12px;
}

.highlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--orange-soft);
  border: 1px solid rgba(185, 111, 44, 0.28);
  border-radius: 10px;
}

.highlight-row strong,
.highlight-row span {
  display: block;
}

.highlight-row strong {
  color: #995b1c;
  font-size: 12px;
}

.highlight-row > div:first-child span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.highlight-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlight-right > span {
  color: #995b1c;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 39px;
  height: 23px;
  flex: 0 0 auto;
}

.toggle input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.toggle > span {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(112, 128, 119, 0.35);
  border-radius: 999px;
  transition: background 150ms ease;
}

.toggle > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  content: "";
  background: var(--surface);
  border-radius: 50%;
  transition: transform 150ms ease;
}

.toggle input:checked + span {
  background: var(--orange);
}

.toggle input:checked + span::after {
  transform: translateX(16px);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-footnote {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.preview-label {
  margin-bottom: 11px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.preview-offer {
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.preview-image {
  display: grid;
  overflow: hidden;
  min-height: 125px;
  place-items: center;
  font-size: 47px;
  background: linear-gradient(135deg, var(--green-soft), var(--orange-soft));
}

.preview-copy {
  padding: 13px;
}

.preview-copy h3 {
  margin: 8px 0 5px;
  font-size: 15px;
  line-height: 1.25;
}

.preview-copy p {
  min-height: 44px;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
}

.preview-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.preview-price strong {
  font-size: 16px;
}

.preview-price span {
  color: var(--muted);
  font-size: 10px;
}

.preview-tip {
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 22px;
  align-items: start;
}

.request-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.request-card.is-request.product:not(.is-highlighted) {
  border-left: 2px solid rgba(185, 111, 44, 0.22);
  background: linear-gradient(105deg, rgba(255, 240, 221, 0.22), var(--surface) 26%);
}

.request-card.is-request.service:not(.is-highlighted) {
  border-left: 2px solid rgba(149, 109, 77, 0.34);
  background: linear-gradient(105deg, rgba(255, 240, 221, 0.3), var(--surface) 26%);
}

.request-card:hover {
  border-color: rgba(47, 107, 69, 0.4);
}

.request-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--blue);
  font-size: 24px;
  background: var(--blue-soft);
  border-radius: 12px;
}

.request-card h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.request-card p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.request-meta {
  color: var(--muted);
  font-size: 10px;
}

.request-card .button {
  min-height: 34px;
}

.request-card-action {
  display: flex;
  min-width: 120px;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}

.request-card-action .muted {
  text-align: right;
}

.request-status {
  padding: 4px 7px;
  color: #9a5b1d;
  font-size: 10px;
  font-weight: 800;
  background: var(--orange-soft);
  border-radius: 7px;
}

.request-card.is-pending {
  border-color: rgba(185, 111, 44, 0.38);
}

.messages-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 13px;
  min-height: 510px;
  min-width: 0;
}

.messages-layout > * {
  min-width: 0;
}

.conversation-list {
  padding: 8px;
}

.conversation-item {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 3px 10px;
  width: 100%;
  padding: 12px 9px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.conversation-item:hover,
.conversation-item.is-active {
  background: var(--green-soft);
}

.conversation-item .avatar {
  width: 35px;
  height: 35px;
  grid-row: 1 / 3;
}

.conversation-copy {
  min-width: 0;
}

.conversation-copy strong,
.conversation-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy strong {
  font-size: 12px;
}

.conversation-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.conversation-time {
  grid-column: 2;
  color: var(--muted-2);
  font-size: 9px;
  white-space: nowrap;
}

.conversation-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
}

.conversation-empty {
  max-width: 260px;
  color: var(--muted);
  text-align: center;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 22px;
  align-items: start;
}

.profile-main {
  padding: 23px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-control {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.profile-avatar-button {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.profile-avatar-button .large-avatar {
  width: 100%;
  height: 100%;
}

.avatar-camera {
  position: absolute;
  right: -3px;
  bottom: -2px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  background: var(--green);
  border: 2px solid var(--surface);
  border-radius: 50%;
}

.profile-avatar-button:hover .large-avatar {
  box-shadow: 0 0 0 4px var(--green-soft);
}

.profile-photo-hint {
  max-width: 110px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.large-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  font-size: 19px;
}

.profile-hero h2 {
  margin-bottom: 4px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.profile-hero p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.verified-label {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  padding: 19px 0;
}

.profile-stats > div {
  padding: 12px;
  background: var(--surface-2);
  border-radius: 11px;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  margin-bottom: 3px;
  font-size: 21px;
}

.profile-stats span {
  color: var(--muted);
  font-size: 10px;
}

.profile-stats .text-button {
  margin-top: 10px;
  padding: 0;
  font-size: 10px;
}

.profile-section {
  padding-top: 3px;
}

.mini-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 10px;
}

.mini-offer-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.mini-offer-button:hover {
  background: var(--green-soft);
}

.mini-offer-button:focus-visible {
  outline: 3px solid rgba(47, 107, 69, 0.24);
  outline-offset: 2px;
}

.mini-offer-visual {
  display: grid;
  overflow: hidden;
  width: 36px;
  height: 36px;
  place-items: center;
  font-size: 18px;
  background: var(--green-soft);
  border-radius: 8px;
}

.mini-offer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-request-row .mini-offer-visual {
  color: var(--blue);
  background: var(--blue-soft);
}

.mini-offer strong,
.mini-offer small {
  display: block;
}

.mini-offer strong {
  font-size: 11px;
}

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

.mini-offer > span:last-child {
  margin-left: auto;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.plan-panel {
  background: var(--surface);
  border: 1px solid rgba(185, 111, 44, 0.3);
  border-radius: var(--radius);
}

.plan-panel-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--orange);
  font-size: 20px;
  background: var(--orange-soft);
  border-radius: 11px;
}

.plan-panel h2 {
  margin: 12px 0 5px;
  font-size: 19px;
}

.plan-panel p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.plan-feature {
  padding: 10px 0;
  color: var(--ink);
  font-size: 11px;
  border-top: 1px solid var(--border);
}

.plan-panel .full-button {
  margin-top: 14px;
}

.settings-list {
  max-width: 760px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

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

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row strong {
  font-size: 12px;
}

.setting-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.settings-note {
  max-width: 760px;
  margin-top: 14px;
  padding: 12px 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  background: var(--green-soft);
  border-radius: 10px;
}

.auth-link {
  padding: 7px 10px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  background: var(--green-soft);
  border: 1px solid rgba(47, 107, 69, 0.22);
  border-radius: 9px;
}

.auth-link:hover {
  background: #d8e9da;
  border-color: rgba(47, 107, 69, 0.4);
}

.install-button {
  padding: 7px 10px;
  color: #995b1c;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  background: var(--orange-soft);
  border: 1px solid rgba(185, 111, 44, 0.28);
  border-radius: 9px;
}

.install-button:hover {
  background: #ffe7c8;
  border-color: rgba(185, 111, 44, 0.45);
}

body.auth-open {
  overflow: hidden;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  overflow: auto;
  padding: 24px;
  place-items: center;
  background: rgba(22, 34, 27, 0.48);
  backdrop-filter: blur(7px);
}

.auth-backdrop[hidden] {
  display: none;
}

.auth-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(12, 22, 15, 0.28);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  background: var(--surface-2);
  border: 0;
  border-radius: 9px;
}

.auth-close:hover {
  color: var(--ink);
  background: var(--green-soft);
}

.auth-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 22px;
}

.auth-progress span {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
}

.auth-progress span.is-active {
  background: var(--green);
}

.auth-brandline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 42px;
}

.auth-brandline .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 17px;
}

.auth-brandline > strong {
  color: var(--green-dark);
  font-size: 19px;
  letter-spacing: -0.04em;
}

.auth-kicker,
.auth-step-label {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.auth-kicker {
  margin-left: auto;
}

.auth-copy {
  max-width: 440px;
  margin: 26px 0 19px;
}

.auth-copy h2 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.auth-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-copy .auth-step-label {
  margin-bottom: 8px;
}

.auth-demo-note,
.auth-info {
  display: flex;
  gap: 7px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 11px;
  background: var(--green-soft);
  border-radius: 10px;
}

.auth-demo-note {
  align-items: baseline;
  margin-bottom: 15px;
}

.auth-demo-note strong {
  color: var(--green-dark);
  white-space: nowrap;
}

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

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.profile-location-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.profile-location-autocomplete {
  min-width: 0;
}

.profile-location-autocomplete .location-suggestions {
  position: relative;
  top: auto;
  margin-top: 5px;
  max-height: 210px;
}

.auth-optional {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
}

.auth-field-hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 10px;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.auth-consent input {
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.auth-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
}

.auth-field input[aria-invalid="true"],
.auth-field select[aria-invalid="true"] {
  border-color: #b42318;
}

.auth-consent:has(input[aria-invalid="true"]) {
  color: #b42318;
}

.auth-form .full-button {
  margin-top: 4px;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  color: var(--green-dark);
  font-weight: 850;
  background: transparent;
  border: 0;
}

.auth-role-list {
  display: grid;
  gap: 9px;
}

.auth-role-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 12px;
}

.auth-role-card:hover,
.auth-role-card.is-selected {
  background: var(--green-soft);
  border-color: rgba(47, 107, 69, 0.3);
}

.auth-role-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  font-size: 21px;
  background: var(--surface);
  border-radius: 10px;
}

.auth-role-card strong,
.auth-role-card small {
  display: block;
}

.auth-role-card strong {
  font-size: 13px;
}

.auth-role-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.auth-radio {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.auth-role-card.is-selected .auth-radio {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.auth-info {
  margin: 1px 0 3px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(22, 34, 27, 0.42);
  backdrop-filter: blur(5px);
}

body.modal-open {
  overflow: hidden;
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-right: 25px;
}

.contact-modal-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green-dark);
  font-size: 20px;
  background: var(--green-soft);
  border-radius: 11px;
}

.pro-modal-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.filter-modal {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.modal-filter-type-picker {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.modal-filter-type-picker > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-filter-type-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.modal-filter-type {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.modal-filter-type:hover,
.modal-filter-type.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(77, 113, 135, 0.3);
}

.modal-filter-empty {
  margin-top: 11px;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.modal-category-panel {
  margin-top: 15px;
}

.modal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 10px;
}

.modal-check:has(input:checked) {
  background: var(--green-soft);
  border-color: rgba(47, 107, 69, 0.25);
}

.modal-check input {
  flex: 0 0 auto;
  accent-color: var(--green);
}

.modal-check span,
.modal-check strong,
.modal-check small {
  display: block;
}

.modal-check strong {
  font-size: 12px;
}

.modal-check small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.notification-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.notification-list > div,
.notification-list > .notification-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.notification-item {
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--surface-2);
}

.notification-target {
  outline: 2px solid rgba(47, 107, 69, 0.46);
  outline-offset: 2px;
  animation: notification-target-pulse 2.4s ease;
}

@keyframes notification-target-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(47, 107, 69, 0); }
  25% { box-shadow: 0 0 0 5px rgba(47, 107, 69, 0.14); }
}

.notification-list strong,
.notification-list small {
  display: block;
}

.notification-list strong {
  font-size: 12px;
}

.notification-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.modal-input {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.chat-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 510px;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.chat-head strong,
.chat-head small {
  display: block;
}

.chat-head strong {
  font-size: 13px;
}

.chat-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.chat-messages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  gap: 8px;
  min-height: 0;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.message-bubble {
  max-width: 78%;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 12px;
}

.message-bubble.theirs {
  justify-self: start;
  background: var(--surface-2);
}

.message-bubble.mine {
  justify-self: end;
  color: #fff;
  background: var(--green);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
}

.chat-form input {
  min-width: 0;
  flex: 1;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.chat-head-copy { min-width: 0; }
.chat-head .avatar { flex-shrink: 0; }
.chat-head strong { font-size: 1rem; overflow-wrap: anywhere; }
.chat-head .chat-listing-context { color: var(--green-dark); font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.conversation-topic { display: block; margin-top: 3px; color: var(--green-dark); font-size: .8125rem; overflow-wrap: anywhere; }
.chat-form { display: block; position: relative; }
.chat-composer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.chat-composer-row textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 140px; resize: vertical; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.chat-tools { display: flex; gap: 4px; }
.chat-tool-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.chat-send-button { min-height: 44px; }
.chat-emoji-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; padding: 8px; margin-bottom: 8px; max-height: 200px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.chat-emoji-picker button { min-height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 1.5rem; cursor: pointer; }
.chat-emoji-picker button:hover, .chat-emoji-picker button:focus-visible { background: var(--green-soft); }
.chat-emoji-picker[hidden], .chat-photo-preview[hidden] { display: none; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-bubble { min-width: 0; overflow-wrap: anywhere; font-size: 1rem; }
.message-bubble small { font-size: .75rem; }
.chat-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.chat-photo-button { max-width: 230px; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: transparent; cursor: zoom-in; }
.chat-photo-button:only-child { grid-column: 1 / -1; }
.chat-photo-button img { display: block; width: 100%; max-height: 230px; object-fit: cover; }
.chat-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chat-draft-photo { position: relative; }
.chat-draft-photo img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.chat-draft-photo button { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; color: white; background: #8a3535; border: 0; border-radius: 50%; cursor: pointer; }
.message-error { display: block; margin-top: 6px; font-size: .8125rem; }
.chat-retry { margin-top: 6px; padding: 8px 12px; color: var(--ink); background: white; border: 0; border-radius: 7px; font-size: .875rem; cursor: pointer; }
.chat-full-photo { width: 100%; max-height: 75dvh; object-fit: contain; }
@media (max-width: 600px) {
  .chat-composer-row { grid-template-columns: minmax(0, 1fr) auto; }
  .chat-tools { grid-column: 1 / -1; }
  .chat-composer-row textarea { width: 100%; }
  .chat-emoji-picker { grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); }
  .chat-form { padding: 10px; }
  .chat-head { padding: 12px; }
}

@media (max-width: 380px) {
  .chat-composer-row { grid-template-columns: minmax(0, 1fr); }
  .chat-send-button { width: 100%; }
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(510px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  padding: 25px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(12, 22, 15, 0.25);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 31px;
  height: 31px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  background: var(--surface-2);
  border: 0;
  border-radius: 9px;
}

.modal h2 {
  margin-bottom: 6px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.modal > #modalContent > p {
  color: var(--muted);
  font-size: 12px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.inline-link {
  color: var(--green-dark);
  font-weight: 800;
}

.danger-modal-icon {
  color: #8c3c2d;
  background: #fff3f0;
}

.blocked-users-list {
  display: grid;
  max-height: 280px;
  gap: 8px;
  margin-top: 15px;
  overflow: auto;
}

.blocked-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 10px;
}

.blocked-user-row strong,
.blocked-user-row small {
  display: block;
}

.blocked-user-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.seller-modal-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.seller-modal-list > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 10px;
}

.seller-modal-list small {
  color: var(--muted);
  font-size: 11px;
}

.modal textarea {
  width: 100%;
  min-height: 100px;
  margin-top: 13px;
  padding: 11px;
  color: var(--ink);
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.plan-options {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.plan-option {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.plan-option:hover {
  border-color: rgba(47, 107, 69, 0.55);
  box-shadow: 0 0 0 2px rgba(47, 107, 69, 0.08);
}

.plan-option.is-selected {
  background: var(--orange-soft);
  border-color: rgba(185, 111, 44, 0.6);
  box-shadow: 0 0 0 2px rgba(185, 111, 44, 0.12);
}

.plan-option.recommended {
  background: var(--surface-2);
  border-color: var(--border);
}

.plan-option.recommended.is-selected {
  background: var(--orange-soft);
  border-color: rgba(185, 111, 44, 0.6);
}

.plan-option-copy,
.plan-option-meta {
  display: grid;
}

.plan-option-meta {
  justify-items: end;
  gap: 5px;
}

.plan-check {
  color: #9c5b1c;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.plan-option:not(.is-selected) .plan-check {
  visibility: hidden;
}

.plan-selection-status {
  margin: 13px 0 0;
  padding: 8px 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
  background: var(--green-soft);
  border-radius: 8px;
}

.plan-option strong,
.plan-option small {
  display: block;
}

.plan-option strong {
  font-size: 13px;
}

.plan-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.plan-price {
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.plan-details {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.plan-details h3 { margin: 0 0 8px; font-size: 14px; }
.plan-details p { margin: 0 0 8px; }
.plan-details ul { margin: 0; padding-left: 20px; }
.plan-details li + li { margin-top: 6px; }

.toast {
  position: fixed;
  right: 23px;
  bottom: 23px;
  z-index: 30;
  display: none;
  max-width: min(350px, calc(100vw - 46px));
  padding: 12px 15px;
  color: #fff;
  font-size: 12px;
  background: var(--green-dark);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(22, 44, 28, 0.25);
}

.toast.is-visible {
  display: block;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .content-layout,
  .request-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .create-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .side-column {
    gap: 9px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding: 19px 10px 14px;
  }

  .brand-row {
    padding: 0 0 9px;
  }

  .brand-name,
  .beta-label,
  .sidebar-label,
  .nav-item > span:not(.nav-icon):not(.nav-count),
  .pro-card,
  .account-copy,
  .more-icon {
    display: none;
  }

  .main-nav,
  .sidebar > .nav-item,
  .account-mini {
    width: 100%;
  }

  .nav-item {
    justify-content: center;
    padding-inline: 7px;
  }

  .nav-count {
    display: none;
  }

  .account-mini {
    justify-content: center;
    padding-inline: 0;
  }

  .content-layout,
  .request-layout,
  .create-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .side-column,
  .request-help,
  .preview-card,
  .plan-panel {
    max-width: 620px;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    min-height: 240px;
  }
}

@media (max-width: 650px) {
  .discover-filter-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discover-filter-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .discover-filter-search small {
    grid-column: 2;
  }
}

/* Lokali prototypové funkce: správa, oblíbené, moderace a lokální data. */
.favorite-button {
  display: grid;
  width: 29px;
  height: 29px;
  margin-left: auto;
  place-items: center;
  color: var(--muted);
  font-size: 19px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.favorite-button:hover,
.favorite-button.is-favorite {
  color: #a9573a;
  background: #fff0ec;
  border-color: rgba(169, 87, 58, 0.25);
}

.offer-right {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.badge.pending,
.admin-status.is-pending {
  color: #87601f;
  background: #fff2d9;
}

.verified-label.is-pending {
  color: #87601f;
}

.profile-description {
  max-width: 520px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.report-link {
  margin-top: 11px;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  background: transparent;
  border: 0;
}

.report-link:hover {
  color: #a9573a;
}

.mini-offer-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.mini-offer-copy {
  min-width: 0;
}

.mini-action-button {
  padding: 6px 8px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  white-space: nowrap;
}

.mini-action-button:hover {
  border-color: rgba(47, 107, 69, 0.4);
  background: var(--green-soft);
}

.danger-button {
  color: #8c3c2d;
  background: #fff3f0;
  border-color: rgba(169, 87, 58, 0.28);
}

.danger-button:hover {
  background: #ffe6df;
}

.manage-actions {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.settings-layout,
.settings-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 15px;
  align-items: start;
}

.settings-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 15px;
}

.settings-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.settings-card-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 10px;
}

.settings-card > h2,
.settings-card-heading h2 {
  margin: 12px 0 5px;
  font-size: 16px;
}

.settings-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.settings-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.settings-card-heading h2 {
  margin-top: 4px;
}

.settings-simulators {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.settings-simulators label {
  display: grid;
  gap: 4px;
}

.settings-simulators span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.settings-simulators select {
  width: 100%;
  padding: 9px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

.settings-actions .button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 10px;
}

.admin-content {
  display: grid;
  gap: 15px;
}

.admin-access-card {
  max-width: 560px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-stats > div {
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  font-size: 21px;
}

.admin-stats span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

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

.admin-card {
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-card h2 {
  font-size: 15px;
}

.admin-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 9px;
}

.admin-row > div:first-child,
.admin-row strong,
.admin-row small {
  min-width: 0;
  display: block;
}

.admin-row strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.admin-status {
  padding: 4px 6px;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
  background: var(--green-soft);
  border-radius: 6px;
  white-space: nowrap;
}

.admin-status.is-ok {
  color: var(--green-dark);
}

.admin-row-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chat-messages {
  align-content: start;
  overflow: auto;
}

.message-row {
  display: flex;
  min-width: 0;
}

.message-row.mine {
  justify-content: flex-end;
}

.message-bubble small {
  display: block;
  margin-top: 5px;
  font-size: .75rem;
  opacity: 0.7;
}

.message-request {
  border: 1px dashed rgba(185, 111, 44, 0.5);
}

.chat-empty-note {
  padding: 18px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.new-message-results {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.new-message-result {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 9px;
}

.new-message-result {
  width: 100%;
}

.new-message-result:hover {
  border-color: rgba(47, 107, 69, 0.28);
  background: var(--green-soft);
}

.new-message-result > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.new-message-result strong,
.new-message-result small {
  display: block;
}

.new-message-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .settings-layout,
  .settings-sections,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 550px) {
  .save-search-button span {
    display: none;
  }

  .mini-offer-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .mini-action-button {
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
  }

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

  .admin-status {
    justify-self: start;
  }

}

.listing-contact-fieldset {
  padding: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.listing-contact-fieldset legend {
  padding: 0 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.check-chip.is-static {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: transparent;
}

.public-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.public-contact-fields .form-field {
  display: grid;
  gap: 4px;
}

.public-contact-fields .form-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.public-contact-fields .form-field input {
  min-width: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.public-contact-fields .full {
  grid-column: 1 / -1;
}

.public-contact-box {
  margin-top: 15px;
  padding: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.public-contact-heading strong,
.public-contact-heading small {
  display: block;
}

.public-contact-heading strong {
  font-size: 12px;
}

.public-contact-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.public-contact-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.public-contact-list a,
.public-contact-list > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  padding: 8px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border-radius: 8px;
}

.public-contact-list a:hover {
  background: var(--green-soft);
}

.public-contact-list span {
  grid-row: span 2;
  color: var(--green-dark);
  font-size: 15px;
  text-align: center;
}

.public-contact-list strong,
.public-contact-list small {
  display: block;
}

.public-contact-list strong {
  font-size: 11px;
}

.public-contact-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.public-contact-chat {
  margin-top: 10px;
  padding: 9px;
  color: var(--green-dark);
  font-size: 10px;
  background: var(--green-soft);
  border-radius: 8px;
}

@media (max-width: 550px) {
  .discover-browse-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .discover-browse-copy {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 2px 4px;
  }

  .discover-browse-actions {
    gap: 6px;
  }

  .discover-browse-button {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    padding: 9px 8px;
  }

  .discover-browse-button small {
    white-space: normal;
  }

  .discover-browse-arrow {
    display: none;
  }

  .discover-type-option {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-align: center;
  }

  .discover-type-option > span {
    font-size: 18px;
  }

  .discover-type-option strong {
    font-size: 11px;
  }

  .discover-type-option small {
    display: none;
  }

  .discover-filter-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .public-contact-fields {
    grid-template-columns: 1fr;
  }

  .public-contact-fields .full {
    grid-column: auto;
  }
}

@media (max-width: 650px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 15;
    width: 248px;
    align-items: stretch;
    padding: 25px 15px 17px;
    box-shadow: 20px 0 40px rgba(22, 44, 28, 0.14);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(var(--swipe-offset, 0));
  }

  .sidebar.is-swiping {
    transition: none;
  }

  .sidebar .brand-name,
  .sidebar .account-copy {
    display: block;
  }

  .sidebar .beta-label,
  .sidebar .nav-item > span:not(.nav-icon):not(.nav-count),
  .sidebar .more-icon {
    display: inline;
  }

  .sidebar .sidebar-label,
  .sidebar .pro-card {
    display: block;
  }

  .sidebar .brand-row {
    padding: 0 10px 13px;
  }

  .sidebar .main-nav,
  .sidebar > .nav-item,
  .sidebar .account-mini {
    width: 100%;
  }

  .sidebar .nav-item {
    justify-content: flex-start;
    padding: 9px 11px;
  }

  .sidebar .account-mini {
    justify-content: flex-start;
    padding-inline: 7px;
  }

  .topbar {
    min-height: 62px;
    padding: 11px 15px;
  }

  .mobile-menu {
    display: grid;
  }

  .location-pill {
    margin-right: auto;
  }

  .location-pill strong {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .role-switch {
    display: none;
  }

  .screen-wrap {
    padding: 25px 15px 42px;
  }

  .page-header {
    display: block;
    margin-bottom: 19px;
  }

  .page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
  }

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

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

  .search-box {
    grid-column: 1 / -1;
  }

  .offer-card {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 10px;
  }

  .offer-visual {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .offer-right {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    text-align: left;
  }

  .price {
    margin-bottom: 0;
  }

  .offer-card h3 {
    font-size: 14px;
  }

  .detail-card,
  .form-card,
  .profile-main,
  .plan-panel,
  .preview-card {
    padding: 15px;
  }

  .detail-content {
    padding: 0;
  }

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

  .facts-grid,
  .form-grid,
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .form-field.full,
  .form-info.full,
  .highlight-row.full {
    grid-column: auto;
  }

  .request-card {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .request-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .request-card .button {
    width: 100%;
  }

  .request-card-action {
    grid-column: 2;
    width: 100%;
    align-items: stretch;
  }

  .request-card-action .muted {
    text-align: left;
  }

  .messages-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .conversation-panel {
    min-height: 0;
  }

  .chat-window {
    height: min(68vh, 620px);
    min-height: 320px;
  }

  .chat-messages {
    padding: 16px;
  }

  .create-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-limit {
    width: 100%;
    text-align: left;
  }

  .highlight-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .highlight-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .app-shell {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 7px;
  }

  .topbar-actions .icon-button:first-of-type {
    display: none;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .location-pin {
    width: 29px;
    height: 29px;
  }

  .location-pill small {
    font-size: 9px;
  }

  .location-pill strong {
    max-width: 104px;
    font-size: 11px;
  }

  h1 {
    font-size: 27px;
  }
}

/* Keep the functional prototype visually aligned with the original Lokali mockup. */
body {
  padding: 22px 16px;
  background: #e9f0ea;
}

.app-shell {
  width: min(1180px, 100%);
  min-height: 760px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(31, 52, 37, 0.13);
}

.sidebar {
  gap: 25px;
  padding: 27px 17px 18px;
}

.brand-row {
  padding: 0 9px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  font-size: 17px;
  border-radius: 11px;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
}

.beta-label {
  display: none;
}

.sidebar-label {
  padding: 0 10px 7px;
  font-size: 11px;
  font-weight: 700;
}

.nav-item {
  min-height: 0;
  padding: 10px 11px;
  border-radius: 11px;
}

.nav-icon {
  flex-basis: 29px;
  width: 29px;
  height: 29px;
}

.pro-card {
  padding: 15px;
  border-radius: 15px;
}

.topbar {
  min-height: 69px;
  padding: 15px 31px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.topbar-role {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 8px;
}

.screen-wrap {
  max-width: 1032px;
  padding: 32px 31px 42px;
}

#screen-discover .eyebrow {
  display: none;
}

#screen-discover h1 {
  font-size: clamp(25px, 3vw, 31px);
}

.page-header {
  margin-bottom: 22px;
}

#screen-discover .search-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#screen-discover .search-toolbar .search-box {
  grid-column: 1 / -1;
}

#screen-requests .search-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#screen-requests .search-toolbar .search-box {
  grid-column: 1 / -1;
}

#screen-requests h1 {
  font-size: clamp(25px, 3vw, 31px);
}

.search-box,
.select-box {
  border-radius: 11px;
}

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

.side-column {
  gap: 11px;
}

.offer-card {
  border-radius: 18px;
}

@media (max-width: 860px) {
  body {
    padding: 0;
  }

  .app-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .sidebar {
    padding: 19px 10px 14px;
  }

  .topbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .screen-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 650px) {
  .topbar {
    padding-right: 15px;
    padding-left: 15px;
  }

  .screen-wrap {
    padding-right: 15px;
    padding-left: 15px;
  }

  .auth-backdrop {
    padding: 12px;
    place-items: start center;
  }

  .auth-panel {
    max-height: calc(100vh - 24px);
    padding: 23px 18px;
    border-radius: 17px;
  }

  .auth-kicker {
    display: none;
  }

  .auth-copy {
    margin-top: 22px;
  }

  .auth-copy h2 {
    font-size: 23px;
  }

  .auth-link {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* On narrow screens the discovery page becomes one readable vertical flow. */
@media (max-width: 860px) {
  .search-toolbar,
  #screen-requests .search-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .search-toolbar .search-box {
    grid-column: 1 / -1;
  }

  .discover-distance-stack,
  .discover-location-stack {
    min-width: 0;
  }

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

  .results-section,
  .side-column,
  .request-help,
  .preview-card,
  .plan-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

.watchdog-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); }
.watchdog-row > div { min-width: 0; }
.watchdog-row-actions { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.watchdog-row strong, .watchdog-row small { display: block; overflow-wrap: anywhere; }
.watchdog-row small { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.watchdog-list { margin-top: 20px; }
.watchdog-pro { padding: 4px 8px; border-radius: 6px; color: var(--green-dark); background: var(--green-soft); font-size: .875rem; vertical-align: middle; }

.nav-item.is-locked { opacity: .55; }
.nav-item.is-locked:hover { opacity: .85; }
.watchdog-example { padding: 14px 16px; border-radius: 14px; background: var(--green-soft); margin: 16px 0; }
.watchdog-example p { margin-bottom: 0; }

.highlight-choice { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.highlight-choice input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #bc4714; }
.listing-highlight p { margin: 10px 0; font-size: 12px; line-height: 1.6; }
.highlight-choice:has(input:disabled) { color: var(--muted); cursor: default; }

/* Profiles and trade controls retain wrapping at mobile widths. */
.chat-head-copy { flex: 1; }
.trade-open { display: inline-block; margin: 6px 12px 0 0; white-space: normal; }
.listing-freshness, .profile-reviews { margin: 18px 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.listing-freshness p, .profile-reviews p { overflow-wrap: anywhere; }
.review-row { border-top: 1px solid var(--border); padding: 12px 0; }
.review-row small { display: block; color: var(--muted); margin-top: 4px; }
.review-row p { white-space: pre-wrap; margin-bottom: 0; }
.following-offer { display: grid; width: 100%; min-width: 0; gap: 5px; padding: 14px; text-align: left; font: inherit; color: var(--ink); border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; margin: 8px 0; cursor: pointer; overflow-wrap: anywhere; }
.following-offer small, .following-offer span { color: var(--muted); }
.review-stars { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.review-stars legend { font-weight: 600; margin-bottom: 8px; }
.review-stars label { position: relative; cursor: pointer; }
.review-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-stars span { display: block; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); }
.review-stars input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.review-stars input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.trust-error { color: #ad2828; }
@media (max-width: 600px) {
  .chat-head-copy .text-button { font-size: .8125rem; white-space: normal; }
  .listing-freshness, .profile-reviews { padding: 12px; }
  .review-stars span { padding: 10px; }
  .watchdog-row { flex-wrap: wrap; }
}

/* Long seller names and follow labels must not create horizontal overflow. */
.seller-strip { flex-wrap: wrap; }
.seller-strip > div { min-width: 0; flex: 1 1 150px; }
.seller-strip strong, .seller-strip small { overflow-wrap: anywhere; }
.seller-strip .avatar { flex-shrink: 0; }
.seller-profile-button { max-width: 100%; white-space: normal; }
.notification-list strong, .notification-list small { overflow-wrap: anywhere; }

/* Notification controls wrap on narrow phones; read status remains visible. */
.notification-toolbar, .notification-row-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.notification-toolbar { justify-content:space-between; margin:12px 0; }
.notification-toolbar p { margin:0; }
.notification-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.notification-tabs button { min-height:44px; padding:8px 12px; border:1px solid var(--border); border-radius:18px; background:var(--surface-2); color:var(--muted); cursor:pointer; }
.notification-tabs button[aria-pressed="true"] { background:var(--green); color:white; border-color:var(--green); }
.notification-row { min-width:0; border-radius:10px; }
.notification-list > .notification-row { padding:12px; }
.notification-row.is-unread { background:#edf6ef; box-shadow:inset 3px 0 #2f6b45; }
.notification-row .notification-item { padding:4px 0; min-height:44px; }
.notification-row strong { font-size:14px; }
.notification-row small { font-size:12px; line-height:1.5; }
.notification-row-actions { margin-top:8px; }
.notification-row-actions:empty { display:none; }
.notification-row-actions .button { min-height:44px; padding:9px 12px; font-size:12px; white-space:normal; }
.notification-empty { padding:16px 0; color:var(--muted); }
/* Centered updates use a separate dialog so drafts and other forms stay intact. */
.app-update-backdrop { position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:20px; background:rgba(20,39,28,.42); backdrop-filter:blur(7px); }
.app-update-backdrop[hidden], #adminSettingsCard[hidden] { display:none; }
body.update-open { overflow:hidden; }
.app-update-dialog { position:relative; width:min(440px,100%); min-width:0; max-height:calc(100dvh - 40px); overflow:auto; padding:30px; border:1px solid #ffffffaa; border-radius:24px; background:var(--surface); color:var(--ink); box-shadow:0 28px 90px #122e2940; }
.app-update-logo { display:block; border-radius:18px; margin-bottom:18px; }
.app-update-eyebrow { margin:0 0 8px; color:var(--green); font-size:11px; font-weight:700; letter-spacing:.12em; }
.app-update-dialog h2 { margin:0 0 10px; font-size:25px; line-height:1.2; overflow-wrap:anywhere; }
.app-update-dialog > p:not(.app-update-eyebrow) { color:var(--muted); font-size:14px; line-height:1.5; }
.app-update-dialog ul { margin:18px 0; padding:16px 16px 16px 34px; border:1px solid var(--border); border-radius:12px; background:var(--green-soft); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.app-update-dialog li + li { margin-top:8px; }
.app-update-draft-note { font-size:12px !important; }
.app-update-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.app-update-actions .button { flex:1 1 140px; min-height:46px; }
.app-update-close { position:absolute; right:14px; top:14px; width:44px; height:44px; border:0; border-radius:50%; color:var(--muted); background:var(--surface-2); font:inherit; font-size:24px; cursor:pointer; }
.app-update-dialog .app-update-error { color:#a33939; background:#fff0ee; border:1px solid #e8b7b1; padding:12px; border-radius:10px; }
.app-update-error[hidden] { display:none; }
.settings-layout:not(.has-admin) { grid-template-columns:minmax(0,1fr); }
.profile-shared-notes { margin-top:22px; padding:18px; border:1px solid var(--border); border-radius:14px; background:var(--surface-2); }
.profile-shared-notes h3 { margin:0 0 10px; font-size:16px; }
.profile-shared-notes p { margin:8px 0 0; font-size:13px; line-height:1.6; color:var(--muted); overflow-wrap:anywhere; }
@media(max-width:380px) { .app-update-backdrop { padding:12px; } .app-update-dialog { padding:24px 20px; max-height:calc(100dvh - 24px); } .app-update-dialog h2 { font-size:23px; } }


/* Saved listings use the same cards as offers and requests. */
.favorites-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.favorites-tab { min-height: 42px; padding: 10px 18px; color: var(--muted); font: inherit; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.favorites-tab:hover, .favorites-tab.is-active { color: var(--green); background: var(--green-soft); border-color: var(--green); }
.favorites-tab:focus-visible, .favorite-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.favorites-section + .favorites-section { margin-top: 28px; }
.request-card-action .favorite-button { margin-left: 0; flex: 0 0 auto; }
.request-card-action { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
@media (max-width: 600px) {
  .favorites-tabs { gap: 6px; }
  .favorites-tab { flex: 1; padding: 10px 12px; }
  .request-card-action { justify-content: flex-start; }
}

/* Keep request actions usable on narrow screens. */
.request-share-button, .offer-share-button { flex: 0 0 auto; color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.request-card-action { flex-wrap: wrap; }
.request-detail-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.topbar-actions { margin-left: auto; }

.preview-request-details { margin-top: 14px; color: var(--muted); font-size: 13px; }

@media (max-width: 600px) {
  .offer-card-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .offer-card-actions > button { flex-shrink: 0; }
}
