:root { color-scheme: light; --ink:#152c25; --weak:#53655c; --accent:#17634c; --paper:#f5f7f0; --line:#d8e3d9; --card:#fff; font-family:ui-sans-serif,system-ui,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); }
header { background:var(--ink); color:white; }
.top { min-height:66px; max-width:1160px; padding:12px 24px; margin:auto; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.brand { display:inline-flex; align-items:center; gap:8px; color:inherit; text-decoration:none; font-size:1.28rem; font-weight:800; }
.mark { color:#b8efb8; font-size:1.8rem; line-height:1; }
#account { display:flex; align-items:center; gap:.75rem; }
.local-label,.eyebrow { font-size:.72rem; letter-spacing:.13em; font-weight:800; }
.eyebrow { color:var(--accent); }
main { max-width:1160px; margin:auto; padding:32px 24px 64px; }
.welcome { display:grid; grid-template-columns:1.25fr 1fr; gap:48px; align-items:center; min-height:76vh; max-width:1020px; }
.intro h1 { font-size:clamp(2.8rem,6vw,5.4rem); letter-spacing:-.077em; line-height:.99; margin:.35em 0; }
.intro p { max-width:38ch; font-size:1.15rem; color:var(--weak); }
.intro ol { padding-left:1.25rem; line-height:1.9; color:var(--accent); font-weight:600; }
h1,h2,h3,p { margin:0 0 .65rem; }
h1 { font-size:clamp(1.8rem,4vw,3rem); letter-spacing:-.045em; }
h2 { font-size:1.27rem; }
h3 { font-size:1rem; }
p { line-height:1.5; }
.layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:20px; align-items:start; }
.layout.single { grid-template-columns:1fr; }
.stack { display:grid; gap:14px; }
.panel,.request-card { border:1px solid var(--line); background:var(--card); border-radius:16px; padding:20px; }
.auth { padding:24px; }
.page-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:10px; }
.page-head h1,.page-head h2 { margin-bottom:0; }
form { display:grid; gap:12px; }
label { display:grid; gap:5px; font-weight:650; font-size:.89rem; }
label small,.hint,.muted { color:var(--weak); font-weight:400; }
label small,.hint { font-size:.78rem; }
.hint { margin:-6px 0 0; }
input,textarea,select,button { font:inherit; }
input,textarea,select { width:100%; padding:9px 11px; background:#fff; border:1px solid #a8bbae; border-radius:8px; color:var(--ink); }
textarea { resize:vertical; }
button { width:fit-content; border:1px solid transparent; color:white; background:var(--accent); border-radius:8px; padding:8px 13px; font-weight:675; cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
button:hover:not(:disabled) { filter:brightness(.94); }
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible { outline:3px solid #478566; outline-offset:2px; }
button.secondary { background:#fff; color:var(--ink); border-color:var(--line); }
.switch { margin-top:12px; }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.request-card { display:grid; width:100%; gap:7px; text-align:left; color:var(--ink); font-weight:500; }
.request-card strong { font-size:1.12rem; }
.maker-workspace-tabs { display:flex; gap:8px; margin:0 0 18px; padding:5px; width:fit-content; border:1px solid var(--line); border-radius:14px; background:var(--card); }
.maker-workspace-tabs button { display:flex; align-items:center; gap:8px; padding:10px 15px; border-radius:10px; background:transparent; color:var(--ink); }
.maker-workspace-tabs button.selected { background:#15362d; color:#fff; }
.maker-workspace-tabs button span { display:grid; min-width:22px; height:22px; padding:0 6px; place-items:center; border-radius:20px; background:#00000012; font-size:.75rem; }
.maker-workspace-tabs button.selected span { background:#ffffff24; }
.maker-workspace-panel { grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
.maker-workspace-panel[hidden] { display:none; }
.maker-bid-card { position:relative; min-height:190px; align-content:start; border-color:#d9e3de; box-shadow:0 10px 28px #17352b0a; }
.maker-bid-card.bid-selected { border-color:#68aa83; background:linear-gradient(145deg,#fff 60%,#e9f7ee); }
.maker-bid-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.maker-bid-terms { display:flex; flex-wrap:wrap; gap:7px; margin-top:5px; }
.maker-bid-terms span { padding:7px 9px; border-radius:8px; background:#f4f2ef; font-size:.82rem; }
.maker-bid-note { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.maker-bid-open { margin-top:auto; padding-top:7px; color:#185a43; font-weight:750; }
.tag { display:inline-block; width:fit-content; color:#174f3a; background:#e3f3e6; border-radius:99px; padding:4px 9px; font-size:.77rem; font-weight:700; }
.estimate { border-radius:8px; padding:9px; background:#edf5e8; color:#234e39; margin:0; }
.notice { color:#802b1f; background:#fff0eb; padding:10px 12px; border:1px solid #efc4b9; border-radius:8px; }
.offer { border-top:1px solid var(--line); padding:12px 0; }
.offer:last-child { padding-bottom:0; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.pre { white-space:pre-wrap; overflow-wrap:anywhere; }
dl { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:15px 0; }
dt { font-size:.75rem; color:var(--weak); }
dd { margin:2px 0 0; font-weight:650; overflow-wrap:anywhere; }
.files { display:flex; gap:8px; flex-wrap:wrap; }
.files a { display:grid; gap:4px; color:var(--accent); border:1px solid var(--line); border-radius:8px; padding:7px; max-width:180px; overflow-wrap:anywhere; }
.files img { width:100%; max-height:100px; object-fit:contain; }
.message-list { display:grid; gap:7px; max-height:400px; overflow:auto; margin-bottom:12px; }
.bubble { border-radius:8px; padding:8px 10px; background:#f0f3f0; }
.bubble.mine { background:#e3f3e6; }
.bubble p { margin:3px 0 0; }
.empty { border-style:dashed; color:var(--weak); }
@media (max-width:740px) {
  main { padding:23px 14px 40px; }
  .top { padding-inline:14px; }
  .welcome,.layout { grid-template-columns:1fr; gap:16px; }
  .layout > section.stack { order:2; }
  .intro h1 { font-size:clamp(2.5rem,12vw,4rem); }
}

.calculator-page { max-width:980px; margin:0 auto; }
.calculator-intro { max-width:700px; margin-bottom:28px; }
.calculator-card { padding:clamp(22px,4vw,42px); border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 18px 60px rgba(73,42,21,.08); }
.calculator-card > label { font-size:14px; font-weight:700; }
.weight-input { display:flex; align-items:center; margin:8px 0 18px; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fffaf5; }
.weight-input:focus-within { outline:3px solid rgba(239,111,46,.18); border-color:var(--orange); }
.weight-input input { min-width:0; flex:1; margin:0; border:0; border-radius:0; background:transparent; font-size:clamp(24px,5vw,38px); font-weight:700; }
.weight-input input:focus { outline:0; }
.weight-input span { padding:0 18px; color:var(--weak); }
.calculator-rate,.calculator-result { display:flex; justify-content:space-between; gap:12px; padding:14px 0; border-top:1px solid var(--line); }
.calculator-result { display:grid; grid-template-columns:1fr auto; align-items:center; padding:22px 0; }
.calculator-result strong { color:var(--orange); font-size:clamp(20px,4vw,32px); text-align:right; }
.calculator-result small { grid-column:1/-1; color:var(--weak); }
.calculator-card button { width:100%; }
.calculator-card button:disabled { cursor:not-allowed; opacity:.45; }
.calculator-notes { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.calculator-notes article { padding:18px; border:1px solid var(--line); border-radius:12px; }
.calculator-notes p { margin-bottom:0; color:var(--weak); }

@media (max-width:480px) {
  .calculator-card { padding:18px; }
  .calculator-result { grid-template-columns:1fr; }
  .calculator-result strong { text-align:left; }
  .calculator-notes { grid-template-columns:1fr; }
}

.nearby-filter { align-items:end; }
.nearby-summary { display:flex; justify-content:space-between; gap:18px; align-items:center; margin:22px 0; padding:18px 20px; border:1px solid var(--line); border-radius:14px; background:#fffaf5; }
.nearby-summary strong,.nearby-summary span { display:block; }
.nearby-summary > div:last-child { text-align:right; }
.maker-result { position:relative; }
.distance { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:12px 0; padding:10px 12px; border-radius:9px; background:#fff1e8; color:#9a431f; }
.distance span { font-size:11px; color:var(--weak); }

@media (max-width:480px) {
  .nearby-summary,.distance { align-items:flex-start; flex-direction:column; }
  .nearby-summary > div:last-child { text-align:left; }
}

.avatar.avatar-art { width:41px; height:41px; border:2px solid #fff; color:#fff; font-size:18px; font-weight:900; box-shadow:0 2px 8px #3a251428; overflow:hidden; }
.avatar-art > span { transform:rotate(-7deg); text-shadow:0 1px 1px #0003; }
.avatar-art.tone-1,.avatar-art.tone-9 { background:linear-gradient(145deg,#ff6b35,#f3a33c); }
.avatar-art.tone-2,.avatar-art.tone-10 { background:linear-gradient(145deg,#3854d8,#8b63e8); }
.avatar-art.tone-3,.avatar-art.tone-11 { background:linear-gradient(145deg,#e34b79,#ff8b72); }
.avatar-art.tone-4,.avatar-art.tone-12 { background:linear-gradient(145deg,#188b77,#63bd8c); }
.avatar-art.tone-5,.avatar-art.tone-13 { background:linear-gradient(145deg,#8c531e,#e28a37); }
.avatar-art.tone-6,.avatar-art.tone-14 { background:linear-gradient(145deg,#7134a8,#c665d4); }
.avatar-art.tone-7,.avatar-art.tone-15 { background:linear-gradient(145deg,#2774a8,#58b6d1); }
.avatar-art.tone-8,.avatar-art.tone-16 { background:linear-gradient(145deg,#42534b,#88a07e); }
.avatar.avatar-small { width:32px; height:32px; font-size:14px; }
.avatar.avatar-large { width:80px; height:80px; font-size:34px; }
.account-profile-link { display:flex; align-items:center; gap:8px; color:inherit; text-decoration:none; }

.avatar-field { border:0; padding:0; margin:4px 0; }
.avatar-field legend { font-weight:750; margin-bottom:2px; }
.avatar-picker { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:9px; }
.avatar-option { position:relative; display:grid; place-items:center; gap:4px; padding:6px 3px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; text-align:center; }
.avatar-option input { position:absolute; opacity:0; width:1px; height:1px; }
.avatar-option small { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; color:var(--weak); }
.avatar-option:has(input:checked) { border-color:#ef6f2e; background:#fff4ec; box-shadow:0 0 0 2px #ef6f2e33; }
.avatar-option:has(input:focus-visible) { outline:3px solid #478566; outline-offset:2px; }
.profile-settings-head { display:flex; align-items:center; gap:18px; margin-bottom:24px; }

.side-panel.nearby-compact { display:grid; gap:8px; max-height:180px; padding:14px 16px; }
.nearby-compact .compact-heading { display:flex; align-items:start; justify-content:space-between; gap:10px; }
.nearby-compact .compact-heading h2 { font-size:17px; margin:1px 0 0; }
.nearby-compact .compact-heading a { font-size:11px; }
.compact-maker-summary { display:flex; align-items:center; gap:10px; min-height:35px; }
.compact-maker-summary > div:last-child { display:grid; gap:1px; }
.compact-maker-summary .available { font-size:10px; }
.nearby-compact .compact-action { width:100%; padding:7px 10px; font-size:12px; text-align:center; }
.community-compact .panel-top { align-items:center; }
.community-compact .compact-question { padding:6px 8px; font-size:11px; white-space:nowrap; }
.reply-with-avatar { display:flex; gap:10px; align-items:flex-start; }
.share-composer { max-width:760px; }
.post-type { border:0; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.post-type legend { font-weight:750; margin-bottom:7px; }
.post-type label { display:block; position:relative; }
.post-type input { position:absolute; opacity:0; width:1px; height:1px; }
.post-type label > span { display:grid; gap:3px; height:100%; padding:12px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.post-type label > span small { color:var(--weak); font-weight:400; }
.post-type label:has(input:checked) > span { border-color:#ef6f2e; background:#fff4ec; box-shadow:0 0 0 2px #ef6f2e22; }
.post-type label:has(input:focus-visible) > span { outline:3px solid #478566; outline-offset:2px; }
.composer-actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.offer-maker,.request-author { display:flex; align-items:center; gap:10px; }
.thread-author { display:flex; align-items:center; gap:9px; margin-bottom:14px; }
.thread-author p { margin:0; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.hot-panel { position:relative; overflow:hidden; min-height:285px; background:linear-gradient(160deg,#fff 0%,#fffaf5 100%); }
.hot-panel::after { position:absolute; right:0; bottom:0; left:0; height:4px; content:""; background:linear-gradient(90deg,#ff5b2e,#ff9b52); transform:scaleX(0); transform-origin:left; }
.hot-panel.progress-reset::after { animation:hot-progress 4.2s linear infinite; }
.hot-panel.is-paused::after { animation-play-state:paused; }
.community-kicker { display:block; margin-bottom:4px; color:#b85025; font-size:10px; font-weight:850; letter-spacing:.12em; }
.hot-panel .panel-top { border-bottom:1px solid var(--line); padding-bottom:12px; }
.hot-panel .panel-top h2 { margin:0; font-size:24px; letter-spacing:-.04em; }
#hot-conversation-stage { min-height:153px; }
#hot-conversation-stage.is-changing { animation:conversation-in .62s cubic-bezier(.16,.84,.24,1); }
.hot-conversation { display:grid; gap:9px; padding:16px 2px 10px; color:inherit; text-decoration:none; }
.hot-conversation > strong { font-size:18px; line-height:1.15; letter-spacing:-.025em; }
.hot-conversation p { display:-webkit-box; overflow:hidden; margin:0; color:var(--weak); font-size:13px; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.hot-meta,.hot-footer,.hot-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hot-meta > span:last-child,.hot-footer { color:var(--weak); font-size:11px; }
.hot-footer span:last-child { color:#b85025; font-weight:750; }
.hot-controls { border-top:1px solid var(--line); padding-top:10px; font-size:11px; }
.hot-controls > div { display:flex; gap:4px; }
.hot-controls button { min-width:30px; padding:4px 8px; }
.hot-controls a { color:var(--accent); font-weight:750; }

.thread-shell { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:18px 28px; max-width:1040px; margin:0 auto; }
.thread-back { grid-column:1/-1; width:fit-content; color:var(--weak); font-weight:700; text-decoration:none; }
.thread-hero { padding:clamp(24px,4vw,46px); border:1px solid var(--line); border-radius:24px; background:radial-gradient(circle at 90% 5%,#ffe6d5 0,transparent 28%),#fff; box-shadow:0 20px 60px rgba(55,39,25,.07); }
.thread-kicker { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.open-badge,.conversation-state { display:inline-flex; align-items:center; gap:7px; color:var(--weak); font-size:12px; font-weight:700; }
.open-badge i,.conversation-state i { width:8px; height:8px; border-radius:50%; background:#2aae66; box-shadow:0 0 0 5px #2aae6618; }
.thread-hero h1 { max-width:15ch; margin:0 0 18px; font-size:clamp(34px,5vw,60px); line-height:.98; letter-spacing:-.065em; }
.thread-question { max-width:62ch; color:#354b43; font-size:18px; line-height:1.65; }
.thread-author-line { display:flex; align-items:center; gap:11px; margin:24px 0 20px; }
.thread-author-line > div { display:grid; }
.thread-author-line span { color:var(--weak); font-size:12px; }
.editorial-avatar { display:grid; width:44px; height:44px; place-items:center; border-radius:50%; background:#152c25; color:#fff!important; font-weight:900; }
.thread-actions { display:flex; gap:8px; flex-wrap:wrap; padding-top:18px; border-top:1px solid var(--line); }
.thread-actions .selected-action { border-color:#ef6f2e; background:#fff1e8; color:#9a431f; }
.thread-context { align-self:start; position:sticky; top:18px; display:grid; gap:7px; padding:24px; border-radius:20px; background:#152c25; color:#fff; }
.thread-context .eyebrow { color:#9fe1bd; }
.thread-context > strong { margin-top:9px; font-size:30px; line-height:1; }
.thread-context > span:not(.eyebrow) { color:#bad0c5; }
.thread-context p { color:#d9e6df; font-size:14px; }
.thread-context .button { width:100%; margin-top:8px; background:#ff7140; text-align:center; }
.pulse-rule { height:1px; margin:10px 0; background:#ffffff22; }
.thread-main { grid-column:1/2; display:grid; gap:18px; max-width:none; margin:0; padding:0; }
.reply-composer-card { display:grid; gap:18px; padding:26px; border:1px solid #efcab8; border-radius:20px; background:#fff6f0; }
.reply-composer-card h2 { margin:4px 0; font-size:26px; letter-spacing:-.035em; }
.reply-composer-card p { color:var(--weak); }
.reply-composer-card textarea { min-height:118px; border-color:#d9b39f; background:#fff; font-size:16px; }
.reply-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.prompt-chips { display:flex; gap:6px; flex-wrap:wrap; }
.prompt-chips button { padding:6px 9px; font-size:11px; }
.conversation-feed { padding:26px; border:1px solid var(--line); border-radius:20px; background:#fff; }
.conversation-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.conversation-heading h2 { margin:4px 0 0; font-size:27px; }
.reply-card { padding:18px 0; border-top:1px solid var(--line); }
.reply-copy { min-width:0; flex:1; }
.reply-copy > div { display:flex; justify-content:space-between; gap:12px; }
.reply-copy p { margin:9px 0 0; font-size:16px; line-height:1.65; }
.conversation-empty { padding:28px; border:1px dashed #b7c8ba; border-radius:14px; background:#f7faf5; text-align:center; }
.conversation-empty strong { font-size:20px; }
.conversation-empty p { margin:5px 0 0; color:var(--weak); }
.report-link { color:var(--weak)!important; font-size:12px; }

.home-quote-banner { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:20px 0; padding:22px 24px; border-radius:18px; background:#152c25; color:#fff; box-shadow:0 14px 34px rgba(21,44,37,.14); }
.home-quote-banner .eyebrow { color:#9fe1bd; }
.home-quote-banner h2 { margin:3px 0; font-size:25px; letter-spacing:-.04em; }
.home-quote-banner p { margin:0; color:#d6e4dd; font-size:14px; }
.home-quote-banner .button { flex:0 0 auto; background:#ff5b2e; }
.custom-build-page { max-width:1080px; margin:0 auto; }
.custom-build-hero { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(260px,.7fr); gap:28px; align-items:stretch; }
.custom-build-hero > div:first-child { padding:clamp(28px,5vw,58px); border:1px solid var(--line); border-radius:24px; background:radial-gradient(circle at 95% 10%,#ffe1ce 0,transparent 30%),#fff; }
.custom-build-hero h1 { max-width:14ch; margin:10px 0 18px; font-size:clamp(42px,6vw,72px); line-height:.96; }
.custom-build-hero .lede { max-width:58ch; }
.custom-build-primary { background:#ff5b2e; }
.quote-process { padding:28px; border-radius:24px; background:#152c25; color:#fff; }
.quote-process > span { color:#9fe1bd; font-size:11px; font-weight:850; letter-spacing:.13em; }
.quote-process ol { display:grid; gap:0; margin:25px 0 0; padding:0; list-style:none; counter-reset:step; }
.quote-process li { display:grid; gap:3px; padding:18px 0 18px 44px; border-top:1px solid #ffffff22; counter-increment:step; }
.quote-process li::before { position:absolute; margin-left:-44px; content:counter(step); display:grid; width:28px; height:28px; place-items:center; border-radius:50%; background:#ff5b2e; font-weight:900; }
.quote-process small { color:#bcd0c6; }
.custom-start-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:20px 0; }
.custom-start-grid article { padding:24px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.custom-start-grid h2 { margin-top:18px; }
.custom-start-grid p { min-height:72px; color:var(--weak); }
.custom-start-grid a,.custom-start-grid .text-link { color:#b85025; font-weight:800; }
.custom-start-grid .text-link { width:auto; padding:0; border:0; background:transparent; box-shadow:none; }
.start-icon { display:grid; width:46px; height:46px; place-items:center; border-radius:13px; background:#fff0e8; color:#b85025; font-weight:900; }
.custom-build-note { display:flex; justify-content:space-between; gap:24px; padding:20px 24px; border:1px solid #e8c8b7; border-radius:16px; background:#fff5ee; }
.custom-build-note span { color:var(--weak); }
.custom-request-card { margin-top:20px; padding:clamp(22px,4vw,44px); border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:0 18px 52px rgba(21,44,37,.08); }
.custom-request-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:26px; }
.custom-request-heading h2 { margin:5px 0; font-size:clamp(30px,4vw,46px); letter-spacing:-.045em; }
.custom-request-heading p { margin:0; color:var(--weak); }
.draft-badge { flex:0 0 auto; padding:8px 11px; border-radius:999px; background:#edf5e8; color:#234e39; font-size:13px; font-weight:800; }
.custom-request-card form { display:grid; gap:16px; }
.quote-marketplace { margin:20px 0; padding:clamp(22px,4vw,36px); border:1px solid #d5e0d5; border-radius:24px; background:#f0f5ef; }
.quote-market-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.quote-market-heading h2 { margin:5px 0; font-size:clamp(30px,4vw,44px); letter-spacing:-.045em; }
.quote-market-heading p { max-width:62ch; margin:0; color:var(--weak); }
.quote-market-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.quote-market-card { display:flex; min-width:0; flex-direction:column; gap:12px; padding:20px; border:1px solid var(--line); border-radius:17px; background:#fff; box-shadow:0 10px 28px rgba(21,44,37,.06); }
.quote-market-card h3 { margin:0; font-size:21px; line-height:1.14; }
.quote-market-card > p { min-height:42px; margin:0; color:var(--weak); }
.quote-market-card .button { margin-top:auto; text-align:center; }
.quote-market-top,.quote-market-stats { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.live-quote { display:flex; align-items:center; gap:7px; color:#24643e; font-size:12px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.live-quote i { width:8px; height:8px; border-radius:50%; background:#28a85e; box-shadow:0 0 0 5px #28a85e18; }
.quote-market-stats { padding:12px 0; border-top:1px solid var(--line); }
.quote-market-stats span { display:grid; gap:2px; color:var(--weak); font-size:12px; }
.quote-market-stats strong { color:var(--ink); font-size:16px; }
.quote-market-empty { grid-column:1/-1; padding:28px; border:1px dashed #aabdab; border-radius:16px; background:#fff; text-align:center; }
.quote-market-empty strong { font-size:21px; }
.quote-market-empty p { margin:7px auto 16px; color:var(--weak); }
.quote-visibility { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; padding:0; border:0; }
.quote-visibility legend { grid-column:1/-1; margin-bottom:4px; font-weight:800; }
.quote-visibility label { display:flex; align-items:flex-start; gap:10px; padding:14px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.quote-visibility input { width:auto; margin-top:4px; }
.quote-visibility span { display:grid; gap:3px; }
.quote-visibility small { color:var(--weak); line-height:1.4; }
.custom-estimate { display:grid; gap:3px; padding:17px 19px; border-radius:14px; background:#152c25; color:#fff; }
.custom-estimate span { color:#9fe1bd; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.custom-estimate strong { font-size:23px; }
.custom-estimate small { color:#cfe0d8; }
.custom-privacy { padding:17px 19px; border:1px solid #e8c8b7; border-radius:14px; background:#fff8f3; }
.custom-privacy p { margin:5px 0 0; color:var(--weak); line-height:1.55; }

@keyframes conversation-in { from { opacity:0; filter:blur(3px); transform:translateX(42px); } to { opacity:1; filter:none; transform:none; } }
@keyframes hot-progress { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@media (prefers-reduced-motion:reduce) { #hot-conversation-stage.is-changing,.hot-panel.progress-reset::after { animation:none; } }
.request-author { margin-bottom:10px; }
.request-author p { margin:0; }
.bubble { display:flex; align-items:flex-start; gap:8px; }

@media (max-width:480px) {
  .avatar-picker { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .avatar-option { padding:5px 1px; }
  .avatar.avatar-art { width:36px; height:36px; }
  .post-type { grid-template-columns:1fr; }
  .profile-settings-head { align-items:flex-start; }
  .community-compact .panel-top { align-items:flex-start; }
}

@media (max-width:760px) {
  .thread-shell { grid-template-columns:1fr; }
  .thread-context,.thread-main { grid-column:1; }
  .thread-context { position:static; }
  .thread-hero { padding:24px 20px; }
  .thread-hero h1 { font-size:38px; }
  .reply-actions,.conversation-heading { align-items:stretch; flex-direction:column; }
  .reply-actions > button { width:100%; }
  .reply-copy > div { display:grid; gap:2px; }
  .home-quote-banner,.custom-build-note { align-items:flex-start; flex-direction:column; }
  .home-quote-banner .button { width:100%; text-align:center; }
  .custom-build-hero,.custom-start-grid { grid-template-columns:1fr; }
  .quote-market-grid { grid-template-columns:1fr; }
  .quote-market-heading,.custom-request-heading { align-items:flex-start; flex-direction:column; }
  .quote-visibility { grid-template-columns:1fr; }
  .custom-start-grid p { min-height:0; }
}

/* Get a Quote: marketplace workspace with a compact sticky composer. */
.custom-build-page { max-width:1320px; display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,390px); gap:18px; align-items:start; }
.custom-build-page .quote-marketplace { grid-column:1; margin:0; min-height:620px; }
.custom-build-page .quote-market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.custom-build-page .custom-request-card { grid-column:2; position:sticky; top:88px; max-height:calc(100vh - 108px); margin:0; padding:22px; overflow:auto; border-radius:20px; box-shadow:0 14px 40px rgba(21,44,37,.1); }
.custom-build-page .custom-request-heading { display:grid; gap:10px; margin-bottom:18px; }
.custom-build-page .custom-request-heading h2 { margin:4px 0; font-size:32px; }
.custom-build-page .draft-badge { width:max-content; }
.custom-build-page .custom-request-card form { gap:12px; }
.custom-build-page .custom-request-card label { gap:5px; }
.custom-build-page .custom-request-card input,.custom-build-page .custom-request-card select,.custom-build-page .custom-request-card textarea { padding:10px 11px; }
.custom-build-page .custom-request-card textarea { min-height:92px; resize:vertical; }
.custom-build-page .custom-request-card .fields { gap:8px; }
.quote-more { border:1px solid var(--line); border-radius:12px; background:#fafbf9; }
.quote-more summary { padding:12px; cursor:pointer; color:#315548; font-weight:800; }
.quote-more-fields { display:grid; grid-template-columns:1fr 1fr; gap:9px; padding:0 12px 12px; }
.custom-build-page .quote-visibility { gap:7px; }
.custom-build-page .quote-visibility label { padding:10px; }
.custom-build-page .quote-visibility small { font-size:11px; }
.custom-build-page .custom-estimate,.custom-build-page .custom-privacy { padding:13px 14px; }
.custom-build-page .custom-estimate strong { font-size:18px; }
.custom-build-page .custom-privacy p { font-size:13px; }
.custom-build-page .composer-actions { display:grid; grid-template-columns:1fr auto; }

.quote-intro-backdrop { position:fixed; inset:0; z-index:90; background:rgba(10,25,21,.72); backdrop-filter:blur(7px); animation:quote-backdrop-in .2s ease-out; }
.custom-build-page .custom-build-hero { position:fixed; z-index:91; top:50%; left:50%; width:min(900px,calc(100vw - 32px)); max-height:calc(100vh - 32px); margin:0; gap:0; overflow:auto; border:1px solid #d7e0d8; border-radius:26px; background:#fff; box-shadow:0 32px 100px rgba(4,18,14,.42); transform:translate(-50%,-50%); animation:quote-intro-in .28s ease-out; }
.custom-build-page .custom-build-hero > div:first-child { padding:clamp(28px,5vw,56px); border:0; border-radius:25px 0 0 25px; background:radial-gradient(circle at 95% 10%,#ffe1ce 0,transparent 32%),#fff; }
.custom-build-page .custom-build-hero h1 { font-size:clamp(44px,6vw,70px); }
.custom-build-page .custom-build-hero .actions { gap:12px; margin-top:24px; }
.custom-build-page .custom-build-hero .actions button { min-height:44px; padding:10px 16px; }
.custom-build-page .custom-build-hero .quote-process { border-radius:0 25px 25px 0; }
.quote-intro-close { position:absolute; z-index:2; top:14px; right:14px; display:grid; width:42px; height:42px; padding:0; place-items:center; border:1px solid #ffffff33; border-radius:50%; background:#152c25; color:#fff; font-size:28px; line-height:1; }
@keyframes quote-backdrop-in { from { opacity:0; } }
@keyframes quote-intro-in { from { opacity:0; transform:translate(-50%,-47%) scale(.98); } }

@media (max-width:900px) {
  .custom-build-page { grid-template-columns:1fr; }
  .custom-build-page .quote-marketplace,.custom-build-page .custom-request-card { grid-column:1; }
  .custom-build-page .custom-request-card { position:static; max-height:none; overflow:visible; }
}

@media (max-width:620px) {
  .custom-build-page .quote-market-grid,.quote-more-fields { grid-template-columns:1fr; }
  .custom-build-page .quote-marketplace { padding:18px; }
  .custom-build-page .custom-build-hero { grid-template-columns:1fr; }
  .custom-build-page .custom-build-hero > div:first-child { border-radius:25px; }
  .custom-build-page .custom-build-hero .quote-process { display:none; }
  .custom-build-page .custom-build-hero h1 { font-size:42px; }
}

/* Homepage-inspired quote marketplace: feed first, one clear action on the right. */
.custom-build-page .quote-marketplace { padding:4px 0 0; border:0; background:transparent; }
.custom-build-page .quote-market-heading { align-items:center; margin-bottom:18px; }
.custom-build-page .quote-market-heading h2 { max-width:15ch; font-size:clamp(38px,5vw,62px); line-height:.98; }
.custom-build-page .quote-market-heading p { max-width:58ch; font-size:16px; }
.marketplace-primary { flex:0 0 auto; min-height:44px; padding:10px 16px; background:#ff5b2e; }
.quote-filters { display:flex; gap:8px; margin:18px 0 10px; overflow-x:auto; scrollbar-width:none; }
.quote-filters::-webkit-scrollbar { display:none; }
.quote-filters button { flex:0 0 auto; border-color:var(--line); background:#fff; color:var(--ink); }
.quote-filters button.selected { border-color:#152c25; background:#152c25; color:#fff; }
.sample-notice { margin:0 0 15px; padding:10px 12px; border-left:3px solid #e7a57f; background:#fff7f1; color:#77513d; font-size:13px; }
.custom-build-page .quote-market-grid { gap:14px; }
.custom-build-page .quote-market-card { position:relative; min-height:310px; padding:22px; transition:transform .18s ease,box-shadow .18s ease; }
.custom-build-page .quote-market-card:hover { transform:translateY(-2px); box-shadow:0 18px 38px rgba(21,44,37,.1); }
.quote-status { display:flex; align-items:center; gap:7px; color:#53655c; font-size:12px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.quote-status i { width:8px; height:8px; border-radius:50%; background:#87958e; }
.status-open .quote-status { color:#1f6a3c; }
.status-open .quote-status i { background:#27a35b; box-shadow:0 0 0 5px #27a35b18; }
.status-completed .quote-status { color:#266394; }
.status-completed .quote-status i { background:#428bc2; }
.status-expired .quote-status i { background:#d19c35; }
.status-cancelled .quote-status i { background:#c66c60; }
.quote-people { display:flex; min-height:34px; align-items:center; gap:10px; color:var(--weak); font-size:13px; }
.quote-avatar-stack { display:flex; padding-left:7px; }
.quote-avatar-stack span { display:grid; width:30px; height:30px; margin-left:-7px; place-items:center; border:2px solid #fff; border-radius:50%; background:#dff0e6; color:#234e39; font-size:10px; font-weight:850; }
.quote-avatar-stack span:nth-child(2) { background:#ffe1ce; color:#7d4328; }
.quote-avatar-stack span:nth-child(3) { background:#e4e0ff; color:#4b4382; }
.sample-activity { margin-top:2px; color:#8b6b59; font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.demo-quote-action { margin-top:auto; }

.custom-build-page .custom-request-card { min-height:390px; padding:0; overflow:hidden; border:0; background:#152c25; color:#fff; }
.custom-request-card:not(.is-open) .custom-request-heading,.custom-request-card:not(.is-open) #custom-request-form,.custom-request-card:not(.is-open) .quote-form-close { display:none; }
.quote-form-launch { display:flex; min-height:390px; flex-direction:column; align-items:flex-start; padding:26px; background:radial-gradient(circle at 90% 8%,#315f50 0,transparent 30%),#152c25; }
.quote-form-launch .eyebrow { color:#9fe1bd; }
.quote-form-launch h2 { margin:18px 0 10px; font-size:34px; line-height:1; letter-spacing:-.045em; }
.quote-form-launch p { color:#d6e4dd; }
.quote-form-launch > button { width:100%; margin-top:auto; padding:12px 16px; background:#ff6b39; font-size:16px; }
.quote-form-launch > small { margin:11px auto 0; color:#a9c2b6; text-align:center; }
.quote-launch-art { position:relative; display:grid; width:86px; height:86px; margin-top:14px; place-items:center; border:1px solid #ffffff28; border-radius:24px; background:#ffffff10; }
.quote-launch-art span { z-index:2; color:#ff8b61; font-size:40px; font-weight:300; }
.quote-launch-art i { position:absolute; width:42px; height:7px; border-radius:99px; background:#8bd3ac; transform:translateY(22px); }
.quote-launch-art i:nth-of-type(2) { width:31px; transform:translateY(11px); opacity:.7; }
.quote-launch-art i:nth-of-type(3) { width:20px; transform:none; opacity:.4; }

.quote-form-backdrop { position:fixed; inset:0; z-index:100; background:rgba(10,25,21,.72); backdrop-filter:blur(7px); }
.custom-build-page .custom-request-card.is-open { position:fixed; z-index:101; top:50%; left:50%; display:block; width:min(720px,calc(100vw - 30px)); max-height:calc(100vh - 30px); min-height:0; padding:28px; overflow:auto; border:1px solid var(--line); border-radius:24px; background:#fff; color:var(--ink); box-shadow:0 32px 100px rgba(4,18,14,.45); transform:translate(-50%,-50%); }
.custom-request-card.is-open .quote-form-launch { display:none; }
.custom-request-card.is-open .custom-request-heading { display:flex; padding-right:38px; }
.custom-request-card.is-open #custom-request-form { display:grid; }
.quote-form-close { position:absolute; z-index:2; top:16px; right:16px; display:grid; width:40px; height:40px; padding:0; place-items:center; border-radius:50%; background:#152c25; color:#fff; font-size:26px; }

@media (max-width:900px) {
  .custom-build-page .custom-request-card { min-height:260px; }
  .quote-form-launch { min-height:260px; }
}

@media (max-width:620px) {
  .custom-build-page .quote-market-heading { align-items:flex-start; }
  .custom-build-page .quote-market-heading h2 { font-size:42px; }
  .marketplace-primary { width:100%; }
  .custom-build-page .custom-request-card.is-open { width:100vw; max-height:100vh; min-height:100vh; border:0; border-radius:0; }
}

/* Four-card activity strip plus a social bidding thread. */
main:has(.custom-build-page) { max-width:1360px; }
.custom-build-page .quote-marketplace { grid-row:1; }
.custom-build-page .custom-request-card { grid-row:1; }
.custom-build-page .quote-market-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.custom-build-page .quote-market-card { min-height:232px; padding:15px; gap:8px; }
.custom-build-page .quote-market-card h3 { min-height:38px; font-size:16px; line-height:1.16; }
.custom-build-page .quote-market-card > p { min-height:32px; font-size:12px; }
.custom-build-page .quote-market-card .quote-market-top { align-items:flex-start; }
.custom-build-page .quote-market-card .quote-market-top .micro { font-size:10px; text-align:right; }
.custom-build-page .quote-market-card .quote-people { min-height:28px; font-size:11px; }
.custom-build-page .quote-market-card .quote-avatar-stack span { width:25px; height:25px; font-size:8px; }
.custom-build-page .quote-market-card .quote-market-stats { padding:8px 0; }
.custom-build-page .quote-market-card .quote-market-stats span { font-size:10px; }
.custom-build-page .quote-market-card .quote-market-stats span:last-child { display:none; }
.custom-build-page .quote-market-card .quote-market-stats strong { font-size:14px; }
.custom-build-page .quote-market-card .button,.custom-build-page .quote-market-card > button { width:100%; margin-top:auto; padding:7px 8px; font-size:12px; text-align:center; }
.custom-build-page .sample-activity { font-size:9px; }

.quote-live-thread { margin-top:18px; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 12px 36px rgba(21,44,37,.07); }
.thread-preview-label { padding:10px 18px; border-bottom:1px solid #f0d6c6; background:#fff7f1; color:#8b5a3f; font-size:11px; font-weight:850; letter-spacing:.08em; }
.quote-thread-head { display:flex; align-items:center; gap:11px; padding:18px 20px 10px; }
.quote-thread-head > div { display:grid; gap:2px; }
.quote-thread-head > div span { color:var(--weak); font-size:12px; }
.thread-person { display:grid; width:40px; height:40px; flex:0 0 auto; place-items:center; border-radius:50%; font-size:12px; font-weight:850; }
.tone-orange { background:#ffe1ce; color:#804626; }
.tone-green { background:#dff0e6; color:#245b3a; }
.tone-purple { background:#e7e2ff; color:#504686; }
.tone-blue { background:#dceeff; color:#2d5d86; }
.thread-open-state { display:flex; align-items:center; gap:7px; margin-left:auto; padding:6px 9px; border-radius:99px; background:#edf7ef; color:#22643b; font-size:12px; font-weight:800; }
.thread-open-state i { width:7px; height:7px; border-radius:50%; background:#29a35b; }
.quote-thread-request { padding:5px 20px 16px; }
.quote-thread-request h3 { margin:0 0 8px; font-size:25px; letter-spacing:-.035em; }
.quote-thread-request p { color:#41564c; font-size:15px; }
.thread-tags { display:flex; gap:7px; flex-wrap:wrap; }
.thread-tags span { padding:5px 8px; border-radius:99px; background:#f0f4f0; color:#3f574c; font-size:11px; font-weight:700; }
.thread-social-proof { display:flex; align-items:center; gap:8px; padding:12px 20px; border-block:1px solid var(--line); color:var(--weak); font-size:12px; }
.bid-conversation { padding:0 20px; }
.bid-conversation > article { display:flex; gap:11px; padding:17px 0; border-bottom:1px solid var(--line); }
.bid-conversation > article > div { min-width:0; flex:1; }
.bid-conversation p { margin:7px 0; font-size:14px; }
.bid-author { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bid-author span { padding:4px 7px; border-radius:7px; background:#edf5e8; color:#285b3f; font-size:11px; font-weight:800; }
.bid-meta { color:var(--weak); font-size:11px; }
.bid-reply { display:flex; gap:8px; margin-top:12px; padding:10px; border-radius:12px; background:#f6f8f5; }
.bid-reply .thread-person { width:30px; height:30px; font-size:9px; }
.bid-reply p { margin:3px 0; }
.thread-composer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 20px; background:#f7faf7; }
.thread-composer > div { display:grid; gap:2px; }
.thread-composer span { color:var(--weak); font-size:12px; }

@media (max-width:1100px) {
  .custom-build-page .quote-market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:900px) {
  .custom-build-page .quote-marketplace { grid-row:1; }
  .custom-build-page .custom-request-card { grid-row:2; }
}

@media (max-width:620px) {
  .custom-build-page .quote-market-grid { grid-template-columns:1fr; }
  .custom-build-page .quote-market-card { min-height:210px; }
  .bid-author,.thread-composer { align-items:flex-start; flex-direction:column; }
  .thread-open-state { margin-left:0; }
  .quote-thread-head { align-items:flex-start; flex-wrap:wrap; }
}

/* Compact, swipeable verified-bid snapshots. Detailed activity lives in the thread. */
.quote-strip-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 8px; }
.quote-strip-heading > strong { font-size:14px; }
.quote-strip-heading > div { display:flex; gap:6px; }
.quote-strip-heading button { display:grid; width:34px; height:34px; padding:0; place-items:center; font-size:22px; }
.custom-build-page .quote-market-grid { display:flex; gap:10px; overflow-x:auto; padding:2px 2px 10px; scroll-behavior:smooth; scroll-snap-type:x mandatory; scrollbar-width:none; }
.custom-build-page .quote-market-grid::-webkit-scrollbar { display:none; }
.custom-build-page .quote-market-card { flex:0 0 calc((100% - 30px)/4); min-height:174px; max-height:174px; padding:13px; scroll-snap-align:start; }
.custom-build-page .quote-market-card h3 { min-height:36px; margin:1px 0; font-size:15px; }
.custom-build-page .quote-market-card > p { display:none; }
.custom-build-page .quote-market-card .quote-people { min-height:25px; }
.custom-build-page .quote-market-card .quote-market-stats { margin-top:auto; }
.custom-build-page .quote-market-card > .button,.custom-build-page .quote-market-card > button { display:none; }
.custom-build-page .sample-activity { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

@media (max-width:900px) {
  .custom-build-page .quote-market-card { flex-basis:calc((100% - 10px)/2); }
}

@media (max-width:620px) {
  .custom-build-page .quote-market-card { flex-basis:82%; }
}

/* Discussions use the same post + activity + conversation hierarchy as bidding. */
.discussion-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.discussion-page-head h1 { max-width:13ch; margin:5px 0; font-size:clamp(42px,6vw,68px); line-height:.96; }
.discussion-page-head p { max-width:58ch; }
.discussion-feed-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:18px; align-items:start; }
.discussion-feed-layout > * { min-width:0; }
.social-discussion-feed { display:grid; width:100%; min-width:0; margin:0; padding:0; gap:16px; }
.social-discussion-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 10px 32px rgba(21,44,37,.06); }
.social-discussion-author { display:flex; align-items:center; gap:10px; padding:18px 20px 8px; }
.social-discussion-author > div { display:grid; min-width:0; gap:2px; }
.social-discussion-author > div span { color:var(--weak); font-size:12px; }
.social-discussion-author .category-label { margin-left:auto; }
.social-discussion-copy { min-width:0; padding:8px 20px 14px; overflow-wrap:anywhere; }
.social-discussion-copy h2 { margin:0 0 8px; font-size:26px; line-height:1.08; letter-spacing:-.035em; }
.social-discussion-copy h2 a { color:inherit; text-decoration:none; }
.social-discussion-copy p { margin:0; color:#40534a; font-size:15px; }
.discussion-participation { display:flex; align-items:center; gap:8px; padding:11px 20px; border-block:1px solid var(--line); color:var(--weak); font-size:12px; }
.discussion-participation em { margin-left:auto; color:#8b5a3f; font-size:10px; font-style:normal; font-weight:800; text-transform:uppercase; }
.social-discussion-actions { display:grid; grid-template-columns:auto auto 1fr; gap:7px; padding:10px 20px; border-bottom:1px solid var(--line); }
.social-discussion-actions .button { text-align:center; }
.discussion-preview-list { display:grid; gap:13px; padding:16px 20px 20px; background:#fafcf9; }
.discussion-preview-reply { display:flex; gap:10px; }
.discussion-preview-reply > div { min-width:0; flex:1; padding:10px 12px; border-radius:14px; background:#edf2ed; overflow-wrap:anywhere; }
.discussion-preview-reply strong { font-size:13px; }
.discussion-preview-reply p { margin:4px 0 0; font-size:14px; line-height:1.45; }
.discussion-reply-link { padding:0; border:0; background:transparent; color:#315548; font-size:11px; }
.discussion-first-reply { display:grid; gap:3px; padding:14px; border:1px dashed #b8c8ba; border-radius:13px; color:var(--ink); text-decoration:none; }
.discussion-first-reply span { color:var(--weak); font-size:13px; }
.discussion-feed-aside { position:sticky; top:88px; display:grid; min-width:0; gap:12px; }
.discussion-feed-aside section { display:grid; gap:8px; padding:20px; border:1px solid var(--line); border-radius:17px; background:#fff; }
.discussion-feed-aside section:first-child { background:#152c25; color:#fff; }
.discussion-feed-aside section:first-child .eyebrow { color:#9fe1bd; }
.discussion-feed-aside section:first-child p { color:#c9d9d1; }
.discussion-feed-aside .button { margin-top:7px; background:#ff6b39; text-align:center; }
.discussion-feed-aside section > strong { font-size:28px; }
.discussion-feed-aside section > span:not(.eyebrow) { color:var(--weak); }

@media (max-width:820px) {
  .discussion-feed-layout { grid-template-columns:1fr; }
  .social-discussion-feed { grid-row:1; }
  .discussion-feed-aside { position:static; grid-row:2; grid-template-columns:1fr 1fr; }
}

@media (max-width:620px) {
  .discussion-page-head { align-items:flex-start; flex-direction:column; }
  .discussion-page-head .button { width:100%; text-align:center; }
  .discussion-feed-aside { grid-template-columns:1fr; }
  .discussion-participation { align-items:flex-start; flex-wrap:wrap; }
  .discussion-participation em { width:100%; margin-left:0; }
  .social-discussion-actions { grid-template-columns:1fr 1fr; }
  .social-discussion-actions .button { grid-column:1/-1; }
}

/* Shared activity ranking controls */
.discussion-rank-wrap { margin:-5px 0 18px; }
.quote-rank-wrap { margin:2px 0 10px; }
.feed-rank-row { display:flex; align-items:center; min-width:0; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.feed-rank-row > span { flex:0 0 auto; color:#53645c; font-size:14px; font-weight:750; }
.feed-rank-tabs { display:flex; flex:0 0 auto; gap:4px; padding:3px; border-radius:11px; background:#edf2ed; }
.feed-rank-tabs button { min-height:34px; padding:6px 12px; border:0; border-radius:9px; background:transparent; color:#4b5b54; font-size:14px; }
.feed-rank-tabs button.selected { background:#152c25; color:#fff; box-shadow:0 3px 10px rgba(21,44,37,.18); }
.rank-explainer { min-width:0; margin-left:auto; color:var(--weak); font-size:13px; text-align:right; }
.quote-rank-wrap .feed-rank-row { background:#f7faf6; }
.quote-discovery-bar { display:flex; align-items:center; justify-content:space-between; min-width:0; gap:16px; margin:14px 0 12px; padding:10px 12px; border:1px solid var(--line); border-radius:15px; background:#f7faf6; }
.quote-discovery-copy { display:grid; flex:0 0 auto; gap:1px; }
.quote-discovery-copy strong { font-size:14px; }
.quote-discovery-copy span { color:var(--weak); font-size:12px; }
.quote-discovery-controls { display:flex; align-items:center; min-width:0; gap:8px; overflow-x:auto; scrollbar-width:none; }
.quote-discovery-controls::-webkit-scrollbar { display:none; }
.quote-filter-divider { width:1px; height:27px; flex:0 0 1px; background:#ccd6cd; }
.quote-status-tabs { margin:0; padding:0; overflow:visible; }
.quote-status-tabs button { min-height:34px; padding:6px 11px; font-size:13px; }

/* Image-first shop marketplace */
main:has(.shop-shell) { max-width:1320px; }
.shop-shell { display:grid; gap:20px; }
.shop-hero { display:flex; align-items:center; justify-content:space-between; gap:28px; padding:20px clamp(20px,3vw,34px); overflow:hidden; border:1px solid #d5e0d5; border-radius:20px; background:radial-gradient(circle at 85% 15%,#ffd8c4 0,transparent 24%),linear-gradient(135deg,#eef5ee,#fff 60%); }
.shop-hero h1 { max-width:none; margin:4px 0 6px; font-size:clamp(31px,3.8vw,46px); line-height:1; letter-spacing:-.05em; }
.shop-hero p { max-width:62ch; margin:0; color:#4a5d54; font-size:15px; }
.shop-hero .button { flex:0 0 auto; }
.shop-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px 14px; border:1px solid var(--line); border-radius:17px; background:#fff; box-shadow:0 8px 24px rgba(21,44,37,.05); }
.shop-category-chips { display:flex; min-width:0; gap:7px; overflow-x:auto; scrollbar-width:none; }
.shop-category-chips::-webkit-scrollbar { display:none; }
.shop-category-chips button { flex:0 0 auto; min-height:40px; padding:8px 13px; border-color:#d8dfd8; background:#f8faf7; color:#34483f; font-size:14px; }
.shop-category-chips button.selected { border-color:#152c25; background:#152c25; color:#fff; }
.shop-toolbar label { display:flex; flex:0 0 auto; align-items:center; gap:8px; color:var(--weak); font-size:14px; font-weight:700; }
.shop-toolbar select { width:auto; min-width:170px; padding:9px 34px 9px 11px; background-color:#fff; }
.shop-results-line { display:flex; justify-content:space-between; gap:16px; color:var(--weak); font-size:14px; }
.shop-results-line strong { color:var(--ink); }
.shop-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.shop-product-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 12px 34px rgba(21,44,37,.07); transition:transform .18s ease,box-shadow .18s ease; }
.shop-product-card:hover { transform:translateY(-3px); box-shadow:0 20px 44px rgba(21,44,37,.12); }
.shop-product-media { position:relative; display:block; aspect-ratio:4/3; overflow:hidden; background:#eef1ec; }
.shop-product-media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.shop-product-card:hover .shop-product-media img { transform:scale(1.035); }
.shop-product-media > span { position:absolute; left:13px; bottom:13px; padding:6px 9px; border-radius:999px; background:rgba(21,44,37,.9); color:#fff; font-size:12px; font-weight:800; }
.shop-product-body { display:grid; gap:11px; padding:17px; }
.shop-product-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#7a4b35; font-size:13px; font-weight:800; }
.shop-save { min-height:34px; padding:5px 9px; font-size:13px; }
.shop-product-body h2 { min-height:52px; margin:0; font-size:23px; line-height:1.12; letter-spacing:-.035em; }
.shop-product-body h2 a { color:inherit; text-decoration:none; }
.shop-product-body > p { margin:0; color:var(--weak); font-size:14px; }
.shop-price { display:flex; align-items:baseline; gap:8px; padding-top:5px; border-top:1px solid var(--line); }
.shop-price strong { font-size:24px; }
.shop-price span { color:var(--weak); font-size:12px; }
.shop-card-actions { display:grid; grid-template-columns:1fr 1.15fr; gap:8px; }
.shop-card-actions .button { padding-inline:10px; text-align:center; }
.shop-empty { grid-column:1/-1; padding:40px; border:1px dashed #b8c7b9; border-radius:18px; text-align:center; }

@media (max-width:900px) {
  .feed-rank-row { align-items:flex-start; flex-wrap:wrap; }
  .rank-explainer { width:100%; margin-left:0; text-align:left; }
  .quote-discovery-bar { align-items:flex-start; flex-direction:column; }
  .quote-discovery-controls { width:100%; }
  .shop-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:620px) {
  .feed-rank-row > span { width:100%; }
  .feed-rank-tabs { width:100%; overflow-x:auto; }
  .feed-rank-tabs button { flex:1 0 auto; }
  .shop-hero,.shop-toolbar,.shop-results-line { align-items:flex-start; flex-direction:column; }
  .shop-hero .button { width:100%; text-align:center; }
  .shop-category-chips { width:100%; }
  .shop-toolbar label,.shop-toolbar select { width:100%; }
  .shop-product-grid { grid-template-columns:1fr; }
  .shop-product-body h2 { min-height:0; }
}
/* Global route/request feedback for database and free-host latency. */
.app-loader {
  position: fixed;
  z-index: 10000;
  top: 76px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(20, 50, 42, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 35px rgba(20, 50, 42, .18);
  color: #14322a;
  font-size: 13px;
  font-weight: 800;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
.app-loader[hidden] { display: none; }
.app-loader-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 93, 45, .25);
  border-top-color: #ff5d2d;
  border-radius: 50%;
  animation: app-loader-spin .7s linear infinite;
}
.is-loading body { cursor: progress; }
@keyframes app-loader-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .app-loader { top: 66px; } }
@media (prefers-reduced-motion: reduce) {
  .app-loader-spinner { animation-duration: 1.5s; }
}

.google-auth-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  min-height:48px;
  margin:18px 0;
  border:1px solid #d6d9dc;
  border-radius:12px;
  background:#fff;
  color:#202124;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}
.google-auth-button:hover { border-color:#aeb4b8; background:#fafafa; }
.google-auth-button span {
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  color:#4285f4;
  font:900 18px/1 Arial,sans-serif;
}
.auth-divider { display:flex; align-items:center; gap:12px; color:#7b817f; font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; height:1px; background:#e3e6e4; }
.auth-divider span { white-space:nowrap; }

.search-results-head { max-width:1180px; margin:28px auto 20px; }
.search-results-head h1 { margin-bottom:6px; }
.search-results-head > p { color:#66716d; }
.recent-searches { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:16px; }
.recent-searches span { color:#66716d; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.recent-searches a,.recent-searches button { padding:7px 11px; border:1px solid #d7ded9; border-radius:999px; background:#fff; color:#29463d; font:700 12px/1 inherit; text-decoration:none; cursor:pointer; }
.recent-searches button { color:#8a3b27; }


.maker-application-page { max-width:820px; }
.maker-application-page form { display:grid; gap:18px; margin-top:24px; }
.maker-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.maker-material-picker { margin:0; padding:16px; border:1px solid var(--line); border-radius:14px; }
.maker-material-picker legend { padding:0 6px; font-weight:750; }
.maker-material-picker > p { margin:0 0 12px; color:var(--weak); font-size:.85rem; }
.maker-material-picker > div { display:flex; flex-wrap:wrap; gap:9px; }
.maker-material-picker label { position:relative; display:block; }
.maker-material-picker input { position:absolute; opacity:0; pointer-events:none; }
.maker-material-picker span { display:block; padding:9px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; cursor:pointer; font-weight:700; }
.maker-material-picker input:checked + span { border-color:#1c654c; background:#e7f4ec; color:#164c3b; box-shadow:inset 0 0 0 1px #1c654c; }
.maker-material-picker input:focus-visible + span { outline:3px solid #f65b1240; outline-offset:2px; }
@media(max-width:600px){.maker-form-grid{grid-template-columns:1fr}.maker-material-picker span{padding:8px 12px}}
