/* Keel & Hull — design system v2. Mobile-first, accessible, no framework. */
:root {
  --ink: #0b1f3a; --ink-2: #1d2b45; --sea: #123a6b; --teal: #0e7c86; --teal-dark: #0a5f67; --teal-soft: #e3f3f4;
  --brass: #c9a24a; --sand: #f6f3ec; --sand-2: #ede8dc; --paper: #ffffff; --line: #e6e2d8; --line-2: #d6d0c2;
  --text: #1d2433; --muted: #5f6b7a; --ok: #1b7f3b; --ok-soft: #e6f4ea; --err: #b42318; --err-soft: #fdecea; --warn: #9a6a12; --warn-soft: #fff4dc;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 10px 28px -14px rgba(16,24,40,.22);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1180px; --gutter: 16px;
}
@media (min-width: 760px) { :root { --gutter: 24px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; font-family: var(--font); font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--ink-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.accent { background: var(--teal); border-color: var(--teal); }
.btn.accent:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--sand); color: var(--ink); }
.btn.soft { background: var(--teal-soft); color: var(--teal-dark); border-color: transparent; }
.btn.soft:hover { background: #d2eaec; }
.btn.danger { background: #fff; color: var(--err); border-color: #efc3bd; }
.btn.danger:hover { background: var(--err-soft); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn.lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn.full { width: 100%; }
.btn.link, button.link { background: none; border: 0; color: var(--sea); text-decoration: underline; padding: 0; min-height: 0; font: inherit; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }

/* ---------- forms */
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 14px; color: var(--ink-2); }
label > input, label > select, label > textarea { margin-top: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; min-height: 46px; }
/* 16px is the floor on every control: iOS Safari zooms the page when a focused field is smaller (and we keep pinch-zoom for accessibility). */
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,134,.18); outline: none; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0 8px 0 0; vertical-align: -4px; accent-color: var(--teal); }
input[type="file"] { padding: 10px; background: var(--sand); border-style: dashed; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235f6b7a' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 4px; }
.row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 1fr 1fr 1fr; } .row.four { grid-template-columns: repeat(4, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { flex: 0 0 auto; margin-top: 3px; }
.choice { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 560px) { .choice { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .choice.three { grid-template-columns: 1fr 1fr 1fr; } }
.choice label { position: relative; margin: 0; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 14px 14px 14px 44px; cursor: pointer; font-weight: 400; background: #fff; }
.choice label strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.choice input { position: absolute; left: 14px; top: 16px; }
.choice label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.errs { background: var(--err-soft); border: 1px solid #efc3bd; color: #7a1b12; border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.errs ul { margin: 6px 0 0 18px; padding: 0; }
.code-input { font-family: Menlo, Consolas, monospace; font-size: 2rem; letter-spacing: .5em; text-align: center; padding-left: .5em; }

/* ---------- flash */
.flash { border-radius: 10px; padding: 12px 16px; margin: 12px 0; border: 1px solid var(--line); background: var(--sand); color: var(--ink-2); font-size: .95rem; }
.flash.ok { background: var(--ok-soft); border-color: #bfe3c8; color: #14532d; }
.flash.err { background: var(--err-soft); border-color: #efc3bd; color: #7a1b12; }
.flash.info { background: var(--teal-soft); border-color: #bfe0e3; color: var(--teal-dark); }
.flash-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 900; width: min(92vw, 560px); }
.flash-wrap .flash { box-shadow: var(--shadow); animation: rise .3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- header */
header.site { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--brass); }
.brand img { width: 34px; height: 34px; }
.nav { display: none; align-items: center; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--teal-dark); }
.nav a[aria-current="page"] { color: var(--teal-dark); }
.nav .btn { margin-left: 6px; }
/* `.nav a` outranks `.btn`, so the header "Get started" / "Sell a boat" button was getting the nav link colours (dark text, teal text on hover) */
.nav a.btn, .nav a.btn:hover, .nav a.btn:focus-visible { color: #fff; }
.nav a.btn.accent:hover, .nav a.btn.accent:focus-visible { background: var(--teal-dark); border-color: var(--teal-dark); }
details.menu { position: relative; }
details.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 500; font-size: .9rem; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary svg { width: 20px; height: 20px; }
details.menu[open] > summary { background: var(--sand); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 240px; padding: 8px; z-index: 600; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; background: none; border: 0; font: inherit; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--sand); }
.menu-panel .btn { display: flex; text-align: center; justify-content: center; margin-top: 6px; color: #fff; background: var(--teal); }
.menu-panel a.btn:hover, .menu-panel a.btn:focus-visible { background: var(--teal-dark); color: #fff; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (min-width: 900px) { .nav { display: flex; } details.menu { display: none; } }

/* ---------- hero + sections */
.hero { background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); padding: 40px 0 28px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 760px; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 640px; }
.hero-art { position: absolute; right: -60px; bottom: -30px; width: 420px; opacity: .55; pointer-events: none; display: none; }
@media (min-width: 1000px) { .hero { padding: 64px 0 44px; } .hero-art { display: block; } }
.search-bar { display: grid; gap: 10px; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); max-width: 860px; }
.search-bar input, .search-bar select { min-height: 48px; }
.search-bar label { margin: 0; }
@media (min-width: 760px) { .search-bar { grid-template-columns: 2fr 1.2fr 1fr auto; align-items: end; } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick a { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; }
.quick a:hover { border-color: var(--teal); color: var(--teal-dark); }
section.block { padding: 36px 0; }
section.block.alt { background: var(--sand); }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sect-head h2 { margin: 0; }
.steps-3 { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.steps-3 > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps-3 > div::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; margin-bottom: 12px; font-family: var(--display); }
.steps-3 h3 { font-family: var(--font); font-size: 1.05rem; }
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #c7d2e2; }
.trust { display: flex; flex-wrap: wrap; gap: 18px 28px; color: var(--muted); font-size: .9rem; margin-top: 18px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--teal); }
.promo-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); }
.promo-note p { margin: 0; color: var(--muted); }
.promo-note strong { color: var(--ink); }
.promo-ico { flex: none; display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--teal-soft); color: var(--teal); }
.promo-ico svg { width: 18px; height: 18px; }

/* ---------- cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card .ph { position: relative; aspect-ratio: 4 / 3; background: var(--sand-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.noph { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .85rem; background: repeating-linear-gradient(135deg, var(--sand-2) 0 10px, #e5dfd2 10px 20px); }
.noph.tall { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.card .cb { padding: 12px 14px 14px; }
.card .price { font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.card .ttl { font-weight: 500; margin: 2px 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta, .card .where { font-size: .84rem; color: var(--muted); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.tag.sold { background: var(--err); }
.tag.auction { background: var(--brass); color: var(--ink); }
.tag.live { background: var(--teal); }
.tag.right { left: auto; right: 10px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); text-transform: capitalize; }
.badge.active, .badge.live, .badge.ok, .badge.sold-ok { background: var(--ok-soft); color: #14532d; }
.badge.draft, .badge.scheduled { background: var(--warn-soft); color: var(--warn); }
.badge.sold, .badge.closed, .badge.unsold, .badge.cancelled { background: var(--sand-2); color: var(--muted); }
.badge.pending, .badge.new, .badge.contacted { background: var(--teal-soft); color: var(--teal-dark); }
.badge.err, .badge.spam { background: var(--err-soft); color: var(--err); }
.badge.auction { background: #fbf1d6; color: #7a5a10; }

/* ---------- listing detail */
.crumbs { font-size: .85rem; color: var(--muted); margin: 14px 0; }
.crumbs a { color: var(--muted); }
.detail-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.price.big { font-size: 1.8rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.price.big .tag { position: static; }
.detail-body { display: grid; gap: 24px; grid-template-columns: 1fr; grid-template-areas: "gallery" "aside" "text"; }
.detail-body > .gallery { grid-area: gallery; }
.detail-body > aside { grid-area: aside; }
.detail-body > .detail-text { grid-area: text; min-width: 0; }
@media (min-width: 900px) { .detail-body { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: max-content 1fr; grid-template-areas: "gallery aside" "text aside"; align-items: start; } .detail-body > aside { position: sticky; top: 84px; } }
.gallery { display: grid; gap: 8px; }
.gallery .main { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main { position: relative; }
.gallery .g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 8px rgba(11,31,58,.18); }
.gallery .g-nav.prev { left: 12px; } .gallery .g-nav.next { right: 12px; }
.gallery .main:hover .g-nav, .gallery .g-nav:focus-visible { opacity: 1; }
.gallery .g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(11,31,58,.7); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; letter-spacing: .02em; }
.gallery .thumbs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
@media (max-width: 760px) {
  .gallery .g-nav { display: none; }
  .gallery .thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .gallery .thumbs::-webkit-scrollbar { display: none; }
  .gallery .thumbs button { flex: 0 0 84px; width: 84px; scroll-snap-align: center; }
}
.gallery .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--teal); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: .9em; }
table.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.specs th { text-align: left; font-weight: 500; color: var(--muted); padding: 9px 10px 9px 0; width: 22%; border-bottom: 1px solid var(--line); }
table.specs td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); width: 28%; }
.inquire, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h3 { margin-top: 0; }
.seller-box { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }

/* ---------- auction */
.auction-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; }
.auction-box h3 { color: #fff; margin-top: 0; }
.auction-box .bid { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.auction-box .muted { color: #b8c4d6; }
.auction-box input { background: #fff; color: var(--text); }
.auction-box label { color: #dbe3ef; }
.auction-box .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.auction-box .btn.ghost:hover, .auction-box .btn.ghost:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .8); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown.urgent { color: #ffb4a8; }
.auction-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.auction-stats div { background: rgba(255,255,255,.08); border-radius: 8px; padding: 10px; text-align: center; }
.auction-stats strong { display: block; font-size: 1.1rem; }
.auction-stats span { font-size: .75rem; color: #b8c4d6; }
.bid-list { list-style: none; margin: 0; padding: 0; }
.bid-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.reserve { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.reserve.met { background: var(--ok-soft); color: #14532d; }
.reserve.not { background: var(--warn-soft); color: var(--warn); }

/* ---------- filters / search page */
.filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: var(--radius); padding: 14px; margin: 16px 0 22px; }
.filters label { margin: 0; font-size: .82rem; }
.filters input, .filters select { min-height: 42px; padding: 8px 10px; font-size: 16px; }
.filters .btn { align-self: end; }
@media (min-width: 900px) { .filters { grid-template-columns: 2fr 1.1fr .9fr auto auto 1fr 1fr 1fr auto; } }
.pager { display: flex; gap: 8px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); }
.pager span.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- footer */
footer.site { margin-top: 48px; background: var(--ink); color: #c7d2e2; padding: 36px 0 28px; font-size: .9rem; }
footer.site a { color: #e6edf7; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot h4 { color: #fff; font-family: var(--font); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .brand { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #94a3b8; font-size: .82rem; }

/* ---------- dashboard shell */
body.dash { background: #f7f6f2; }
.dash-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 400; background: #fff; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink-2); }
.bell svg { width: 22px; height: 22px; }
.bell .n { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--err); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.content { padding: 18px var(--gutter) 90px; max-width: 1180px; width: 100%; margin: 0 auto; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 450; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: grid; justify-items: center; gap: 2px; font-size: .68rem; color: var(--muted); text-decoration: none; padding: 4px 0; border-radius: 8px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--teal-dark); }
@media (min-width: 900px) {
  .dash-shell { grid-template-columns: 240px 1fr; }
  .side { display: flex; flex-direction: column; gap: 6px; background: var(--ink); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
  .side .brand { color: #fff; padding: 4px 8px 14px; }
  .side .acct { padding: 10px 12px; background: rgba(255,255,255,.08); border-radius: 10px; margin-bottom: 10px; font-size: .9rem; font-weight: 500; }
  .side .acct small { display: block; color: #b8c4d6; font-weight: 400; }
  .side nav { display: grid; gap: 2px; }
  .side nav a { display: flex; align-items: center; gap: 10px; color: #dbe3ef; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: .93rem; }
  .side nav a svg { width: 18px; height: 18px; opacity: .85; }
  .side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .side nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
  .side .spacer { flex: 1; }
  .side .logout { padding: 8px 12px; }
  .side .logout button { color: #b8c4d6; display: inline-flex; align-items: center; gap: 8px; }
  .side .logout svg { width: 18px; height: 18px; }
  .topbar { display: none; }
  .tabbar { display: none; }
  .content { padding: 28px 32px 48px; }
}
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 1.7rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .v { font-size: 1.65rem; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.stat .d { font-size: .78rem; margin-top: 6px; font-weight: 600; }
.stat .d.up { color: var(--ok); } .stat .d.down { color: var(--err); }
.card-list { display: grid; gap: 14px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.box h2 { font-size: 1.2rem; margin: 0 0 12px; }
.two-col { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .two-col { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chips a { font-size: .84rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); background: #fff; }
.chips a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .btn { margin-top: 12px; }

/* ---------- tables (responsive) */
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
table.list th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; background: var(--sand); border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list .thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--sand-2); }
@media (max-width: 760px) {
  table.list.stack thead { display: none; }
  table.list.stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.list.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  table.list.stack td::before { content: attr(data-l); color: var(--muted); font-size: .78rem; text-align: left; flex: 0 0 38%; }
  table.list.stack td.num { text-align: right; }
  table.list.stack td.full { display: block; text-align: left; }
  table.list.stack td.full::before { display: none; }
}
.row-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.row-item img, .row-item .noph { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }
.row-item .t { font-weight: 600; color: var(--ink); text-decoration: none; }
.row-item .m { font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .row-item { grid-template-columns: 64px 1fr; } .row-item > .actions { grid-column: 1 / -1; } .row-item img, .row-item .noph { width: 64px; height: 48px; } }
.chart { width: 100%; height: auto; max-height: 220px; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.photo-grid figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--sand-2); aspect-ratio: 4 / 3; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid form { position: absolute; top: 6px; right: 6px; }
.photo-grid .first { position: absolute; left: 6px; top: 6px; background: var(--teal); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.uploader { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; background: #fff; }
.uploader input { display: none; }
.uploader .btn { margin: 6px 4px; }

/* ---------- wizard */
body.wizard { background: var(--sand); }
.wiz-top { background: #fff; border-bottom: 1px solid var(--line); }
.wiz-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.wiz-top .brand { flex: none; }
.brand span { white-space: nowrap; }
.wiz { max-width: 1040px; margin: 0 auto; padding: 22px var(--gutter) 60px; }
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: p; }
.progress li { font-size: .72rem; color: var(--muted); text-align: center; }
.progress li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line-2); margin-bottom: 6px; }
.progress li.done::before { background: var(--teal); }
.progress li.now::before { background: var(--ink); }
.progress li.now { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .progress { gap: 4px; }
  .progress li span { display: none; }
  /* one full-width line ("Step 2 of 6 · Your profile") instead of a label squeezed under a 1/6-width segment */
  .progress::after { content: "Step " attr(data-step) " · " attr(data-now); grid-column: 1 / -1; font-size: .82rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
}
.wiz-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .wiz-grid { grid-template-columns: 360px 1fr; align-items: start; } .wiz-aside { position: sticky; top: 20px; } }
.wiz-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.wiz-aside svg.illus { width: 100%; height: auto; margin-bottom: 14px; }
.wiz-aside h2 { font-size: 1.3rem; }
.wiz-aside ul { padding-left: 18px; margin: 0; color: var(--ink-2); font-size: .92rem; }
.wiz-aside li { margin-bottom: 6px; }
.wiz-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 640px) { .wiz-main { padding: 30px 34px; } }
.wiz-main h1 { font-size: 1.6rem; }
.wiz-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-grid { display: grid; gap: 10px 18px; grid-template-columns: 1fr; font-size: .95rem; }
@media (min-width: 560px) { .review-grid { grid-template-columns: 1fr 1fr; } }
.review-grid div span { display: block; color: var(--muted); font-size: .78rem; }
.done-art { width: 160px; margin: 0 auto 10px; }

/* ---------- legal prose */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.05rem; font-family: var(--font); margin-top: 1.3em; }
.legal ul { padding-left: 20px; }
.legal .meta { color: var(--muted); font-size: .9rem; }
.toc { background: var(--sand); border-radius: var(--radius); padding: 14px 18px; font-size: .9rem; }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

@media print { header.site, footer.site, .tabbar, .side, .topbar, .flash-wrap, .btn { display: none !important; } body { background: #fff; } }

/* ======================================================================
   v3 additions: accessibility mode, AI drafts, financing, offers, API docs, feedback
   ====================================================================== */

/* ---------- accessibility mode (html[data-a11y="on"]). Baseline WCAG AA is always on; this layers more. */
.a11y-form { display: inline; margin: 0; }
.a11y-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: 500 .85rem/1.2 var(--font); cursor: pointer; }
.a11y-toggle:hover { background: var(--sand); }
.a11y-toggle svg { width: 22px; height: 22px; }
.a11y-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* icon only in the header; label stays for screen readers */
.a11y-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
html[data-a11y="on"] .a11y-toggle { width: auto; padding: 6px 12px; border-radius: 8px; }
html[data-a11y="on"] .a11y-toggle span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.side .a11y-form { display: block; margin: 0 0 10px; }
.side .a11y-toggle { width: 100%; justify-content: flex-start; padding: 6px 10px; border-radius: 8px; background: transparent; color: #c7d2e2; border-color: rgba(255,255,255,.18); }
.side .a11y-toggle span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.side .a11y-toggle[aria-pressed="true"] { background: #fff; color: var(--ink); }
.wiz-links { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; justify-content: flex-end; white-space: nowrap; min-width: 0; }
.wiz-links a { display: inline-flex; align-items: center; gap: 4px; }
.wiz-links a svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .wiz-top .brand { font-size: 1.1rem; gap: 8px; }
  .wiz-top .brand img { width: 30px; height: 30px; }
  .wiz-links { gap: 10px; }
  .wiz-links .long, .wiz-links a.fb span { display: none; }   /* "Sign in" / "Save & exit" and an icon-only feedback link on phones */
  .wiz-links a.fb { width: 40px; min-height: 40px; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); }
  .wiz-links a.fb svg { width: 20px; height: 20px; }
}
html[data-a11y="on"] { font-size: 112.5%; }
html[data-a11y="on"] body { line-height: 1.7; letter-spacing: .01em; word-spacing: .04em; font-size: 1rem; }
html[data-a11y="on"] { --text: #000; --ink: #000; --ink-2: #0a0f1a; --muted: #3b4452; --line: #9aa3b2; --line-2: #6b7280; --sand: #f3efe6; --teal: #0a5f67; --teal-dark: #073f45; --sea: #0b2f5c; }
html[data-a11y="on"] a { text-decoration: underline; text-decoration-thickness: 2px; }
html[data-a11y="on"] .nav a, html[data-a11y="on"] .btn { text-decoration: none; }
html[data-a11y="on"] *, html[data-a11y="on"] *::before, html[data-a11y="on"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-a11y="on"] header.site { background: #fff; backdrop-filter: none; }
html[data-a11y="on"] :focus { outline: 3px solid #b45309; outline-offset: 3px; }
html[data-a11y="on"] .btn { min-height: 52px; padding: 12px 22px; border-width: 2px; }
html[data-a11y="on"] .btn.sm { min-height: 44px; }
html[data-a11y="on"] input, html[data-a11y="on"] select, html[data-a11y="on"] textarea { min-height: 52px; border-width: 2px; font-size: 1.05rem; }
html[data-a11y="on"] .card, html[data-a11y="on"] .panel, html[data-a11y="on"] .box, html[data-a11y="on"] .inquire { border-width: 2px; box-shadow: none; }
html[data-a11y="on"] .muted, html[data-a11y="on"] .small.muted, html[data-a11y="on"] .tiny { color: #3b4452; }
html[data-a11y="on"] .flash-wrap .flash { opacity: 1 !important; display: block !important; }
html[data-a11y="on"] .tabbar a { font-size: .8rem; }
html[data-a11y="on"] .hero-art { display: none; }
@media (prefers-contrast: more) { :root { --muted: #3b4452; --line: #9aa3b2; --line-2: #6b7280; } }

/* ---------- field helpers */
.field-aux { position: relative; }
.field-aux > label { margin-bottom: 14px; }
.type-req { position: static; }
.type-req > summary { position: absolute; top: -3px; right: 0; }
.type-req > summary { list-style: none; cursor: pointer; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; color: var(--teal-dark); }
.type-req > summary::-webkit-details-marker { display: none; }
.type-req > summary:hover { background: var(--teal-soft); }
.type-req > summary svg { width: 18px; height: 18px; }
.type-req-form { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: min(340px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; }
.type-req-form::before { content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
@media (max-width: 640px) { .type-req-form { left: auto; right: 0; } .type-req-form::before { left: auto; right: 22px; } }
.type-req-form label { display: block; font-size: .85rem; margin: 0; }
.type-req-form label input { margin: 6px 0 14px; }
.type-req-form .btn { width: 100%; margin-top: 6px; }
.filters .field-aux label { margin: 0; }
.filters .type-req > summary { top: -6px; }
.filters .check { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; align-self: end; min-height: 42px; margin: 0; padding: 0 10px; font-size: .85rem; white-space: nowrap; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.filters .check input { margin: 0; width: 16px; height: 16px; accent-color: var(--teal); }
.filters .check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }

/* ---------- AI draft */
.ai-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(120deg, #0e7c86, #123a6b); color: #fff; font-weight: 600; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.ai-badge svg { width: 14px; height: 14px; }
.ai-panel { border: 1px solid #bfe0e3; background: linear-gradient(180deg, #f0f9fa, #fff); border-radius: 14px; padding: 0; margin: 0 0 22px; }
.ai-panel > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 500; color: var(--ink-2); }
.ai-panel > summary::-webkit-details-marker { display: none; }
.ai-panel > summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.ai-panel[open] > summary::after { content: "▴"; }
.ai-panel .ai-form { padding: 4px 16px 16px; }
.ai-box { border-color: #bfe0e3; background: linear-gradient(180deg, #f0f9fa, #fff); }
.ai-box h2 { display: flex; align-items: center; gap: 8px; }
.ai-box h2 svg, .ai-review h1 svg { width: 20px; height: 20px; color: var(--teal); }
.ai-review .ai-row { display: grid; gap: 8px 18px; grid-template-columns: 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .ai-review .ai-row { grid-template-columns: 220px 1fr; } }
.ai-review .ai-row.empty { opacity: .6; }
.ai-review .ai-use { margin: 0; }
.ai-review .ai-val input, .ai-review .ai-val select, .ai-review .ai-val textarea { margin: 0; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.planned, .badge.in_progress { background: var(--teal-soft); color: var(--teal-dark); }
.badge.done { background: var(--ok-soft); color: #14532d; }
.badge.declined, .badge.expired, .badge.withdrawn { background: var(--sand-2); color: var(--muted); }
.badge.accepted { background: var(--ok-soft); color: #14532d; }
.badge.open { background: var(--warn-soft); color: var(--warn); }
.badge.fin { background: #e8f1ff; color: #1d4ed8; }

/* ---------- financing */
.fin-line { font-size: .9rem; font-weight: 500; margin-top: 4px; width: 100%; }
.fin-line a { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-dark); text-decoration: none; background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; }
.fin-line a svg { width: 16px; height: 16px; }
.fin-tag { color: var(--teal-dark); font-weight: 600; }
.fin-box, .offer-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.fin-box h3, .offer-box h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.fin-box h3 svg, .offer-box h3 svg { width: 20px; height: 20px; color: var(--teal); }
.fin-terms { padding-left: 18px; margin: 0 0 10px; }
.fin-est { margin: 0 0 10px; font-size: 1.05rem; }
.fin-details > summary { list-style: none; }
.fin-details > summary::-webkit-details-marker { display: none; }
.fin-details[open] > summary { margin-bottom: 12px; }
.fin-form { margin-top: 12px; }
.fin-panel { background: var(--sand); }

/* ---------- offers */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.timeline li.buyer::before { background: var(--teal); }
.timeline li.seller::before { background: var(--brass); }
table.list tr.hot td { background: #fffbea; }

/* ---------- developer / docs */
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.keybox code { font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; word-break: break-all; }
pre.code, .docs pre { background: #0f1b2d; color: #e6edf7; border-radius: 10px; padding: 14px 16px; overflow: auto; font-size: .82rem; line-height: 1.5; }
.docs pre code, pre.code code { font-family: Menlo, Consolas, monospace; }
.docs code, .hook code, .keybox code, .fb-row code { font-family: Menlo, Consolas, monospace; font-size: .88em; }
.docs-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .docs-grid { grid-template-columns: 200px 1fr; } .docs-nav { position: sticky; top: 80px; align-self: start; } }
.docs-nav { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .9rem; }
@media (min-width: 900px) { .docs-nav { flex-direction: column; } }
.docs-body h2 { font-size: 1.35rem; margin-top: 1.6em; }
.docs-body .prose, .docs-body { max-width: none; }
table.specs.api th { width: 34%; font-family: Menlo, Consolas, monospace; font-weight: 500; font-size: .85rem; }
.hook { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.hook.off { opacity: .65; }
.hook .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--teal-dark); margin: 0 0 6px; }

/* ---------- feedback / admin */
.fb-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .fb-row { grid-template-columns: 1fr 320px; } }
.fb-act label { margin-bottom: 8px; font-size: .85rem; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq p { margin: 10px 0 0; color: var(--ink-2); max-width: 78ch; }
.a11y-fallback { margin: 12px 0; }

/* ---------- social sign-in */
.social-row { display: grid; gap: 10px; margin: 6px 0 18px; }
.btn.social { width: 100%; gap: 10px; }
.btn.social.google { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.social.google:hover { background: var(--sand); }
.btn.social.apple { background: #000; border-color: #000; color: #fff; }
.social-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; }
.social-or::before, .social-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- admin */
body.admin .side { background: #1a1212; }
body.admin .side .acct small, body.admin .side nav a { color: #e8d9d9; }
body.admin .side nav a[aria-current="page"] { background: #b42318; color: #fff; }
.admin-top { border-bottom: 3px solid #b42318; }
.imp-bar { position: sticky; top: 0; z-index: 950; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; background: #b42318; color: #fff; padding: 8px 14px; font-size: .9rem; }
.imp-bar form { margin: 0; }
.imp-bar .btn { background: #fff; color: #b42318; border-color: #fff; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kpi { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); }
.kpi span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { display: block; font-size: 1.6rem; font-family: var(--display); color: var(--ink); margin: 2px 0; }
.kpi small { color: var(--muted); font-size: .78rem; }
.funnel { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.funnel > div { background: var(--sand); border-radius: 10px; padding: 12px 14px; }
.funnel strong { display: block; font-size: 1.4rem; font-family: var(--display); }
.funnel span { font-size: .82rem; color: var(--muted); }
.funnel em { font-style: normal; color: var(--teal-dark); font-weight: 600; }
.err { color: var(--err); }
.ai-eyebrow svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--teal); }
.ai-panel > summary .ai-badge svg { width: 14px; height: 14px; }

/* ---------- v4: rentals, incentives, modal forms ---------- */
.tag.rent { background: var(--sea); color: #fff; }
.tag.inc { background: #fff7e0; color: #7a4b00; display: inline-flex; align-items: center; gap: 4px; }
.tag.inc svg { width: 13px; height: 13px; }
.price .per, .price.big .per { font-size: .7em; font-weight: 500; color: var(--muted); margin-left: 2px; }
.price.big { flex-wrap: wrap; }
.filters.filters-rental { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .filters.filters-rental { grid-template-columns: 2fr 1.1fr 1fr .8fr 1fr 1fr 1fr auto; } }
.rates { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: .92rem; }
.rates th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 7px 0; border-bottom: 1px solid var(--line); }
.rates td { text-align: right; font-weight: 700; padding: 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rates tr:last-child th, .rates tr:last-child td { border-bottom: 0; }
.fin-terms li svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--teal-dark); margin-right: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--sand); font-size: .85rem; color: var(--ink-2); }
.chip svg { width: 14px; height: 14px; color: var(--teal-dark); }
.inc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inc-list li { display: grid; gap: 2px; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
.inc-list li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.inc-list li span { color: var(--ink-2); font-size: .92rem; }
.inc-list li em { font-style: normal; }
.incentives h2 svg { width: 22px; height: 22px; vertical-align: -4px; color: var(--teal-dark); }
.estimate { background: var(--sand); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; }
.estimate ul { list-style: none; margin: 0; padding: 0; }
.estimate ul li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink-2); }
.est-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 8px; }
.est-total strong { font-size: 1.15rem; }
/* incentives repeater (seller forms) */
.inc-rows { display: grid; gap: 10px; }
.inc-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.inc-row label { margin: 0; font-size: .82rem; }
.inc-row .inc-rm { justify-self: end; }
@media (min-width: 700px) { .inc-row { grid-template-columns: 1.1fr 1.3fr 1.6fr .8fr .9fr auto; align-items: end; } }
.rental-panel { background: var(--sand); border-radius: var(--radius); padding: 14px 16px 6px; margin: 0 0 16px; }
.rental-panel h3 { font-size: 1rem; margin: 0 0 10px; }
.rental-panel .row { margin-bottom: 0; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .85rem; cursor: pointer; }
.days label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.days input { margin: 0; accent-color: var(--teal); }
.amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; }
.amen label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; font-weight: 400; }
.amen input { margin: 0; accent-color: var(--teal); }
/* modal dialogs */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: min(92vh, 900px); box-shadow: 0 30px 80px rgba(11,31,58,.35); background: #fff; color: var(--text); }
dialog.modal.modal-wide { width: min(680px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(11,31,58,.55); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Browsers without native <dialog> (Safari < 15.4) would render closed dialogs inline: hide them explicitly. */
dialog.modal:not([open]) { display: none; }
/* Open dialogs are always viewport-fixed and centred, whether or not the browser put them in the top layer; the body is
   frozen at its scroll position (body.modal-open) so the page never jumps and the person lands back where they were. */
dialog.modal[open], dialog.modal.fallback { position: fixed; inset: 0; margin: auto; z-index: 1000; height: fit-content; max-height: min(92vh, 900px); }
body.modal-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
body.modal-open::before { content: ""; position: fixed; inset: 0; background: rgba(11,31,58,.55); z-index: 999; }
dialog.modal::backdrop { background: transparent; }
.modal-body { padding: 22px 22px 18px; overflow: auto; max-height: min(92vh, 900px); }
.modal-body h3 { margin: 0 32px 4px 0; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.modal-body h3 svg { width: 22px; height: 22px; color: var(--teal-dark); }
.modal-body > p.small { margin: 0 0 14px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink-2); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--line); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.modal-actions .btn { flex: 1 1 auto; }
.modal-body .flash { position: static; margin: 0 0 12px; }
html[data-a11y="on"] dialog.modal[open] { animation: none; }
/* dashboard rentals */
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.req-list .when { text-align: center; min-width: 64px; background: var(--sand); border-radius: 10px; padding: 6px 8px; }
.req-list .when b { display: block; font-size: 1.3rem; line-height: 1.1; }
.req-list .when span { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.badge.new { background: var(--brass); color: var(--ink); }
.badge.accepted { background: var(--teal-soft); color: var(--teal-dark); }
.badge.declined, .badge.cancelled, .badge.expired { background: #f3f4f6; color: var(--muted); }
.badge.completed { background: #e6f4ea; color: #166534; }
.badge.rental { background: var(--sea); color: #fff; }

/* ---- fetch navigation (nav.js): progress bar, regions being refreshed, live filter forms */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--teal); z-index: 3000; opacity: 0; pointer-events: none; transition: width .3s ease, opacity .25s; }
.nav-progress.on { opacity: 1; width: 85%; transition: width 8s cubic-bezier(.05, .7, .1, 1), opacity .25s; }
.nav-progress.done { width: 100%; opacity: 0; transition: width .15s ease-out, opacity .3s .15s; }
html[data-a11y="on"] .nav-progress { transition: none; }
[data-swap] { transition: opacity .15s; }
[data-swap].swapping { opacity: .55; }
[data-swap]:focus { outline: none; }
html[data-a11y="on"] [data-swap] { transition: none; }
html.kh-nav form[data-live] button[type="submit"], html.kh-nav form[data-live] > button:not([type]) { display: none; }

/* ---------- v5: featured band, bump, prev/next, seller box ---------- */
.tag.featured { top: auto; bottom: 10px; background: var(--brass); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.tag.featured svg { width: 12px; height: 12px; }
.card-featured { border-color: #e2c877; box-shadow: 0 0 0 2px rgba(201,162,74,.18); }
.featured-band { margin: 0 0 22px; padding: 14px 14px 16px; border: 1px solid #e2c877; border-radius: var(--radius); background: linear-gradient(180deg, #fbf6e8 0%, #fff 100%); }
.featured-band .fb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 12px; }
.featured-band .fb-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7a5e16; background: #f1e4bd; padding: 3px 8px; border-radius: 6px; }
.featured-band .fb-tag svg { width: 12px; height: 12px; }
.featured-band .grid { margin: 0; }
.pn-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 14px 0 20px; }
.pn-bar .pn { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; min-width: 0; }
.pn-bar .pn:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.pn-bar .pn.next { justify-content: flex-end; text-align: right; }
.pn-bar .pn img, .pn-bar .pn .noph { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; font-size: .6rem; }
.pn-bar .pn .pn-t { min-width: 0; }
.pn-bar .pn .pn-t .k { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1px; }
.pn-bar .pn .pn-t .t { display: block; font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-bar .pn .pn-t .p { display: block; font-size: .8rem; color: var(--muted); }
.pn-bar .pn-mid { text-align: center; font-size: .84rem; color: var(--muted); white-space: nowrap; }
.pn-bar .pn-mid a { color: var(--teal-dark); }
.pn-bar .pn[hidden], .pn-bar .pn [hidden] { display: none !important; }
/* Fixed columns so a missing Previous never pulls Next into the middle. */
.pn-bar .pn.prev { grid-column: 1; } .pn-bar .pn-mid { grid-column: 2; } .pn-bar .pn.next { grid-column: 3; }
@media (max-width: 640px) {
  .pn-bar { grid-template-columns: 1fr; gap: 8px; margin: 10px 0 20px; }
  .pn-bar .pn.prev, .pn-bar .pn-mid, .pn-bar .pn.next { grid-column: 1; }
  .pn-bar .pn-mid { order: -1; text-align: left; padding: 4px 2px 8px; font-size: .86rem; }
  .pn-bar .pn { padding: 8px 10px; }
  .pn-bar .pn.next { flex-direction: row; justify-content: flex-end; text-align: right; }
  .pn-bar .pn img, .pn-bar .pn .noph { width: 72px; height: 54px; }
  .pn-bar .pn .pn-t { flex: 1 1 auto; }
}
.seller-box { align-items: flex-start; }
.seller-box .avatar { flex: none; }
.seller-box .avatar.logo { background: #fff; border: 1px solid var(--line); padding: 0; overflow: hidden; width: 56px; height: 56px; border-radius: 10px; }
.seller-box .avatar.logo img { width: 100%; height: 100%; object-fit: contain; }
.seller-box .sb-meta { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.seller-box .sb-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: .84rem; }
.seller-box .sb-links button { background: none; border: 0; padding: 0; color: var(--teal-dark); font: inherit; font-size: .84rem; cursor: pointer; text-decoration: underline; }
.logo-field { display: flex; gap: 12px; align-items: center; }
.logo-field .cur { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; background: #fff; }
.seller-box .sb-meta svg, .seller-box .sb-links svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.seller-box .sb-links button { display: inline-flex; align-items: center; gap: 4px; }
.pricing-addons h3 svg { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.panel h3 svg { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.legal svg { width: 14px; height: 14px; display: inline-block; }
/* dealer directory */
.grid.dealers { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dealer-card .dc-head { display: flex; gap: 12px; align-items: center; padding: 14px 14px 12px; }
.dealer-card .dc-head .avatar { width: 48px; height: 48px; }
.dealer-card .dc-head .avatar.logo { border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.dealer-card .dc-head .avatar.logo img { width: 100%; height: 100%; object-fit: contain; }
.dealer-card .ttl { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dealer-card .dc-ph { aspect-ratio: 16 / 9; }
.dealer-card .dc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.dealer-card .dc-foot strong { color: var(--ink); }
.dealer-card .dc-link { color: var(--teal-dark); font-weight: 500; white-space: nowrap; }

/* busy buttons + upload progress */
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.ghost.is-busy::after, .btn.is-busy.sm.ghost::after { border-color: rgba(11,31,58,.25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.upload-progress { margin-top: 12px; }
.upload-progress .up-bar { height: 8px; border-radius: 4px; background: var(--sand-2); overflow: hidden; }
.upload-progress .up-bar span { display: block; height: 100%; width: 2%; background: var(--teal); border-radius: 4px; transition: width .25s ease; }
.upload-progress .up-text { margin: 6px 0 0; }
.upload-progress.err .up-bar span { background: var(--err); }
.upload-progress.err .up-text { color: var(--err); }
.foot-social { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-social a { display: inline-flex; align-items: center; gap: 6px; }
.foot-social svg { width: 18px; height: 18px; }

/* ---- Team */
.seat-meter { padding: 16px 18px; }
.seat-meter .sm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.seat-meter .sm-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.seat-meter .sm-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list .tm { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.team-list .tm:first-child { border-top: 0; padding-top: 4px; }
.team-list .tm.disabled .tm-main { opacity: .55; }
.tm-av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.tm.invited .tm-av { background: #fff; border: 1.5px dashed var(--line-2); color: var(--muted); }
.tm-main { flex: 1; min-width: 0; }
.tm-name { font-weight: 600; }
.tm-meta { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
.tm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.tm-role select { min-height: 34px; padding: 4px 28px 4px 10px; font-size: .86rem; width: auto; }
.tm-actions form { display: flex; gap: 12px; }
button.link.danger { color: var(--err); }
.badge.owner { background: var(--ink, #0b1f3a); color: #fff; }
.badge.muted { background: var(--line); color: var(--muted); }
.role-pick { border: 0; padding: 0; margin: 4px 0 14px; }
.role-pick legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.role-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 8px; cursor: pointer; font-weight: 400; }
.role-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.role-opt input { margin-top: 3px; width: auto; min-height: 0; }
.role-opt > span { display: flex; flex-direction: column; gap: 2px; }
.role-dl { margin: 0; }
.role-dl dt { font-weight: 600; margin-top: 10px; }
.role-dl dt:first-child { margin-top: 0; }
.role-dl dd { margin: 2px 0 0; }
@media (max-width: 640px) {
  .team-list .tm { flex-wrap: wrap; }
  .tm-side { flex-direction: row; align-items: center; width: 100%; padding-left: 54px; justify-content: space-between; }
}

/* ---- Notifications */
.notif-box { padding: 6px 22px 14px; }
.notif-day { font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif form { margin: 0; }
.notif-row { all: unset; box-sizing: border-box; display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 16px 12px; margin: 0 -12px; width: calc(100% + 24px); border-radius: 10px; cursor: pointer; transition: background .15s; }
.notif-row:hover { background: var(--sand); }
.notif-row:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.notif .ni { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); color: var(--ink-2); }
.notif .ni svg, .empty-state .ni svg { width: 19px; height: 19px; }
.notif.unread .ni { background: var(--teal-soft); color: var(--teal-dark); }
.nt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nt-title { font-weight: 500; line-height: 1.35; color: var(--text); }
.notif.unread .nt-title { font-weight: 650; color: var(--ink); }
.nt-body { font-size: .9rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.udot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.empty-state { text-align: center; padding: 44px 16px 36px; }
.empty-state .ni.big { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: inline-grid; place-items: center; margin-bottom: 8px; }
.empty-state p { margin: 4px 0; }
@media (max-width: 640px) {
  .notif-box { padding: 4px 14px 10px; }
  .notif-row { gap: 12px; padding: 14px 10px; margin: 0 -10px; width: calc(100% + 20px); }
  .notif .ni { flex-basis: 36px; width: 36px; height: 36px; }
  .nw { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
}

/* ---- Analytics: single-listing detail */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-dark); text-decoration: none; font-weight: 500; margin-bottom: 4px; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { text-decoration: underline; }
.an-listing { display: flex; gap: 18px; align-items: center; padding: 16px 18px; }
.an-thumb { width: 132px; height: 88px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.an-thumb.noph { display: grid; place-items: center; }
.an-main { flex: 1; min-width: 0; }
.an-title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.an-meta { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.an-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.an-actions svg { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .an-listing { flex-wrap: wrap; align-items: flex-start; }
  .an-thumb { width: 96px; height: 64px; }
  .an-actions { width: 100%; }
}

/* ---- Themed alert dialog (replaces red error banners) */
dialog.modal.kh-alert { width: min(440px, calc(100vw - 32px)); }
.kh-alert .modal-body { padding: 26px 24px 20px; text-align: center; }
.kh-alert .ka-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--warn-soft); color: var(--warn); margin-bottom: 10px; }
.kh-alert.ok .ka-icon { background: var(--teal-soft); color: var(--teal-dark); }
.kh-alert .ka-icon svg { width: 26px; height: 26px; }
.kh-alert h3 { justify-content: center; margin: 0 0 8px; font-size: 1.2rem; }
.kh-alert .ka-msg { margin: 0; color: var(--text); line-height: 1.5; }
.kh-alert ul.ka-msg { text-align: left; padding-left: 20px; margin: 6px 0 0; }
.kh-alert ul.ka-msg li + li { margin-top: 6px; }
.kh-alert .modal-actions { justify-content: center; margin-top: 20px; }
.kh-alert .modal-actions .btn { min-width: 120px; }
.kh-alert.ask .ka-icon { background: var(--teal-soft); color: var(--teal-dark); }
.kh-alert.danger .ka-icon { background: var(--err-soft); color: var(--err); }
.kh-alert .modal-actions { gap: 10px; flex-wrap: wrap; }
.kh-alert .btn.solid-danger { background: var(--err); border-color: var(--err); color: #fff; }
.kh-alert .btn.solid-danger:hover { background: #8f1c13; border-color: #8f1c13; }
@media (max-width: 420px) { .kh-alert .modal-actions { flex-direction: column-reverse; } .kh-alert .modal-actions .btn { width: 100%; } }
.is-popped { display: none !important; }

/* Social promotion (admin queue + seller box) */
.sp-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 14px; background: #fff; }
.sp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.sp-head img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.sp-ch { margin: 10px 0 0; }
.sp-ch .check { margin-bottom: 6px; }
.sp-ch textarea { width: 100%; font-size: .88rem; line-height: 1.45; }
.sp-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sp-status { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.sp-status li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
