:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #20312c;
  background: #f5f3ed;
  font-synthesis: none;
  --green: #213e33;
  --lime: #d1ed77;
  --muted: #69746b;
  --border: #dfe3d8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 14px 21px;
  background: var(--green);
  color: white;
  font-weight: 650;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
button:hover,
.button:hover {
  filter: brightness(1.09);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #759629;
  outline-offset: 4px;
}
header {
  max-width: 1240px;
  margin: auto;
  padding: 26px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 21px;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 3px;
}
.mark {
  background: var(--green);
  color: var(--lime);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 800;
}
.quiet {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border);
  padding: 10px 15px;
}
main {
  max-width: 1164px;
  margin: auto;
  padding: 38px 0 64px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0 35px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: #678036;
}
h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.07;
  font-weight: 650;
  letter-spacing: -3px;
  margin: 18px 0;
}
h1 em {
  font-style: normal;
  color: #66823c;
}
.intro p {
  color: var(--muted);
}
.primary {
  background: var(--green);
  padding: 18px 26px;
  box-shadow: 0 5px 0 #dce4cd;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffdf8;
  padding: 24px 0;
  margin-bottom: 25px;
}
.stat {
  padding: 0 26px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border: 0;
}
.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.notice {
  font-size: 13px;
  line-height: 1.6;
  border-radius: 12px;
  padding: 14px 18px;
  background: #ede9dc;
  color: #645736;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 20px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
h2 span {
  color: var(--muted);
  font-size: 14px;
  margin-left: 8px;
}
.filters {
  display: flex;
  gap: 4px;
  background: #eaece3;
  border-radius: 10px;
  padding: 4px;
}
.filters button {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 11px;
  border-radius: 7px;
}
.filters .selected {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 3px #0001;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  color: inherit;
  padding: 0;
  width: 100%;
  font-weight: 400;
}
.card img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  background: #ecefe5;
}
.card-content {
  padding: 19px;
}
.card h3 {
  font-size: 17px;
  margin: 12px 0 7px;
}
.card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.badge {
  display: inline-block;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #e6edda;
  color: #536a37;
}
.badge.researching {
  background: #e2eafb;
  color: #496693;
}
.card-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 22px;
  font-weight: 650;
}
.card-price small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 45px 20px;
  border: 1px dashed #c5cfb8;
  border-radius: 18px;
}
.empty .symbol {
  font-size: 34px;
  color: #7b944d;
}
.empty p {
  color: var(--muted);
  max-width: 390px;
  margin: 10px auto 20px;
  font-size: 14px;
  line-height: 1.6;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fffdf8;
  padding: 28px;
}
.drive-card {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  margin-top: 35px;
  background: #eaf0e1;
}
.drive-card h2 {
  margin: 12px 0;
}
.drive-card p {
  font-size: 13px;
  color: var(--muted);
  max-width: 660px;
  line-height: 1.7;
  margin: 0;
}
.secondary {
  background: white;
  color: var(--green);
  white-space: nowrap;
}
.login {
  max-width: 560px;
  margin: 30px auto;
}
.login p {
  line-height: 1.65;
  color: var(--muted);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 18px 0 8px;
}
input,
textarea {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #cdd4c5;
  border-radius: 9px;
  background: white;
  color: #263a2c;
  min-width: 0;
}
textarea {
  resize: vertical;
}
form > button {
  margin-top: 12px;
  width: 100%;
}
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
dialog {
  color: inherit;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 20px;
  width: min(690px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 25px;
  box-shadow: 0 30px 100px #0003;
}
dialog::backdrop {
  background: #162d2580;
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-header h2 {
  margin: 0;
}
.dialog-header button {
  padding: 4px 13px;
  font-size: 24px;
  background: #ebeee4;
  color: var(--green);
}
.dropzone {
  text-align: center;
  padding: 28px;
  border: 2px dashed #b6c4a1;
  border-radius: 14px;
  background: #f2f6ec;
  color: #536c30;
}
.dropzone input {
  font-size: 12px;
  background: transparent;
  border: 0;
}
.dropzone small {
  display: block;
  font-weight: 400;
  font-size: 11px;
}
.photos {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-top: 16px;
}
.photos img {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 9px;
}
.price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.questions {
  background: #f5eeda;
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.questions h3 {
  margin: 0;
  font-size: 14px;
}
.research {
  background: #edf2e7;
  padding: 18px;
  border-radius: 12px;
  margin: 18px 0;
}
.research h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.research p,
.research li {
  font-size: 12px;
  line-height: 1.6;
}
.research a {
  color: #456426;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.actions button {
  font-size: 13px;
  padding: 12px;
}
.error {
  background: #f9e6de;
  padding: 14px;
  border-radius: 10px;
  color: #813c28;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #213e33;
  color: white;
  padding: 15px 22px;
  border-radius: 12px;
  z-index: 1000;
  font-size: 14px;
  box-shadow: 0 6px 30px #0003;
}
footer {
  border-top: 1px solid var(--border);
  padding: 25px 38px;
  max-width: 1240px;
  margin: auto;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1220px) {
  main {
    padding: 30px 30px 60px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 20px;
  }
  .brand {
    font-size: 19px;
  }
  main {
    padding: 20px 18px 45px;
  }
  .intro {
    display: block;
    padding: 10px 0 25px;
  }
  h1 {
    letter-spacing: -1.8px;
  }
  .primary {
    width: 100%;
    margin-top: 15px;
  }
  .stats {
    padding: 18px 0;
  }
  .stat {
    padding: 0 14px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat span {
    font-size: 10px;
  }
  .section-heading {
    display: block;
  }
  .filters {
    width: fit-content;
    margin-top: 14px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card img {
    height: 150px;
  }
  .card-content {
    padding: 12px;
  }
  .card h3 {
    font-size: 14px;
  }
  .card-price {
    font-size: 18px;
    display: block;
    margin-top: 13px;
  }
  .card-price small {
    display: block;
  }
  .drive-card {
    display: block;
    padding: 22px;
  }
  .drive-card .button {
    margin-top: 20px;
  }
  .notice {
    font-size: 12px;
  }
  dialog {
    padding: 20px;
  }
  .login {
    margin: 12px 0;
    padding: 24px;
  }
  footer {
    padding: 20px;
  }
  footer span {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 0;
}
.capture-actions {
  display: flex;
  gap: 10px;
  margin: 22px 0 12px;
}
.capture-actions button {
  flex: 1;
}
.photo-preview {
  position: relative;
  flex: 0 0 105px;
}
.photo-preview button {
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 1px 8px;
  border-radius: 50%;
  font-size: 22px;
  background: #213e33e8;
}
.listing-age {
  margin-top: 12px !important;
  color: #687b35 !important;
}
.stats {
  grid-template-columns: repeat(4, 1fr);
}
.filters {
  flex-wrap: wrap;
}
.research form > button {
  width: 100%;
  margin: 12px 0;
}
.research details {
  margin-top: 12px;
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .filters {
    max-width: 100%;
  }
}

#facebook-dialog { width: min(560px, calc(100% - 20px)); }
#facebook-screen-wrap { overflow: auto; margin-top: 12px; border: 1px solid var(--border); min-height: 120px; }
#facebook-screen { display: block; width: 100%; height: auto; cursor: pointer; touch-action: pan-y; }
#facebook-screen[hidden] { display: none; }
#facebook-dialog .actions { flex-wrap: wrap; }
