@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   Side by Side — Broker Network
   Product-page design language: light cards, section eyebrows,
   centred headings, stat band, pricing, FAQ.
   Headings: Plus Jakarta Sans. Body: Inter.
   Buttons reuse the site's .btn classes so CTAs stay consistent.
   Scoped to .sbs* only — loaded solely by side-by-side/ pages.
   ============================================================ */

.sbs {
  --sbs-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --sbs-body: "Inter", system-ui, sans-serif;
  --sbs-ink: #16334e;
  --sbs-muted: #5b6b7c;
  --sbs-line: #e4e9f0;
  --sbs-card: #ffffff;
  --sbs-wash: #f5f8fb;
  --sbs-accent: #a3271d;      /* matches the site's primary CTA */
  font-family: var(--sbs-body);
}
.sbs h1, .sbs h2, .sbs h3, .sbs h4 { font-family: var(--sbs-head); color: var(--sbs-ink); letter-spacing: -0.02em; }
.sbs p, .sbs li, .sbs label, .sbs input, .sbs select, .sbs textarea, .sbs button, .sbs a { font-family: var(--sbs-body); }

.sbs-wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.1rem; }
.sbs-narrow { max-width: 620px; margin: 0 auto; padding: 0 1.1rem; }

/* ---------- section furniture ---------- */
.sbs-sec { padding: 4rem 0; }
.sbs-sec.wash { background: var(--sbs-wash); }
.sbs-sec.tintbg { background: #fbf7ee; }
.sbs-head { text-align: center; max-width: 680px; margin: 0 auto 2.4rem; }
.sbs-head.left { text-align: left; margin-left: 0; }
.sbs-eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sbs-accent); background: #fdeeec; border: 1px solid #f6d9d5; padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 0.9rem; }
.sbs-h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); font-weight: 700; line-height: 1.2; margin: 0 0 0.6rem; }
.sbs-lede { color: var(--sbs-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* ---------- hero ---------- */
.sbs-hero { background: linear-gradient(165deg, #0f2438 0%, #16334e 58%, #1d4468 100%); color: #fff; padding: 4rem 0 4.4rem; position: relative; overflow: hidden; }
.sbs-hero::after { content: ""; position: absolute; right: -140px; top: -80px; width: 420px; height: 420px; border-radius: 50%; background: rgba(192,135,43,0.12); }
.sbs-hero .sbs-wrap { position: relative; z-index: 1; text-align: center; }
.sbs-hero .sbs-eyebrow { color: #f1e4c6; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.sbs-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; line-height: 1.14; color: #fff; margin: 0 auto 0.9rem; max-width: 20ch; }
.sbs-hero h1 span { color: #e8c583; }
.sbs-hero .sbs-lede { color: rgba(255,255,255,0.8); max-width: 60ch; margin: 0 auto; font-size: 1.03rem; }
.sbs-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.7rem; }
/* Secondary CTA on the dark hero. The site's .btn-outline:hover turns the
   background white, which made white text invisible — so own the hover here. */
.sbs-hero .btn-ghost-light,
.sbs-hero .btn-ghost-light:hover,
.sbs-hero .btn-ghost-light:focus {
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.45) !important;
  box-shadow: none !important;
}
.sbs-hero .btn-ghost-light { background: rgba(255,255,255,0.06) !important; }
.sbs-hero .btn-ghost-light:hover { background: rgba(255,255,255,0.18) !important; border-color: #fff !important; }

/* trust pills under hero */
.sbs-pills { display: grid; gap: 0.7rem; grid-template-columns: 1fr; margin-top: 2.2rem; }
@media (min-width: 720px) { .sbs-pills { grid-template-columns: repeat(3, 1fr); } }
.sbs-pill { display: flex; gap: 0.7rem; align-items: flex-start; text-align: left; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 0.9rem 1rem; }
.sbs-pill svg { width: 20px; height: 20px; color: #e8c583; flex: none; margin-top: 2px; }
.sbs-pill > div { min-width: 0; }   /* let the text wrap instead of overflowing */
.sbs-pill b { display: block; color: #fff; font-size: 0.92rem; font-weight: 600; font-family: var(--sbs-head); }
.sbs-pill span { color: rgba(255,255,255,0.66); font-size: 0.82rem; line-height: 1.45; }

/* ---------- stat band ---------- */
.sbs-stats { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--sbs-line); border: 1px solid var(--sbs-line); border-radius: 16px; overflow: hidden; }
@media (min-width: 760px) { .sbs-stats { grid-template-columns: repeat(4, 1fr); } }
.sbs-stat { background: var(--sbs-card); padding: 1.5rem 1.1rem; text-align: center; }
.sbs-stat b { display: block; font-family: var(--sbs-head); font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 700; color: var(--sbs-ink); line-height: 1.1; }
.sbs-stat span { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--sbs-muted); }

/* ---------- generic card grids ---------- */
.sbs-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sbs-grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .sbs-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sbs-grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .sbs-grid.six { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sbs-grid.six { grid-template-columns: repeat(3, 1fr); } }

.sbs-card { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 16px; padding: 1.5rem; }
.sbs-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.4rem; }
.sbs-card p { color: var(--sbs-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.sbs-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 0.9rem; background: #eef3f9; color: var(--sbs-ink); }
.sbs-ico svg { width: 20px; height: 20px; }
.sbs-ico.gold { background: #fbf1dc; color: #8a6119; }
.sbs-ico.red  { background: #fdeeec; color: var(--sbs-accent); }
.sbs-ico.green{ background: #e8f4ee; color: #157a52; }

/* two big feature cards */
.sbs-big { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 18px; padding: 1.8rem; }
.sbs-big h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.sbs-big ul { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.55rem; }
.sbs-big li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--sbs-muted); font-size: 0.9rem; line-height: 1.55; }
.sbs-big li svg { width: 16px; height: 16px; color: #157a52; flex: none; margin-top: 3px; }

/* ---------- locality chips ---------- */
.sbs-chips { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .sbs-chips { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .sbs-chips { grid-template-columns: repeat(4, 1fr); } }
.sbs-chip { display: flex; align-items: center; gap: 0.5rem; background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.88rem; color: var(--sbs-ink); font-weight: 500; }
.sbs-chip i { width: 7px; height: 7px; border-radius: 50%; background: #157a52; flex: none; }

/* ---------- steps ---------- */
.sbs-steps { display: grid; gap: 1.1rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 800px) { .sbs-steps { grid-template-columns: repeat(3, 1fr); } }
.sbs-step { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 16px; padding: 1.5rem; position: relative; }
.sbs-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--sbs-ink); color: #fff; font-family: var(--sbs-head); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; margin-bottom: 0.9rem; }
.sbs-step h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.35rem; }
.sbs-step p { color: var(--sbs-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ---------- pricing ---------- */
.sbs-price { display: grid; gap: 1.1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .sbs-price { grid-template-columns: repeat(3, 1fr); } }
.sbs-plan { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 18px; padding: 1.7rem; }
.sbs-plan.featured { border-color: var(--sbs-ink); box-shadow: 0 12px 32px rgba(22,51,78,0.12); position: relative; }
.sbs-plan-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--sbs-ink); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.28rem 0.8rem; border-radius: 999px; white-space: nowrap; }
.sbs-plan h3 { font-size: 1rem; font-weight: 600; color: var(--sbs-muted); margin-bottom: 0.5rem; }
.sbs-plan .amt { font-family: var(--sbs-head); font-size: 2.1rem; font-weight: 700; color: var(--sbs-ink); line-height: 1; }
.sbs-plan .per { color: var(--sbs-muted); font-size: 0.85rem; margin: 0.35rem 0 1.1rem; }
.sbs-plan ul { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: 0.5rem; }
.sbs-plan li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; color: var(--sbs-muted); line-height: 1.5; }
.sbs-plan li svg { width: 15px; height: 15px; color: #157a52; flex: none; margin-top: 3px; }

/* ---------- testimonials ---------- */
.sbs-quote { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 16px; padding: 1.5rem; }
.sbs-stars { color: #d9a441; font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 0.7rem; }
.sbs-quote p { color: var(--sbs-ink); font-size: 0.94rem; line-height: 1.65; margin: 0 0 1rem; }
.sbs-quote .by { display: flex; align-items: center; gap: 0.7rem; }
.sbs-quote .av { width: 36px; height: 36px; border-radius: 50%; background: #eef3f9; color: var(--sbs-ink); display: grid; place-items: center; font-family: var(--sbs-head); font-weight: 700; font-size: 0.85rem; }
.sbs-quote .by b { display: block; font-size: 0.88rem; color: var(--sbs-ink); font-family: var(--sbs-head); }
.sbs-quote .by span { font-size: 0.8rem; color: var(--sbs-muted); }

/* ---------- FAQ ---------- */
.sbs-faq { max-width: 780px; margin: 0 auto; }
.sbs-faq details { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 12px; margin-bottom: 0.6rem; }
.sbs-faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 500; color: var(--sbs-ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 0.95rem; }
.sbs-faq summary::-webkit-details-marker { display: none; }
.sbs-faq summary::after { content: "+"; font-size: 1.25rem; color: var(--sbs-muted); line-height: 1; flex: none; }
.sbs-faq details[open] summary { color: var(--sbs-accent); }
.sbs-faq details[open] summary::after { content: "\2212"; }
.sbs-faq .a { padding: 0 1.2rem 1.1rem; color: var(--sbs-muted); line-height: 1.7; font-size: 0.92rem; }

/* ---------- about split ---------- */
.sbs-about { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .sbs-about { grid-template-columns: 1.25fr 1fr; } }
.sbs-why { background: var(--sbs-ink); color: #fff; border-radius: 18px; padding: 1.7rem; }
.sbs-why h3 { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.9rem; }
.sbs-why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.sbs-why li { display: flex; gap: 0.6rem; align-items: flex-start; color: rgba(255,255,255,0.78); font-size: 0.9rem; line-height: 1.55; }
.sbs-why li svg { width: 16px; height: 16px; color: #e8c583; flex: none; margin-top: 3px; }

/* ---------- join form ---------- */
.sbs-join { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .sbs-join { grid-template-columns: 1fr 1fr; } }
/* grid children default to min-width:auto, so a wide form field can push the
   track past the viewport. min-width:0 lets them shrink instead. */
.sbs-join > *, .sbs-about > *, .sbs-grid > *, .sbs-price > *, .sbs-steps > * { min-width: 0; }
.sbs-form { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 18px; padding: 1.7rem; }
.sbs-field { margin-bottom: 0.9rem; }
.sbs-field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--sbs-ink); margin-bottom: 0.3rem; }
/* Text-like fields only — checkboxes/radios must NOT inherit width:100% + padding. */
.sbs-field input:not([type="checkbox"]):not([type="radio"]),
.sbs-field select, .sbs-field textarea { width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--sbs-line); border-radius: 9px; background: #fff; font-family: var(--sbs-body); font-size: 0.92rem; color: var(--sbs-ink); box-sizing: border-box; }
.sbs-field input:not([type="checkbox"]):not([type="radio"]):focus,
.sbs-field select:focus, .sbs-field textarea:focus { outline: 2px solid var(--sbs-accent); outline-offset: 1px; border-color: var(--sbs-accent); }
/* compact, consistent tick boxes */
/* .site input sets min-height:46px, which beats height — so reset min-height too. */
.sbs input[type="checkbox"], .sbs input[type="radio"] {
  width: 16px; height: 16px; min-width: 16px; min-height: 0; max-height: 16px;
  flex: none; padding: 0; margin: 0;
  accent-color: var(--sbs-accent); cursor: pointer; box-sizing: border-box;
}
.sbs-field .help { font-size: 0.76rem; color: var(--sbs-muted); margin-top: 0.25rem; }
.sbs-row2 { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .sbs-row2 { grid-template-columns: 1fr 1fr; } }
.sbs-checks { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sbs-check { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--sbs-line); background: #fff; border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.85rem; cursor: pointer; color: var(--sbs-ink); }
.sbs-check input { accent-color: var(--sbs-ink); }
.sbs-check:has(input:checked) { border-color: var(--sbs-ink); background: #eef3f9; font-weight: 500; }
.sbs-agree { display: flex; gap: 0.55rem; align-items: flex-start; background: var(--sbs-wash); border-radius: 10px; padding: 0.8rem 0.9rem; font-size: 0.84rem; color: var(--sbs-muted); line-height: 1.5; }

/* ---------- closing band ---------- */
.sbs-band { background: linear-gradient(165deg, #0f2438, #1d4468); color: #fff; border-radius: 20px; padding: 2.6rem 1.6rem; text-align: center; }
.sbs-band h2 { color: #fff; font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 700; margin-bottom: 0.6rem; }
.sbs-band p { color: rgba(255,255,255,0.78); max-width: 52ch; margin: 0 auto 1.4rem; line-height: 1.65; }

/* ---------- flashes ---------- */
.sbs-flash { border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.1rem; font-size: 0.9rem; }
.sbs-flash.err { background: #fdeeec; border: 1px solid #f6d9d5; color: #8f2318; }
.sbs-flash.ok { background: #e8f4ee; border: 1px solid #c6e3d5; color: #14653f; }

/* ---------- app screens (dashboard / board) ---------- */
.sbs-app { padding: 2rem 0 3.4rem; }
.sbs-appbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.sbs-who { display: flex; align-items: center; gap: 0.8rem; }
.sbs-avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--sbs-ink); color: #fff; display: grid; place-items: center; font-family: var(--sbs-head); font-weight: 700; }
.sbs-who b { display: block; color: var(--sbs-ink); font-size: 1.02rem; font-family: var(--sbs-head); }
.sbs-who span { color: var(--sbs-muted); font-size: 0.85rem; }
.sbs-badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.5rem; border-radius: 999px; }
.sbs-badge.verified { background: #e8f4ee; color: #14653f; border: 1px solid #c6e3d5; }
.sbs-badge.pending { background: #fbf1dc; color: #8a6119; border: 1px solid #ecd9ae; }
.sbs-tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--sbs-line); margin-bottom: 1.5rem; overflow-x: auto; }
.sbs-tabs a { padding: 0.7rem 1rem; font-weight: 500; font-size: 0.9rem; color: var(--sbs-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.sbs-tabs a.on { color: var(--sbs-ink); border-bottom-color: var(--sbs-accent); font-weight: 600; }
.sbs-mini { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.6rem; }
@media (min-width: 760px) { .sbs-mini { grid-template-columns: repeat(4, 1fr); } }
.sbs-mini .sbs-stat { border: 1px solid var(--sbs-line); border-radius: 13px; }

.sbs-pending { background: #fbf1dc; border: 1px solid #ecd9ae; border-radius: 18px; padding: 2rem; text-align: center; }
.sbs-pending h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.sbs-pending p { color: #7a5f1e; max-width: 52ch; margin: 0 auto 0.6rem; line-height: 1.65; font-size: 0.94rem; }

.sbs-filters { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 14px; padding: 1rem; margin-bottom: 1.3rem; }
.sbs-filters .fgrid { display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .sbs-filters .fgrid { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }
.sbs-filters label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sbs-muted); font-weight: 600; margin-bottom: 0.25rem; }
.sbs-filters input, .sbs-filters select { width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--sbs-line); border-radius: 8px; font-family: var(--sbs-body); font-size: 0.88rem; box-sizing: border-box; }
.sbs-count { color: var(--sbs-muted); font-size: 0.9rem; margin-bottom: 0.9rem; }
.sbs-count b { color: var(--sbs-ink); }

.sbs-posts { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .sbs-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .sbs-posts { grid-template-columns: repeat(3, 1fr); } }
.sbs-post { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 15px; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; transition: border-color .15s, box-shadow .15s; }
.sbs-post:hover { border-color: var(--sbs-ink); box-shadow: 0 8px 24px rgba(22,51,78,0.09); }
.sbs-post-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.sbs-kind { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.24rem 0.55rem; border-radius: 999px; background: #eef3f9; color: #1d4ed8; }
.sbs-kind.stock { background: #fbf1dc; color: #8a6119; }
.sbs-score { font-size: 0.7rem; font-weight: 700; padding: 0.24rem 0.5rem; border-radius: 7px; white-space: nowrap; }
.sbs-score.strong { background: #e8f4ee; color: #14653f; }
.sbs-score.good { background: #fbf1dc; color: #8a6119; }
.sbs-score.check { background: #eef1f5; color: #5b6b7c; }
.sbs-post h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.35; margin: 0; }
.sbs-amt { font-family: var(--sbs-head); font-size: 1.12rem; font-weight: 700; color: var(--sbs-ink); }
.sbs-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; color: var(--sbs-muted); font-size: 0.82rem; }
.sbs-why-line { background: var(--sbs-wash); border-radius: 8px; padding: 0.5rem 0.65rem; font-size: 0.8rem; color: var(--sbs-muted); line-height: 1.45; }
.sbs-why-line b { color: var(--sbs-ink); }
.sbs-masked { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; color: var(--sbs-muted); background: var(--sbs-wash); border: 1px dashed var(--sbs-line); border-radius: 7px; padding: 0.32rem 0.55rem; }
.sbs-masked svg { width: 12px; height: 12px; }
.sbs-post-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; border-top: 1px solid var(--sbs-line); padding-top: 0.7rem; margin-top: auto; }
.sbs-by { font-size: 0.78rem; color: var(--sbs-muted); line-height: 1.35; }
.sbs-by b { display: block; color: var(--sbs-ink); font-size: 0.84rem; font-family: var(--sbs-head); }

.sbs-empty { text-align: center; padding: 3rem 1rem; background: var(--sbs-card); border: 1px dashed var(--sbs-line); border-radius: 16px; }
.sbs-empty h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.sbs-empty p { color: var(--sbs-muted); max-width: 46ch; margin: 0 auto 1rem; line-height: 1.6; }

.sbs-log { display: grid; gap: 0.7rem; }
.sbs-log-row { background: var(--sbs-card); border: 1px solid var(--sbs-line); border-radius: 12px; padding: 0.9rem 1.1rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; justify-content: space-between; }
.sbs-log-row b { color: var(--sbs-ink); font-family: var(--sbs-head); }
.sbs-log-row .when { font-size: 0.82rem; color: var(--sbs-muted); }
.sbs-state { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.22rem 0.55rem; border-radius: 999px; }
.sbs-state.pending { background: #fbf1dc; color: #8a6119; }
.sbs-state.accepted { background: #e8f4ee; color: #14653f; }
.sbs-state.declined { background: #eef1f5; color: #5b6b7c; }

.sbs-demo { background: #1d4ed8; color: #fff; font-size: 0.76rem; font-weight: 500; text-align: center; padding: 0.45rem 1rem; }

/* auth pages */
.sbs-auth { padding: 2.8rem 0 3.6rem; background: var(--sbs-wash); }
.sbs-auth .sbs-card { box-shadow: 0 10px 30px rgba(22,51,78,0.07); }
.sbs-auth h1 { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.3rem; }
.sbs-auth .hint { color: var(--sbs-muted); font-size: 0.92rem; margin-bottom: 1.3rem; }
.sbs-alt { text-align: center; margin-top: 1.1rem; color: var(--sbs-muted); font-size: 0.88rem; }
.sbs-logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sbs-head); font-weight: 700; color: var(--sbs-ink); font-size: 1.05rem; }
.sbs-logo i { display: inline-block; width: 5px; border-radius: 2px; background: #c0872b; }
.sbs-logo i.tall { height: 22px; background: var(--sbs-ink); }
.sbs-logo i.short { height: 15px; }

/* ---------- post form: category tiles + branching ---------- */
.sbs-cats { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 0.4rem; }
@media (min-width: 620px) { .sbs-cats { grid-template-columns: repeat(4, 1fr); } }
.sbs-cat { position: relative; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start;
  border: 1.5px solid var(--sbs-line); background: #fff; border-radius: 12px; padding: 0.85rem 0.9rem; cursor: pointer; }
.sbs-cat input { position: absolute; opacity: 0; pointer-events: none; }
.sbs-cat svg { width: 22px; height: 22px; color: var(--sbs-muted); }
.sbs-cat b { font-family: var(--sbs-head); font-size: 0.9rem; font-weight: 600; color: var(--sbs-ink); line-height: 1.25; }
.sbs-cat:hover { border-color: var(--sbs-ink); }
.sbs-cat:has(input:checked) { border-color: var(--sbs-accent); background: #fdf6f5; box-shadow: 0 0 0 3px rgba(163,39,29,0.08); }
.sbs-cat:has(input:checked) svg { color: var(--sbs-accent); }

.sbs-fieldset { border: 1px solid var(--sbs-line); border-radius: 12px; padding: 1.1rem; margin-bottom: 1.1rem; background: #fff; }
.sbs-fieldset > legend, .sbs-fieldset > .lg {
  font-family: var(--sbs-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--sbs-muted); padding: 0 0.4rem; margin-bottom: 0.8rem; display: block; }
.sbs-fieldset[hidden] { display: none; }

/* locality picker */
.sbs-locpick { border: 1px solid var(--sbs-line); border-radius: 10px; background: #fff; }
.sbs-locpick .lp-search { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--sbs-line); }
.sbs-locpick .lp-search input { width: 100%; border: 0; outline: none; font-family: var(--sbs-body); font-size: 0.9rem; padding: 0.15rem 0; }
.sbs-locpick .lp-body { max-height: 220px; overflow-y: auto; padding: 0.6rem 0.7rem; }
.sbs-locpick .lp-group { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--sbs-muted); margin: 0.6rem 0 0.35rem; }
.sbs-locpick .lp-group:first-child { margin-top: 0; }
.sbs-locpick .lp-opts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sbs-loc { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--sbs-line);
  border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.83rem; cursor: pointer; color: var(--sbs-ink); background: #fff; }
.sbs-loc:has(input:checked) { border-color: var(--sbs-accent); background: #fdf6f5; font-weight: 500; }
.sbs-loc[hidden] { display: none; }
.sbs-locpick .lp-foot { border-top: 1px solid var(--sbs-line); padding: 0.5rem 0.7rem; font-size: 0.78rem; color: var(--sbs-muted); }

/* must-haves counter */
.sbs-mh-count { font-size: 0.78rem; color: var(--sbs-muted); margin-top: 0.4rem; }
.sbs-mh-count.full { color: var(--sbs-accent); font-weight: 600; }
.sbs-check.is-disabled { opacity: 0.45; cursor: not-allowed; }

/* private (stock-only) block */
.sbs-private { background: var(--sbs-wash); border: 1px dashed #cbd6e2; border-radius: 12px; padding: 1.1rem; margin-bottom: 1.1rem; }
.sbs-private .ph { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem; }
.sbs-private .ph svg { width: 15px; height: 15px; color: var(--sbs-accent); }
.sbs-private .ph b { font-size: 0.88rem; color: var(--sbs-ink); font-family: var(--sbs-head); }

/* inline field errors */
.sbs-field.has-err input, .sbs-field.has-err select, .sbs-field.has-err textarea { border-color: var(--sbs-accent); }
.sbs-err { color: var(--sbs-accent); font-size: 0.78rem; margin-top: 0.25rem; }

/* ---------- post wizard ---------- */
.sbs-wiz { background: #fff; border: 1px solid var(--sbs-line); border-radius: 16px; box-shadow: 0 10px 30px rgba(22,51,78,0.07); overflow: hidden; }
.sbs-wiz-head { padding: 1.1rem 1.4rem 0; }
.sbs-wiz-head .t { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sbs-wiz-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.sbs-wiz-head .n { font-size: 0.82rem; color: var(--sbs-muted); font-weight: 500; white-space: nowrap; }
.sbs-bar { height: 4px; border-radius: 999px; background: var(--sbs-line); margin: 0.9rem 0 0; overflow: hidden; }
.sbs-bar i { display: block; height: 100%; background: var(--sbs-accent); border-radius: 999px; transition: width .25s ease; }
.sbs-wiz-body { padding: 1.3rem 1.4rem; }
.sbs-wiz-foot { display: flex; gap: 0.6rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--sbs-line); background: var(--sbs-wash); }
.sbs-wiz-foot .btn { flex: 1; }
.sbs-wiz-foot .btn.back { flex: 0 0 auto; min-width: 96px; }
.sbs-step-panel[hidden] { display: none; }
.sbs-sublabel { font-size: 0.84rem; font-weight: 600; color: var(--sbs-ink); margin: 0 0 0.45rem; }

/* choice chips (radio / checkbox) */
.sbs-choices { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.sbs-choice { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--sbs-line);
  background: #fff; border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.88rem; cursor: pointer; color: var(--sbs-ink); }
.sbs-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sbs-choice:hover { border-color: var(--sbs-ink); }
.sbs-choice:has(input:checked) { border-color: var(--sbs-accent); background: #fdf6f5; color: var(--sbs-accent); font-weight: 600; }
.sbs-choice.is-disabled { opacity: 0.45; cursor: not-allowed; }

/* locality tag input */
.sbs-tagbox { border: 1px solid var(--sbs-line); border-radius: 9px; background: #fff; padding: 0.4rem 0.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.sbs-tagbox:focus-within { border-color: var(--sbs-accent); outline: 2px solid var(--sbs-accent); outline-offset: 1px; }
.sbs-tag { display: inline-flex; align-items: center; gap: 0.35rem; background: #fdf6f5; border: 1px solid #f0d6d2;
  color: var(--sbs-accent); border-radius: 999px; padding: 0.22rem 0.55rem; font-size: 0.82rem; font-weight: 500; }
.sbs-tag button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; }
.sbs-tagbox input.ti { border: 0 !important; outline: none !important; flex: 1; min-width: 130px; padding: 0.3rem 0.2rem !important;
  font-family: var(--sbs-body); font-size: 0.9rem; min-height: 0 !important; }
.sbs-sugg { position: relative; }
.sbs-sugg-list { position: absolute; z-index: 20; left: 0; right: 0; top: 4px; background: #fff; border: 1px solid var(--sbs-line);
  border-radius: 10px; box-shadow: 0 10px 26px rgba(22,51,78,0.12); max-height: 210px; overflow-y: auto; }
.sbs-sugg-list[hidden] { display: none; }
.sbs-sugg-list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0.55rem 0.8rem;
  font-family: var(--sbs-body); font-size: 0.88rem; color: var(--sbs-ink); cursor: pointer; }
.sbs-sugg-list button:hover, .sbs-sugg-list button.on { background: var(--sbs-wash); }
.sbs-sugg-list .g { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sbs-muted);
  padding: 0.45rem 0.8rem 0.2rem; font-weight: 700; }

/* alert opt-in */
.sbs-alert-opt { display: flex; gap: 0.65rem; align-items: flex-start; border: 1px solid var(--sbs-line); border-radius: 11px;
  padding: 0.85rem 0.95rem; margin-bottom: 0.7rem; background: #fff; cursor: pointer; }
.sbs-alert-opt:has(input:checked) { border-color: #bfe0cc; background: #f2f9f5; }
.sbs-alert-opt b { display: block; font-size: 0.9rem; color: var(--sbs-ink); font-family: var(--sbs-head); font-weight: 600; }
.sbs-alert-opt span { font-size: 0.81rem; color: var(--sbs-muted); line-height: 1.5; }
.sbs-alert-opt .wa { color: #1faf54; }
.sbs-note-info { background: #eef3f9; border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 0.84rem; color: var(--sbs-muted); line-height: 1.55; }
.sbs-note-info b { color: var(--sbs-ink); }

/* private client block */
.sbs-privnote { display: flex; gap: 0.5rem; align-items: flex-start; background: var(--sbs-wash); border-radius: 9px;
  padding: 0.65rem 0.8rem; font-size: 0.81rem; color: var(--sbs-muted); line-height: 1.5; margin-bottom: 1rem; }
.sbs-privnote svg { width: 14px; height: 14px; color: var(--sbs-accent); flex: none; margin-top: 2px; }

/* success */
.sbs-done { text-align: center; padding: 2.4rem 1.4rem; }
.sbs-done .tick { width: 62px; height: 62px; border-radius: 50%; background: #e8f4ee; color: #157a52; display: grid; place-items: center; margin: 0 auto 1rem; }
.sbs-done .tick svg { width: 30px; height: 30px; }
.sbs-done h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4rem; }
.sbs-done .rid { font-size: 0.82rem; color: var(--sbs-muted); font-family: ui-monospace, monospace; margin-bottom: 1rem; }
.sbs-done p { color: var(--sbs-muted); line-height: 1.6; margin: 0 auto 1.3rem; max-width: 44ch; }

/* [hidden] must beat .btn's display:inline-flex — otherwise wizard buttons
   that should be hidden stay visible. */
.sbs [hidden] { display: none !important; }

/* ---------- modal shell ---------- */
.sbs-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center;
  padding: 2.5vh 1rem; overflow-y: auto; background: rgba(15,36,56,0.55); backdrop-filter: blur(2px); }
.sbs-modal[hidden] { display: none !important; }
.sbs-modal-box { position: relative; width: 100%; max-width: 620px; margin: auto; animation: sbsPop .16s ease-out; }
@keyframes sbsPop { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.sbs-modal .sbs-wiz { border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.sbs-modal-x { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; width: 30px; height: 30px; border-radius: 8px;
  border: 0; background: transparent; color: var(--sbs-muted); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.sbs-modal-x:hover { background: var(--sbs-wash); color: var(--sbs-ink); }
.sbs-modal-loading { background: #fff; border-radius: 16px; padding: 2.6rem; text-align: center; color: var(--sbs-muted); font-size: 0.92rem; }
body.sbs-modal-open { overflow: hidden; }
/* the modal keeps its own tab strip */
.sbs-modal .sbs-tabs { margin: 0 0 1.1rem; }
