:root {
  --ink: #172033;
  --paper: #f3f7fb;
  --card: #ffffff;
  --line: #d8e1ec;
  --green: #386bff;
  --green-dark: #2452d6;
  --coral: #ec5f86;
  --yellow: #68d5c2;
  --muted: #667085;
  --shadow: 0 15px 40px rgba(30, 58, 95, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; margin: 0; color: var(--ink); background: var(--paper); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body > .site-header, body > main, body > .site-footer { flex-shrink: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
#config-template-note { font-size: 12px; line-height: 1.4; }
.signin-page { max-width: 580px; margin: 35px auto; }
.signin-page h1 { font-size: 36px; }
.signin-page p { line-height: 1.5; }
.signin-page button { margin: 8px 8px 8px 0; }
#passkey-signin { margin: 14px 0; }

.site-header {
  position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(45, 79, 130, .16);
  background: rgba(243, 247, 251, .92); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); text-decoration: none; font: 700 20px Georgia, serif; }
.brand-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50% 45% 55% 45%; background: var(--coral); color: white; font: 700 22px Georgia, serif; transform: rotate(-5deg); }
.brand-mark.large { width: 58px; height: 58px; margin: 0 auto 18px; font-size: 34px; }
nav { display: flex; align-self: stretch; gap: 28px; }
.nav-button { position: relative; border: 0; display: flex; align-items: center; background: none; color: var(--muted); font-weight: 600; text-decoration: none; }
.nav-link { display: flex; align-items: center; color: var(--muted); font-weight: 600; text-decoration: none; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-button.active { color: var(--ink); }
.nav-button.active::after { content: ''; position: absolute; height: 3px; left: 0; right: 0; bottom: 0; background: var(--coral); border-radius: 3px 3px 0 0; }
#auth-slot { justify-self: end; }
.sign-in-button, .profile-button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); font-weight: 600; }
.profile-button { display: flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; }
.avatar { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; vertical-align: middle; }
.avatar-fallback { display: inline-grid; place-items: center; background: var(--yellow); font-size: 13px; font-weight: 700; }
.count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; margin-left: 4px; border-radius: 10px; background: var(--coral); color: white; font-size: 11px; }

main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }
.hero { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 22px 1%; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, serif; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(29px, 3.7vw, 43px); }
.hero-title { min-height: 2.08em; display: flex; align-items: center; }
.hero-copy { max-width: 660px; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.camera-button { justify-self: center; width: 220px; min-height: 66px; padding: 13px 20px; border: 0; border-radius: 35px 31px 34px 29px; display: flex; align-items: center; justify-content: center; gap: 13px; color: white; background: var(--green); box-shadow: var(--shadow); transform: rotate(1deg); transition: .2s ease; }
.camera-button:hover { transform: translateY(-3px) rotate(-1deg); background: var(--green-dark); }
.camera-button strong, .camera-button small { display: block; text-align: left; }
.camera-button strong { font-size: 16px; }
.camera-button small { margin-top: 3px; opacity: .72; }
.empty-state .camera-button { margin: 20px auto 0; }
.merchandise-card { display: grid; grid-template-columns: minmax(160px, .6fr) minmax(0, 1.4fr); gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.merchandise-preview img { width: 100%; height: 220px; object-fit: contain; }
.merchandise-card textarea { width: 100%; resize: vertical; }
.merchandise-card [aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@media (max-width: 600px) { .merchandise-card { grid-template-columns: 1fr; padding: 16px; } }
.listing-actions { display: flex; align-items: center; gap: 12px; }
.bulk-button { border: 0; background: transparent; color: var(--green); text-decoration: underline; text-decoration-color: rgba(56, 107, 255, .35); text-underline-offset: 4px; }
.bulk-button strong, .bulk-button small { display: block; }
.bulk-button small { margin-top: 3px; color: var(--muted); text-decoration: none; }
.camera-icon, .big-camera { position: relative; display: inline-block; width: 42px; height: 32px; border: 3px solid currentColor; border-radius: 8px; }
.camera-icon::before, .big-camera::before { content: ''; position: absolute; width: 16px; height: 9px; left: 6px; top: -11px; border-radius: 4px 4px 0 0; background: currentColor; }
.camera-icon::after, .big-camera::after { content: ''; position: absolute; width: 12px; height: 12px; top: 6px; left: 12px; border: 3px solid currentColor; border-radius: 50%; }

.feed-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 16px; }
.search { width: min(100%, 500px); display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.search span { font: 28px Georgia; transform: rotate(-20deg); color: var(--muted); }
.search input { flex: 1; height: 48px; border: 0; outline: 0; background: transparent; }
.distance-tools { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.distance-tools label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.distance-tools select { padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.location-button { max-width: 210px; padding: 8px 10px; overflow: hidden; border: 0; background: transparent; color: var(--green); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.location-button span:first-child { font-size: 18px; }
.feed-summary { margin: -10px 0 18px; text-align: right; font-size: 13px; }
.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.farther-break { grid-column: 1 / -1; margin: 18px 0 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; color: var(--muted); text-align: center; }
.farther-break > span { height: 1px; background: var(--line); }
.farther-break strong, .farther-break small { display: block; }
.farther-break strong { color: var(--ink); font: 700 20px Georgia, serif; }
.farther-break small { margin-top: 4px; font-size: 13px; }
.item-card { overflow: hidden; border: 1px solid rgba(45, 79, 130, .14); border-radius: 18px; background: var(--card); box-shadow: 0 4px 15px rgba(30, 58, 95, .05); transition: transform .2s, box-shadow .2s; }
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.item-photo { position: relative; width: 100%; padding: 0; border: 0; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e6edf5; cursor: zoom-in; }
.item-photo img { width: 100%; height: 100%; padding: 8px; object-fit: contain; transition: transform .5s; }
.item-card:hover .item-photo img { transform: scale(1.025); }
.freshness { position: absolute; top: 12px; right: 12px; padding: 5px 9px; border-radius: 15px; color: white; background: rgba(23, 32, 51, .76); backdrop-filter: blur(8px); font-size: 12px; }
.item-card { display: flex; flex-direction: column; position: relative; }
.item-card .item-title-link::after { content: ''; position: absolute; inset: 0; }
.item-card .item-photo, .item-card .offer-button, .item-card .item-title-row > a { position: relative; z-index: 1; }
.item-card:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.item-card > .item-photo { flex-shrink: 0; }
.item-body { padding: 18px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.item-body > .keyword-row { margin-bottom: 17px; }
.item-title-row { display: flex; align-items: flex-start; gap: 10px; }
.item-title-row h2 { flex: 1; margin: 0; font-size: 22px; line-height: 1.15; }
.item-price-summary { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.free-pill { flex: none; padding: 5px 9px; border-radius: 4px; background: #dff7f1; color: #167363; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.item-body > p { margin: 10px 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.description-preview { position: relative; margin: 10px 0; color: var(--muted); font-size: 14px; line-height: 1.5; pointer-events: none; }
.item-description { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.description-more { position: absolute; right: 0; bottom: 0; padding-left: 22px; color: var(--green); background: linear-gradient(to right, transparent, var(--card) 18px); }
.item-details { color: var(--green) !important; font-weight: 600; }
.keyword-row { display: flex; flex-wrap: wrap; gap: 5px; min-height: 27px; }
.keyword-row span { padding: 4px 8px; border-radius: 10px; background: #eef3f9; color: #667085; font-size: 11px; }
.card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #e8eef5; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.request-count { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.seller-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); text-decoration: none; min-width: 0; }
.seller-link:hover { text-decoration: underline; }
.seller-link span { overflow-wrap: anywhere; }
.seller-link small { display: block; }
.item-card .seller-link { position: relative; z-index: 1; }
.card-footer { flex-wrap: wrap; }
#seller-filter { margin-bottom: 18px; color: var(--muted); }
.pickup-template { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
#profile-settings { max-width: 800px; margin-top: 24px; }
.accept-item, .accept-buyer { display: flex; align-items: flex-start; gap: 14px; margin: 16px 0; }
.accept-item > img { width: 100px; height: 100px; object-fit: contain; border-radius: 10px; }
.accept-item h3, .accept-buyer p { margin: 0 0 8px; }
.accept-buyer { padding-top: 14px; border-top: 1px solid var(--line); }
.accept-buyer p { white-space: pre-wrap; overflow-wrap: anywhere; }
.pickup-profile-hint { font-size: 11px; line-height: 1.3; margin-top: -8px; }
.listing-controls { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 5px 0; }
.activity-actions .listing-controls > button, .listing-controls > select { width: auto; flex: 0 0 auto; padding: 8px; font-size: 12px; white-space: nowrap; }
.publication-failure { color: #a33a35; font-size: 13px; }
#camera-message { white-space: pre-line; text-wrap: balance; }
.config-listing-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 10px; }
.config-listing-heading .eyebrow { margin: 0; }
.config-listing-heading select { flex: none; width: auto; }
.card-footer > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.offer-button, .primary { border: 0; border-radius: 9px; background: var(--green); color: white; font-weight: 700; }
.offer-button { padding: 10px 13px; }
.offer-button:hover, .primary:hover { background: var(--green-dark); }
.item-title-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; }
.item-title-link:hover { color: var(--green); }
.value-line { color: #5b4cc4 !important; font-weight: 700; }

.profile-menu { position: relative; }
.profile-dropdown { position: absolute; top: calc(100% + 9px); right: 0; z-index: 30; width: 190px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.profile-dropdown button { width: 100%; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.profile-dropdown button:hover { background: #eef3f9; }
.profile-dropdown > a { display: block; padding: 10px 11px; border-radius: 7px; color: inherit; text-decoration: none; }
.profile-dropdown > a:hover { background: #eef3f9; }
.profile-name { padding: 10px 11px 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.profile-email { padding: 10px 11px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.profile-name + .profile-email { padding-top: 4px; }
.sent-request-details { display: grid; gap: 14px; margin: 22px 0; }
.sent-request-details > div { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.sent-request-details dt { margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.sent-request-details dd { margin: 0; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-dropdown hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 54px 0 36px; }
.heading-actions { display: flex; gap: 8px; }
.section-heading h1 { font-size: 52px; }
.section-heading .primary { padding: 13px 18px; }
#dashboard-view > h2, .notices h2 { margin: 38px 0 16px; font-size: 24px; }
.dashboard-list { display: grid; gap: 10px; }
.activity-card { min-height: 92px; display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.activity-photo { width: 70px; height: 70px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: #e6edf5; cursor: zoom-in; }
.activity-photo img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.activity-card h3, .offer-row h3 { margin: 0 0 5px; }
.seller-listing { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.seller-listing > .activity-card { border: 0; }
.seller-listing.needs-attention { background: #eef3ff; border-color: #c6d5f5; }
.seller-listing.needs-attention > .activity-card { background: transparent; }
.listing-requests { padding: 12px 16px; border-top: 1px solid var(--line); }
.listing-requests > h3 { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.activity-card p, .offer-row p { margin: 0; color: var(--muted); font-size: 14px; }
.activity-actions { padding-right: 8px; }
.offer-symbol { width: 54px; height: 54px; display: grid; place-items: center; margin-left: 8px; border-radius: 50%; background: #e7edf6; color: var(--green); font: 700 24px Georgia, serif; }
.pickup-details { margin-top: 10px; padding: 10px; border-radius: 8px; background: #eaf0ff; font-size: 13px; line-height: 1.5; }
.notices { padding: 2px 20px 18px; border: 1px solid var(--line); border-radius: 15px; background: #e8eef6; }
.notice { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid rgba(45, 79, 130, .12); }
.notice > span { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: transparent; }
.notice.unread > span { background: var(--coral); }
.notice p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.notice time { color: var(--muted); font-size: 12px; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(17, 24, 39, .68); backdrop-filter: blur(4px); }
.modal { width: min(calc(100% - 28px), 520px); max-height: calc(100dvh - 28px); padding: 30px; border: 0; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.modal.wide { width: min(calc(100% - 28px), 680px); }
.modal h2 { margin: 0 35px 8px 0; font-size: 30px; }
.dialog-close { position: absolute; top: 17px; right: 17px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #e8eef6; font-size: 24px; line-height: 1; }
.field { display: grid; gap: 7px; margin: 17px 0; font-size: 13px; font-weight: 700; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56, 107, 255, .13); }
textarea { min-height: 90px; resize: vertical; }
.money-input { display: flex; align-items: center; gap: 8px; padding-left: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 18px; }
.money-input input { border: 0; }
.offer-kinds { display: grid; gap: 8px; padding: 0; margin: 22px 0; border: 0; }
.offer-kinds legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.offer-kinds label { position: relative; display: block; }
.offer-kinds input { position: absolute; opacity: 0; }
.offer-kinds span { display: grid; gap: 2px; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 10px; }
.offer-kinds span::before { content: ''; position: absolute; left: 15px; top: 19px; width: 14px; height: 14px; border: 1px solid #98a2b3; border-radius: 50%; }
.offer-kinds input:checked + span { border-color: var(--green); background: #eaf0ff; }
.offer-kinds input:checked + span::before { border: 4px solid var(--green); width: 8px; height: 8px; }
.offer-kinds small { color: var(--muted); }
.primary, .secondary, .google-button { padding: 12px 16px; }
.secondary { border: 1px solid var(--line); border-radius: 9px; background: white; font-weight: 700; }
.full { width: 100%; }
.small { padding: 9px 12px; font-size: 13px; }
button:disabled { opacity: .55; cursor: wait; }
.offer-page-form .primary:disabled { opacity: 1; color: #f8fafc; background: #98a2b3; cursor: not-allowed; }
.form-message { min-height: 22px; margin: 10px 0; color: var(--green); font-size: 13px; text-align: center; }
.form-message.error { color: #c43d63; }
.privacy-note, .deadline { padding: 12px; border-radius: 8px; background: #eef3f9; color: var(--muted); font-size: 13px; line-height: 1.5; }
.offer-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.checklist { display: grid; gap: 9px; margin: 20px 0; }
.checklist label { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 9px; line-height: 1.4; }
.checklist input { width: 18px; height: 18px; accent-color: var(--green); }
.detail-back { padding: 24px 0 16px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(28px, 5vw, 68px); align-items: start; }
.detail-photo { width: 100%; min-height: 520px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #e6edf5; cursor: zoom-in; }
.detail-photo img { width: 100%; max-height: 72vh; padding: 18px; object-fit: contain; }
.photo-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: #080d18; overflow: hidden; }
.photo-lightbox[open] { display: block; }
.lightbox-stage { position: absolute; inset: 24px 80px; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.photo-lightbox img { width: auto; max-width: 100%; height: auto; max-height: 100%; display: block; object-fit: contain; }
.lightbox-close { position: fixed; z-index: 2; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: 44px; height: 44px; border: 0; border-radius: 50%; color: white; background: rgba(23, 32, 51, .82); font-size: 30px; line-height: 1; }
.lightbox-arrow { position: fixed; z-index: 2; top: 50%; width: 52px; height: 68px; border: 0; border-radius: 12px; color: white; background: rgba(23, 32, 51, .82); font-size: 48px; line-height: 1; transform: translateY(-50%); }
.lightbox-arrow:hover, .lightbox-close:hover { background: rgba(56, 107, 255, .92); }
.lightbox-prev { left: max(16px, env(safe-area-inset-left)); }
.lightbox-next { right: max(16px, env(safe-area-inset-right)); }
.lightbox-caption { position: fixed; z-index: 2; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: min(calc(100% - 150px), 680px); padding: 12px 12px 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 14px; color: white; background: rgba(23, 32, 51, .5); backdrop-filter: blur(12px); transform: translateX(-50%); }
.lightbox-caption #lightbox-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-weight: 700; text-decoration: none; }
.lightbox-caption #lightbox-title:hover { text-decoration: underline; }
.lightbox-caption .primary { flex: none; }
.detail-content { padding-top: 20px; }
.detail-content h1 { font-size: clamp(36px, 5vw, 58px); }
.detail-market { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 14px; }
.detail-market > div, .estimate-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.detail-market small, .detail-market strong, .estimate-card small, .estimate-card strong { display: block; }
.detail-market small, .estimate-card small { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.detail-market strong, .estimate-card strong { font-size: 20px; }
.interest-line { color: var(--coral); font-weight: 800; }
.detail-description { color: #475467; font-size: 17px; line-height: 1.65; }
.detail-attributes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.detail-attributes:empty { display: none; }
.detail-attributes div { padding: 11px; background: var(--card); }
.detail-attributes dt { color: var(--muted); font-size: 11px; }
.detail-attributes dd { margin: 3px 0 0; font-weight: 700; }
.detail-owner { margin: 22px 0; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.detail-cta { width: 100%; padding: 15px 20px; font-size: 17px; }

.config-layout, .offer-page-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(400px, 1.3fr); gap: clamp(25px, 5vw, 65px); align-items: start; }
.config-preview, .offer-item-summary { position: sticky; top: 100px; }
.config-preview > img { width: 100%; max-height: 430px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; object-fit: contain; background: #e6edf5; }
.offer-photo-button { width: 100%; max-height: 430px; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #e6edf5; cursor: zoom-in; }
.offer-photo-button img { width: 100%; height: auto; max-height: 428px; padding: 12px; display: block; object-fit: contain; }
.config-preview > p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.estimate-card { margin-top: 12px; }
.config-form, .offer-page-form { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.price-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0; margin: 20px 0; border: 0; }
.price-choice legend { grid-column: 1 / -1; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.price-choice label { position: relative; }
.price-choice input { position: absolute; opacity: 0; }
.price-choice label > span { height: 100%; padding: 13px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; }
.price-choice small { color: var(--muted); line-height: 1.35; }
.price-choice input:checked + span { border-color: var(--green); background: #eaf0ff; box-shadow: inset 0 0 0 1px var(--green); }
.selection-choice { grid-template-columns: 1fr; }
.config-layout, .offer-page-layout { max-width: 960px; margin: 0 auto; }
.config-preview.offer-item-summary { position: static; }
.config-preview input, .config-preview textarea, .config-preview select { border: 1px solid var(--line); border-radius: 7px; background: var(--card); padding: 8px; }
.config-preview input:focus, .config-preview textarea:focus, .config-preview select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.config-title-input { width: 100%; min-width: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.3; font-weight: 700; margin: 8px 0; resize: none; overflow: hidden; overflow-wrap: anywhere; }
.config-photo-actions { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
.config-save-actions { display: flex; justify-content: flex-end; }
#config-save.is-saving { opacity: 1; color: white; cursor: wait; animation: listing-saving-blue .8s ease-in-out infinite; }
@keyframes listing-saving-blue { 0%, 100% { background: #2563eb; } 50% { background: #60a5fa; } }
.review-retry-small { display: block; width: fit-content; padding: 3px 7px; margin: 4px 0 8px; font-size: 11px; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { #config-save.is-saving { animation: none; background: #2563eb; } }
.config-photo-actions button { flex: 1 1 auto; min-width: 0; padding: 9px 8px; font-size: 12px; white-space: nowrap; }
.chat-message blockquote { margin: 0 0 8px; padding-left: 10px; border-left: 2px solid var(--muted); overflow-wrap: anywhere; }
.chat-message > button { margin-top: 8px; }
.config-estimate-field { display: block; max-width: 100%; }
.config-estimate-field input { width: 100%; min-width: 0; font-size: 19px; font-weight: 700; }
.config-description-input { width: 100%; min-height: 130px; color: #475467; font-size: 15px; line-height: 1.6; }
.config-attributes { margin: 16px 0; }
.config-attributes label { min-width: 0; padding: 11px; background: var(--card); }
.config-attributes label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.config-attributes input, .config-attributes select { width: 100%; min-width: 0; padding: 7px; font-weight: 700; }
.offer-item-summary h1 { margin-top: 8px; font-size: clamp(24px, 2.3vw, 30px); }
.offer-title-row { position: relative; }
.offer-title-row h1 { width: 100%; min-width: 0; overflow-wrap: normal; word-break: normal; }
.title-word { white-space: nowrap; }
.offer-title-row > a { position: absolute; right: 0; bottom: calc(100% + 8px); margin: 0; }
.offer-item-summary .eyebrow { margin-top: 20px; }
.offer-estimate { width: fit-content; min-width: 155px; margin: 15px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.offer-estimate small, .offer-estimate strong { display: block; }
.offer-estimate small { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.offer-estimate strong { font-size: 19px; }
.offer-item-description { color: #475467; font-size: 15px; line-height: 1.6; }
.item-questions { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.item-questions h2 { margin: 0; font-size: 22px; }
#item-question-list { margin: 16px 0; color: var(--muted); }
.item-question { display: block; padding: 12px 0; color: var(--green); white-space: pre-wrap; overflow-wrap: anywhere; text-decoration: none; }
.item-question + .item-question { border-top: 1px solid var(--line); }
.item-question:hover { text-decoration: underline; }
#all-item-questions { display: block; margin: 12px 0; color: var(--green); font-size: 14px; }
.review-notice { padding: 14px 18px; border: 1px solid #c6d5f5; border-radius: 10px; background: #eef3ff; }
.review-notice a { color: var(--green); }
.review-photo { font-size: 13px; max-width: 320px; }
.offer-page-form h2 { margin: 0 0 10px; font-size: 31px; }
.offer-explainer { color: #475467; line-height: 1.55; }
.free-request { margin: 8px 0 16px; padding: 15px; display: grid; gap: 4px; border-radius: 11px; background: #e8faf6; }
.free-request span { color: #475467; }
.request-option { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff5f8; }
.request-option > small { color: var(--muted); }
.request-option > small strong { color: var(--ink); }
.cash-offer-cell .money-input { max-width: 220px; }
.cash-offer-cell .money-input input { min-width: 0; width: 100%; appearance: textfield; -moz-appearance: textfield; }
.cash-offer-cell .money-input input::-webkit-inner-spin-button,
.cash-offer-cell .money-input input::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.pickup-promise { margin: 18px 0; padding: 14px; display: grid; gap: 4px; border-radius: 10px; background: #eaf0ff; line-height: 1.45; }
.pickup-promise span { color: #475467; font-size: 13px; }
.pickup-commitment { margin: 20px 0; padding: 14px; display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; border: 1px solid var(--line); border-radius: 10px; background: #eaf0ff; font-weight: 400; line-height: 1.45; }
.pickup-commitment strong { font-weight: inherit; }
.pickup-commitment, .request-option > small, .free-request { font-size: 1rem; font-weight: 400; line-height: 1.45; }
.request-option > small strong { font-weight: inherit; }
.free-request strong { font-weight: 700; }
.pickup-commitment input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--green); }
.auth-modal { text-align: center; }
.google-button { width: 100%; margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; background: white; font-weight: 700; }
.google-button span { margin-right: 9px; color: #4285f4; font-size: 18px; }
.auth-legal { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-legal a, .site-footer a, .legal-document a { color: var(--green); }
.dropzone { min-height: 150px; margin: 22px 0 15px; padding: 25px; display: grid; place-items: center; align-content: center; gap: 4px; border: 2px dashed var(--line); border-radius: 14px; background: #f7faff; text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone.dragging { border-color: var(--green); background: #eaf0ff; }
.dropzone small { color: var(--muted); }
.upload-arrow { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; color: white; background: var(--green); font-size: 23px; }
.bulk-summary { color: var(--muted); font-size: 13px; }
.bulk-queue { max-height: 300px; margin: 10px 0; overflow: auto; display: grid; gap: 7px; }
.bulk-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.bulk-row img { width: 48px; height: 48px; border-radius: 6px; object-fit: contain; background: #e6edf5; }
.bulk-row strong, .bulk-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bulk-row small { margin-top: 2px; color: var(--muted); }
.bulk-status { padding: 4px 7px; border-radius: 10px; background: #edf2f7; color: var(--muted); font-size: 11px; font-weight: 700; }
.bulk-row.accepted .bulk-status { background: #dff7f1; color: #167363; }
.bulk-row.duplicate .bulk-status { background: #eaf0ff; color: var(--green-dark); }
.bulk-row.rejected .bulk-status { background: #fde6ed; color: #c43d63; }
.bulk-row.processing .bulk-status { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .45; } }

.sheet { width: min(100%, 680px); padding: 0; border: 0; border-radius: 20px; background: var(--card); overflow: hidden; }
.dialog-top { min-height: 56px; padding: 8px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-weight: 700; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e8eef6; font-size: 23px; }
.camera-stage { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; background: #111827; color: white; }
.camera-stage video, .camera-stage img { width: 100%; height: 100%; max-height: 62vh; position: absolute; inset: 0; object-fit: contain; }
#camera-empty { max-width: 390px; padding: 40px; text-align: center; }
#camera-empty h2 { font-size: 28px; }
#camera-empty p { color: rgba(255,255,255,.65); line-height: 1.6; }
.big-camera { width: 70px; height: 52px; color: var(--yellow); }
.big-camera::after { width: 21px; height: 21px; left: 20px; top: 10px; }
.camera-preview-wrap { position: relative; }
.retake-overlay { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: white; background: rgba(17,24,39,.65); }
.retake-overlay:hover { background: rgba(17,24,39,.9); }
.camera-actions { min-height: 82px; padding: 12px 12px 18px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; }
.camera-actions > button:not(.shutter) { padding: 12px 10px; min-width: 0; white-space: nowrap; }
#list-photo-label { flex: none; }
.shutter { width: 58px; height: 58px; padding: 4px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: transparent; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--coral); }

.empty-state { grid-column: 1 / -1; padding: 55px 20px; border: 1px dashed var(--line); border-radius: 15px; color: var(--muted); text-align: center; }
.empty-state > span { font-size: 30px; color: var(--coral); }
.empty-state h3 { margin: 8px 0 3px; color: var(--ink); font: 700 22px Georgia, serif; }
.empty-state p { margin: 0; }
.skeleton { min-height: 330px; border-radius: 18px; background: linear-gradient(100deg, #dfe7f1 20%, #f2f6fb 40%, #dfe7f1 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.toast { position: fixed; z-index: 100; left: 50%; bottom: 22px; max-width: calc(100% - 30px); padding: 13px 18px; border-radius: 10px; color: white; background: var(--ink); box-shadow: var(--shadow); transform: translate(-50%, 100px); opacity: 0; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
[class^="status-"] { color: var(--green); font-weight: 700; }
.status-declined { color: var(--muted); }

.site-footer { width: 100%; max-width: 1240px; margin: auto auto 0; padding: 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer span:last-child { display: flex; gap: 18px; }
.legal-header { grid-template-columns: 1fr auto; }
.legal-header nav { align-items: center; }
.legal-header nav a { color: var(--green); font-weight: 700; text-decoration: none; }
.legal-main { max-width: 800px; padding-top: 64px; }
.about-view { max-width: 800px; margin: 0 auto; padding-top: 64px; }
.legal-document { padding: clamp(25px, 5vw, 55px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 4px 15px rgba(30, 58, 95, .05); }
.legal-document h1 { margin-bottom: 8px; font-size: clamp(40px, 7vw, 58px); }
.legal-document h2 { margin: 36px 0 10px; font-size: 23px; }
.legal-document p, .legal-document li { color: #475467; line-height: 1.72; }
.legal-document ul { padding-left: 22px; }
.legal-document .effective { margin-bottom: 36px; color: var(--muted); }
.legal-document .summary { padding: 16px 18px; border-left: 4px solid var(--coral); border-radius: 5px; background: #fff0f4; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: auto 1fr auto; padding: 0 16px; }
  .brand > span:last-child { display: none; }
  nav { justify-content: center; gap: 17px; }
  main { padding-left: 15px; padding-right: 15px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 17px; padding: 20px 4px; }
  .camera-button { justify-self: start; min-height: 62px; border-radius: 32px; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .detail-layout, .config-layout, .offer-page-layout { grid-template-columns: 1fr; }
  .detail-photo { min-height: 380px; }
  .config-preview, .offer-item-summary { position: static; }
}

@media (max-width: 560px) {
  #dashboard-view .heading-actions > a[href="/merchandise"],
  #dashboard-view .heading-actions > [data-open-bulk] { display: none; }
  #dashboard-view .section-heading { align-items: center; gap: 12px; padding: 28px 0 24px; }
  #dashboard-view .section-heading h1 { font-size: 32px; white-space: nowrap; }
  #dashboard-view .heading-actions { flex-shrink: 0; }
  #dashboard-camera { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .site-header { height: 64px; }
  .nav-button { font-size: 13px; }
  .nav-link { display: none; }
  .profile-button > span:not(.avatar) { display: none; }
  .profile-button { min-width: 44px; min-height: 44px; justify-content: center; border: 0; background: transparent; padding: 0; }
  .hero h1 { font-size: 31px; }
  .hero-copy { font-size: 14px; }
  .listing-actions { justify-content: space-between; }
  .camera-button { width: 190px; }
  .feed-tools { padding: 22px 0 16px; }
  .feed-tools { align-items: stretch; flex-direction: column; gap: 10px; }
  .distance-tools { justify-content: space-between; }
  .feed-summary { margin-top: -8px; text-align: left; }
  .item-grid { grid-template-columns: 1fr; }
  .item-card { display: grid; grid-template-columns: 42% 58%; min-height: 210px; }
  .item-photo { height: 100%; aspect-ratio: auto; }
  .item-body { padding: 14px; }
  .item-title-row { flex-wrap: wrap; align-items: center; gap: 8px; }
  .item-title-row h2 { flex: 0 0 100%; min-width: 0; font-size: 19px; overflow-wrap: normal; word-break: normal; }
  .item-title-row > a { margin-left: auto; }
  .keyword-row { display: none; }
  .card-footer { align-items: flex-end; }
  .card-footer > span { display: none; }
  .offer-button { width: 100%; }
  .section-heading h1 { font-size: 42px; }
  .activity-card { grid-template-columns: 55px 1fr; }
  .activity-photo { width: 55px; height: 55px; }
  .activity-actions { grid-column: 1 / -1; padding: 0; }
  .activity-actions button { width: 100%; }
  .camera-stage { min-height: 55vh; }
  .modal { padding: 25px 20px; }
  .site-footer { flex-direction: column; }
  .legal-header .brand > span:last-child { display: inline; }
  .legal-main { padding-top: 28px; }
  .legal-document { padding: 25px 20px; }
  .detail-photo { min-height: 280px; }
  .detail-market, .config-grid, .price-choice { grid-template-columns: 1fr; }
  .config-form, .offer-page-form { padding: 20px 16px; }
  .photo-lightbox { padding: 16px; }
  .lightbox-stage { inset: 16px; }
  .lightbox-arrow { width: 42px; height: 58px; font-size: 40px; }
  .lightbox-caption { width: calc(100% - 32px); }
}
:root .admin-review-card { display: grid; grid-template-columns: minmax(180px, 35%) minmax(0, 1fr); gap: 24px; padding: 24px; background: white; border-radius: 16px; }
.admin-review-photo { padding: 0; border: 0; background: transparent; cursor: zoom-in; align-self: start; }
.admin-review-photo img { width: 100%; max-height: 480px; object-fit: contain; }
.admin-review-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.admin-review-card dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { :root .admin-review-card { grid-template-columns: 1fr; padding: 16px; } }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0; }
.photo-strip:empty { display: none; }
.photo-strip button { flex: 0 0 64px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: zoom-in; }
.photo-strip img { display: block; width: 58px; height: 58px; object-fit: contain; }
.lightbox-photo-strip { position: absolute; z-index: 3; bottom: 82px; left: 50%; transform: translateX(-50%); max-width: 85vw; padding: 5px; border-radius: 10px; background: rgb(255 255 255 / 50%); }
.chat-messages { max-height: 45dvh; overflow-y: auto; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.chat-message { align-self: flex-start; max-width: 85%; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: #f0f3f8; }
.chat-message.mine { align-self: flex-end; background: #e4edff; border-radius: 18px 18px 4px 18px; }
.chat-message time { display: block; color: var(--muted); font-size: 12px; }
.chat-message p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form[hidden] { display: none; }
#chat-content [hidden] { display: none; }
#public-item-chat { margin: 12px 0; }
.chat-form { display: flex; align-items: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; font: inherit; resize: vertical; }
.chat-form button { border-radius: 16px; }
#chat-content [data-explanation] { font-size: 13px; color: var(--muted); }
.listing-chat-actions { grid-column: 1 / -1; padding-top: 8px; }
.my-stuff-filter { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); }
.my-stuff-filter select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }

.config-review-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.config-review-controls .review-retry-small { margin: 0; }

[data-card-detail] { position: relative; isolation: isolate; cursor: pointer; }
[data-card-detail] .item-title-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
[data-card-detail] .item-title-link:focus-visible::after { outline: 2px solid var(--primary, #2563eb); outline-offset: -2px; }
[data-card-detail] :is(button, select, input, textarea, a:not(.item-title-link)) { position: relative; z-index: 2; }

.person-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: inherit; text-decoration: none; cursor: pointer; }
.person-link:hover { text-decoration: underline; }
.person-content { padding: 24px; text-align: center; }
.person-content > .avatar { width: 80px; height: 80px; margin: 0 auto; font-size: 32px; }
.person-content h2 { margin-bottom: 8px; }

.config-photo-wrap { position: relative; }
.rotate-photo { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; padding: 8px; background: var(--card); box-shadow: 0 1px 6px #0002; }

.activity-card p.selected-recipient { margin-top: 8px; color: var(--text); }
.activity-card p.deal-progress { margin-top: 3px; font-size: 12px; }

.dashboard-group { min-width:0; border:1px solid var(--line); border-radius:16px; background:var(--card); }
.dashboard-group > summary { display:flex; align-items:center; gap:10px; padding:14px 16px; cursor:pointer; font-weight:650; list-style:none; }
.dashboard-group > summary::-webkit-details-marker { display:none; }
.dashboard-group > summary::before { content:'›'; flex:none; font-size:22px; line-height:1; transition:transform .15s; }
.dashboard-group[open] > summary::before { transform:rotate(90deg); }
.dashboard-group > summary > span:first-of-type { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-group .group-count { margin-left:auto; flex:none; font-size:12px; font-weight:400; color:var(--muted); }
.dashboard-group-items { display:grid; gap:10px; padding:0 10px 10px; }
.recipient-group { border-color:#b9cee7; background:#edf4fc; }
.dashboard-group > summary:focus-visible { outline:2px solid #2563eb; outline-offset:-3px; border-radius:14px; }
.person-chat-button { display:block; margin:16px auto 0; }
.seller-pickup-instructions { margin-top:10px; padding:10px 12px; border-left:3px solid #b9cee7; background:#fff9; border-radius:4px; }
.seller-pickup-instructions > strong { font-size:12px; }
.seller-pickup-instructions p { white-space:pre-wrap; overflow-wrap:anywhere; }

.offer-request-panel { min-width:0; display:grid; gap:16px; }
.request-summary { padding:16px 20px; border:1px solid #b9cee7; border-radius:14px; background:#edf4fc; }
.request-summary p { margin:0; }
.request-summary p + p { margin-top:8px; }
.request-summary-message { white-space:pre-wrap; overflow-wrap:anywhere; }
