/* ShadowMRU.online. Look: a classic navy marketplace, dense like the big shopping apps.
   Navy is the main colour: the header, main buttons, links and the active tab.
   Red is used only a little: the buy buttons, counts on icons, promoted tags and price drops.
   Gold appears only on rating stars and the Pro badge. Prices are near-black and bold.
   Type: Lora (a classic serif) for the name and page titles, Source Sans 3 for everything else. */
:root {
  /* light is the default; dark is a choice in My account */
  --night: #eef1f6;      /* page */
  --stall: #ffffff;      /* surfaces, cards */
  --awning: #edf0f6;     /* soft fills on white: photo places, hover */
  --rope: #dde3ed;       /* lines */
  --line2: #cdd5e2;      /* edges of buttons and boxes you type in */
  --ink: #101a2e;        /* text and prices */
  --ink2: #3b465c;       /* secondary text */
  --ink3: #626c82;       /* muted text */
  --brand: #142f6b;      /* navy: main buttons, active tab */
  --brand-ink: #ffffff;
  --brand-deep: #0d2352;
  --brand-soft: rgba(20, 47, 107, .09);
  --top-bg: #0c2150; --top-ink: #ffffff;
  --accent: #d62839;     /* red: buy buttons, counts, promoted */
  --accent-deep: #b21e30; --accent-ink: #ffffff; --accent-text: #c62435;
  --gold: #e8a317;       /* rating stars and the Pro badge */
  --red: #d62839;        /* alerts */
  --green: #0b7a4b;      /* trust, open, online, free */
  --green-soft: rgba(11, 122, 75, .11); --red-soft: rgba(214, 40, 57, .1);
  --tick: #2f8fe0;       /* read ticks in chat */
  --sky: #1d4ca8;        /* links */
  --chart: #142f6b;      /* the one chart colour (checked for contrast on this surface) */
  --focus: #1d4ca8;
  --bubble-me: #dce7fb;
  --busy-bg: rgba(214, 110, 0, .13); --busy-ink: #8a4300;
  --wait-bg: rgba(232, 163, 23, .18); --wait-ink: #7a5200;
  --tint: rgba(60, 80, 120, .1);
  --sea: #d4e3f5; --land: #f7f6ee; --land-edge: #c6c2a6;
  --tab-on: #142f6b; --tab-on-bg: rgba(20, 47, 107, .1); --warn-ic: #9a6400;
  --drv: #1d4ed8;        /* the driver on the live map */
  --shadow: 0 6px 20px rgba(16, 26, 46, .14);
  --f-display: 'Lora', Georgia, 'Times New Roman', serif;
  --f-body: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-s: 5px; --r-m: 8px; --r-l: 10px;
  --top-h: 52px; --nav-h: 56px;
  color-scheme: light;
}
:root[data-sm-theme="dark"] {
  --night: #0a1020; --stall: #121a2c; --awning: #1a2438; --rope: #263149; --line2: #34415e;
  --ink: #e8edf7; --ink2: #b7c0d3; --ink3: #8a94aa;
  --brand: #3f69d0; --brand-ink: #ffffff; --brand-deep: #3159ba; --brand-soft: rgba(110, 150, 255, .16);
  --top-bg: #0b1a3d; --top-ink: #ffffff;
  --accent: #d33047; --accent-deep: #bd2a3f; --accent-ink: #ffffff; --accent-text: #ff6b7d;
  --gold: #f2b632;
  --red: #ff5f72; --green: #2bc48a; --sky: #8fb0ff; --chart: #7aa0ff; --focus: #8fb0ff;
  --green-soft: rgba(43, 196, 138, .15); --red-soft: rgba(255, 95, 114, .15); --tick: #6cc4ff;
  --bubble-me: #1c3360;
  --busy-bg: rgba(255, 160, 60, .16); --busy-ink: #ffb35c;
  --wait-bg: rgba(242, 182, 50, .18); --wait-ink: #f2c45a;
  --tint: rgba(170, 190, 230, .1);
  --sea: #0e1a3e; --land: #1d2436; --land-edge: #3c4660;
  --tab-on: #9cb8ff; --tab-on-bg: rgba(110, 150, 255, .18); --warn-ic: #f2b632; --drv: #7fb2ff;
  --shadow: 0 6px 22px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body { background: var(--night); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-body); font-weight: 700; line-height: 1.2; text-wrap: balance; letter-spacing: 0; }
h1, .h1 { font-family: var(--f-display); letter-spacing: -.005em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic--s { width: 15px; height: 15px; }
.ic--l { width: 26px; height: 26px; }
.ic--fill { fill: currentColor; stroke: none; }

/* ── shell ── */
.top { position: sticky; top: 0; z-index: 30; background: var(--top-bg); color: var(--top-ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.top :focus-visible { outline-color: #fff; }
.top__in { max-width: 1200px; margin: 0 auto; padding: 0 10px; min-height: var(--top-h); display: flex; align-items: center; gap: 6px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--top-ink); font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.005em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__tld { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: .02em; color: #fff; background: var(--accent); padding: 1px 5px 2px; border-radius: 4px; margin-left: 4px; vertical-align: 3px; display: inline-block; line-height: 1.2; }
.top__back { margin-left: -6px; }
.top__title { font-family: var(--f-body); font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.top__grow { flex: 1; min-width: 0; }
.top__links { display: none; gap: 2px; }
.top__links a { color: rgba(255, 255, 255, .85); padding: 7px 10px; border-radius: var(--r-s); font-weight: 600; font-size: 14px; }
.top__links a.on, .top__links a:hover { color: #fff; background: rgba(255, 255, 255, .14); text-decoration: none; }
.iconbtn { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 50%; color: var(--ink); flex: none; }
.iconbtn:hover { background: var(--awning); text-decoration: none; }
.top .iconbtn { color: var(--top-ink); }
/* the language button in the header: the globe and the code of the language in use */
.langbtn { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 8px 0 6px; margin: 0 2px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 14px; background: transparent; color: var(--top-ink); font: 600 12px/1 var(--f-body); letter-spacing: .03em; flex: none; cursor: pointer; }
.langbtn:hover { background: rgba(255, 255, 255, .14); }
.langcode { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 24px; border-radius: 12px; background: var(--awning); font: 700 12px/1 var(--f-body); flex: none; }
.foot a .ic { vertical-align: -3px; margin-right: 3px; }
.top .iconbtn:hover { background: rgba(255, 255, 255, .14); }
.top .dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--top-bg); }
.top .btn--pri { background: #fff; border-color: #fff; color: var(--top-bg); }
.top .btn--pri:hover { background: #fff; border-color: #fff; filter: brightness(.95); }
.dot { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; display: none; background: linear-gradient(90deg, var(--accent) 0 30%, #fff 30% 50%, var(--brand) 50% 100%); background-size: 200% 100%; animation: bands 1s linear infinite; }
.loading .loadbar { display: block; }
@keyframes bands { to { background-position: -200% 0; } }

main { display: block; max-width: 1200px; margin: 0 auto; padding: 10px 8px calc(var(--nav-h) + 22px); min-height: 420px; }
.narrow { max-width: 680px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack--s { gap: 6px; }
.stack--l { gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink3); }
.soft { color: var(--ink2); }
.good { color: var(--green); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.h1 { font-size: 22px; font-weight: 700; }
.h2 { font-size: 17px; }
.h3 { font-size: 15px; font-family: var(--f-body); font-weight: 700; }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.sec h2 { font-size: 16px; }
.sec a { font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--stall); border-top: 1px solid var(--rope); display: flex; justify-content: space-around; align-items: stretch; height: var(--nav-h); padding: 0 2px env(safe-area-inset-bottom); box-shadow: 0 -1px 6px rgba(16, 26, 46, .05); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink3); font-size: 10.5px; font-weight: 600; position: relative; min-width: 0; }
.nav a:hover { text-decoration: none; }
.nav a.on { color: var(--brand); font-weight: 700; }
.nav__ic { display: flex; align-items: center; justify-content: center; width: 48px; height: 28px; border-radius: 14px; }
.nav a.on .nav__ic { background: var(--tab-on-bg); color: var(--tab-on); }
.nav a.on .nav__ic .ic { stroke-width: 2.3; }
.nav a.nav__sell.on .plus { box-shadow: 0 0 0 2px var(--stall), 0 0 0 4px var(--brand); }
.nav .dot { top: 4px; right: calc(50% - 22px); }
.nav__sell span.plus { width: 42px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; }
.nav a.nav__sell { color: var(--ink2); }
body.fullview .nav, body.fullview .top { display: none; }
body.fullview main { padding: 0; max-width: none; }

/* ── buttons and inputs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: var(--r-m); border: 1px solid var(--line2); background: var(--stall); color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.2; text-align: center; }
.btn:hover { text-decoration: none; border-color: var(--ink3); }
.btn--pri { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--pri:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
/* red: only the buttons that order (Order now, See my order, Send my order) */
.btn--buy { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--buy:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--line { background: transparent; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--sky); padding-left: 8px; padding-right: 8px; }
.btn--danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn--green { background: var(--green); border-color: var(--green); color: #fff; }
:root[data-sm-theme="dark"] .btn--green { color: #04261a; }
.btn--sm { min-height: 34px; padding: 4px 10px; font-size: 13px; border-radius: 6px; white-space: nowrap; gap: 5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--icon.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label, .label { font-weight: 600; font-size: 13.5px; }
.hint { font-size: 12.5px; color: var(--ink3); }
.inp { width: 100%; min-height: 42px; padding: 8px 11px; border-radius: var(--r-m); border: 1px solid var(--line2); background: var(--stall); color: var(--ink); font-size: 16px; }
.inp::placeholder { color: var(--ink3); }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.4; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px; background-size: 6px 6px; background-repeat: no-repeat; }
.inp--rs { padding-left: 44px; font-weight: 700; font-size: 20px; }
.rsbox { position: relative; }
.rsbox::before { content: 'Rs.'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 16px; color: var(--ink3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--rope); border-radius: var(--r-m); background: var(--stall); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px; border-radius: 17px; border: 1px solid var(--line2); background: var(--stall); font-weight: 500; font-size: 13.5px; color: var(--ink2); }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 11px; border-radius: 16px; border: 1px solid var(--line2); background: var(--stall); color: var(--ink2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: var(--ink3); }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip--x { padding-right: 8px; }
.chip--btn { cursor: pointer; font: inherit; font-size: 13px; }
.chip--btn .ic { margin-right: 2px; }
.chip--ava { padding-left: 5px; }
.chip--ava .ava { box-shadow: 0 0 0 2px var(--stall); }
.err { color: var(--red); font-size: 13.5px; font-weight: 600; }
.panel { background: var(--stall); border: 1px solid var(--rope); border-radius: var(--r-l); padding: 12px; }
.panel--flat { border-radius: var(--r-m); }
.note { background: var(--stall); border: 1px solid var(--rope); border-radius: var(--r-m); padding: 9px 11px; font-size: 13.5px; color: var(--ink2); display: flex; gap: 8px; align-items: flex-start; }
.note > .ic:first-child { color: var(--ink3); margin-top: 1px; }
.note--warn > .ic:first-child { color: var(--warn-ic); }
.note--bad > .ic:first-child { color: var(--red); }
.note--good > .ic:first-child { color: var(--green); }
a.note { color: var(--ink2); }
a.note:hover { text-decoration: none; border-color: var(--ink3); }
.hr { height: 1px; background: var(--rope); border: 0; margin: 4px 0; }

/* ── prices ── */
/* a small "Rs." and a bold number in plain ink: the price is the second thing people read, after the photo */
.price { display: inline-block; font-family: var(--f-body); font-weight: 700; font-size: 17px; line-height: 1.1; color: var(--ink); letter-spacing: -.005em; white-space: nowrap; font-variant-numeric: lining-nums; }
.price__cur { font-size: .62em; font-weight: 700; letter-spacing: 0; margin-right: .08em; }
.price__unit { font-size: .62em; font-weight: 500; letter-spacing: 0; color: var(--ink3); margin-left: .15em; }
.price--word { font-size: 15px; letter-spacing: 0; }
.price--ask { color: var(--ink2); }
.price--s { font-size: 14.5px; }
.price--m { font-size: 19px; }
.price--l { font-size: 21px; }
.price--xl { font-size: 23px; }
.price--xxl { font-size: 27px; }
.price--word.price--s { font-size: 13.5px; }
.price--word.price--l, .price--word.price--xl, .price--word.price--xxl { font-size: 19px; }
.prow { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; min-width: 0; }
.card__body .prow { margin-top: 1px; }
.card__meta .stars { font-size: 11.5px; gap: 2px; vertical-align: -1px; }
.card__meta .stars .ic { width: 12px; height: 12px; }
.prow__was { color: var(--ink3); font-size: 12px; font-weight: 400; white-space: nowrap; }
.prow__off { color: var(--accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.prow--xl .prow__was, .prow--xxl .prow__was, .prow--xl .prow__off, .prow--xxl .prow__off { font-size: 14px; }
.drop { color: var(--green); font-weight: 600; font-size: 12.5px; }

/* ── listing cards: white tiles with a square photo, like the big shopping apps ── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; grid-auto-flow: dense; }
.card { display: flex; flex-direction: column; color: var(--ink); min-width: 0; position: relative; background: var(--stall); border-radius: var(--r-m); overflow: hidden; }
.card:hover { text-decoration: none; }
@media (hover: hover) { a.card:hover, .card--hideable:hover, .spot__item:hover { box-shadow: var(--shadow); } }
.card__img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--awning); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink3); }
.card__flags { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; gap: 4px; flex-wrap: wrap; pointer-events: none; }
.flag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 4px; background: rgba(9, 18, 42, .78); color: #fff; }
.flag .ic--s { width: 12px; height: 12px; }
.flag--promo { background: #fff; color: var(--accent-deep); }
.flag--state { background: #fff; color: #101a2e; }
.flag--order { background: var(--brand); color: #fff; }
.card__body { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card__title { font-weight: 400; font-size: 13.5px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card__meta { color: var(--ink3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card--l { grid-column: span 2; grid-row: span 2; }
.card--l .card__body { padding: 8px 10px 10px; gap: 3px; }
.card--l .card__title { font-size: 16px; font-weight: 600; line-height: 1.25; }
.card--m { grid-column: span 2; flex-direction: row; }
.card--m .card__img { width: 40%; flex: none; aspect-ratio: 1 / 1; }
.card--m .card__body { padding: 8px 10px; justify-content: center; gap: 3px; }
.card--m .card__title { font-size: 15px; font-weight: 600; line-height: 1.25; -webkit-line-clamp: 3; }
.card--row { flex-direction: row; gap: 10px; align-items: center; background: transparent; border-radius: 0; overflow: visible; }
.card--row .card__img { width: 76px; flex: none; border-radius: 6px; }
.card--row .card__body { padding: 0; }
.card__link { display: flex; flex-direction: inherit; gap: inherit; flex: 1 1 auto; min-width: 0; color: inherit; }
.card__link:hover { text-decoration: none; }
.card--hideable { transition: opacity .18s ease, transform .18s ease; }
.card--hideable .card__flags { right: 40px; }
.card__x { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: rgba(9, 18, 42, .6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.card__x:hover { background: rgba(9, 18, 42, .85); }
.card--m.card--hideable .card__x { top: 6px; right: 6px; background: var(--awning); color: var(--ink2); }
.card--m.card--hideable .card__body { padding-right: 38px; }
.is-going { opacity: 0; transform: scale(.97); }

/* the spotlight: big photos you swipe through at the top of the home page */
.spot { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -8px; padding: 0 8px 2px; scrollbar-width: none; }
.spot::-webkit-scrollbar { display: none; }
.spot__item { position: relative; flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--r-l); overflow: hidden; background: var(--stall); color: var(--ink); display: flex; flex-direction: column; transition: opacity .18s ease, transform .18s ease; }
.spot__item:only-child { flex-basis: 100%; }
.spot__link { display: flex; flex-direction: column; flex: 1 1 auto; color: var(--ink); }
.spot__link:hover { text-decoration: none; }
.spot__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--awning); }
.spot__img img { width: 100%; height: 100%; object-fit: cover; }
.spot__img .flag { position: absolute; top: 8px; left: 8px; }
.spot__text { padding: 8px 11px 11px; display: flex; flex-direction: column; gap: 3px; }
.spot__title { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot__meta { font-size: 12px; color: var(--ink3); }
.spot__x { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px 0 8px; border: 0; border-radius: 15px; background: rgba(9, 18, 42, .66); color: #fff; font: 600 12.5px/1 var(--f-body); cursor: pointer; }
.spot__x:hover { background: rgba(9, 18, 42, .85); }

/* the navy band under the header with the search box (home and search pages) */
.band { position: relative; z-index: 5; margin-top: -10px; padding: 0 0 10px; }
.band::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--top-bg); }
.band .inp { border-color: transparent; }
.band .inp:focus { border-color: transparent; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.rail { display: flex; gap: 8px; overflow-x: auto; margin: 0 -8px; padding: 2px 8px 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.hometop { gap: 10px; }
.rail--cats { gap: 2px; padding: 0 8px; }
.cat { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink2); font-size: 11.5px; font-weight: 500; text-align: center; line-height: 1.15; }
.cat:hover { text-decoration: none; color: var(--ink); }
.cat__ic { width: 46px; height: 46px; border-radius: 50%; background: var(--stall); display: flex; align-items: center; justify-content: center; color: var(--tab-on); }
.cat__ic .ic--l { width: 23px; height: 23px; }
.cat.on .cat__ic { background: var(--brand); color: var(--brand-ink); }
.cat__ic--open { background: var(--green-soft); color: var(--green); }
.notice { flex: none; width: 236px; background: var(--stall); border-radius: var(--r-m); padding: 10px 11px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.notice:hover { text-decoration: none; box-shadow: var(--shadow); }
.notice__t { font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.notice__b { font-size: 12.5px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.searchbar { display: flex; gap: 8px; align-items: center; position: relative; }
.searchbar .inp { min-height: 40px; padding-left: 40px; border-radius: 20px; }
.searchbar .inp::placeholder { font-size: 14.5px; }
.searchbar__ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink3); pointer-events: none; }
.sugg { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--stall); border: 1px solid var(--rope); border-radius: var(--r-m); box-shadow: var(--shadow); z-index: 20; overflow: hidden; }
.sugg button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--rope); font-size: 14.5px; }
.sugg button:last-child { border-bottom: 0; }
.sugg button:hover { background: var(--awning); }
.filters { display: flex; gap: 6px; overflow-x: auto; margin: 0 -8px; padding: 0 8px 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

/* ── people ── */
.ava { width: 38px; height: 38px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 16px; color: #fff; background: #1e3a8a; overflow: hidden; position: relative; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava--s { width: 28px; height: 28px; font-size: 12.5px; }
.ava--l { width: 64px; height: 64px; font-size: 26px; }
.ava--xs { width: 24px; height: 24px; font-size: 11px; }
.avaw { position: relative; display: inline-flex; flex: none; }
.ava__on { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--stall); }
.lvl { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 4px; background: var(--awning); color: var(--ink2); white-space: nowrap; }
.lvl b { font-size: 12px; }
.lvl--3 { color: var(--sky); }
.lvl--4, .lvl--5 { background: var(--green-soft); color: var(--green); }
.lvl--6, .lvl--7 { background: var(--brand); color: #fff; }
.lvl--6 .ic, .lvl--7 .ic { color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 4px; white-space: nowrap; background: var(--awning); color: var(--ink2); }
.badge--pro { background: var(--brand); color: #fff; }
.badge--pro .ic { color: var(--gold); }
.badge--ok { background: transparent; color: var(--green); padding-left: 0; padding-right: 0; }
.stars { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.stars .ic { color: var(--gold); fill: var(--gold); }
.starpick { display: flex; gap: 6px; }
.starpick button { background: transparent; border: 0; padding: 2px; color: var(--line2); }
.starpick button.on { color: var(--gold); }
.ucard { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.ucard:hover { text-decoration: none; }
.uname { font-weight: 600; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.meter { height: 6px; border-radius: 3px; background: var(--awning); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.meter--hot i { background: var(--warn-ic); }

/* ── listing page ── */
.gal { position: relative; margin: -10px -8px 0; background: var(--stall); }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track > * { position: relative; overflow: hidden; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; max-height: 62vh; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; background: var(--awning); }
/* each photo sits on a soft, blurred copy of itself, so tall and wide photos both fill the frame */
.gal__track > *::before { content: ''; position: absolute; inset: -40px; background: var(--bg, none) center / cover no-repeat; filter: blur(24px) brightness(.82) saturate(1.1); }
.gal__track img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gal__count { position: absolute; right: 10px; bottom: 10px; background: rgba(9, 18, 42, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.gal__ph { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--ink3); }
.lp__title { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
/* how the buyer gets it and pays, under the price (no amounts before the checkout) */
.lpinfo { display: flex; flex-direction: column; gap: 6px; }
.lpinfo__row { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.lpinfo__row > .ic { color: var(--ink3); margin-top: 1px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 0; border: 1px solid var(--rope); border-radius: var(--r-m); overflow: hidden; background: var(--stall); }
.specs dt, .specs dd { margin: 0; padding: 8px 11px; border-bottom: 1px solid var(--rope); font-size: 13.5px; }
.specs dt { color: var(--ink3); }
.specs dd { font-weight: 500; overflow-wrap: anywhere; }
.specs dt:nth-last-child(2), .specs dd:last-child { border-bottom: 0; }
.actbar { position: fixed; left: 0; right: 0; bottom: var(--nav-h); z-index: 25; background: var(--stall); border-top: 1px solid var(--rope); padding: 7px 8px; display: flex; gap: 6px; }
.actbar .btn { flex: 1; padding: 8px 8px; font-size: 14.5px; white-space: nowrap; gap: 6px; }
.actbar .btn--pri, .actbar .btn--buy { flex: 1.35; }
.actbar .btn--icon { flex: none; width: 42px; padding: 0; }
.has-actbar { padding-bottom: 60px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4, 8, 20, .96); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .iconbtn { position: absolute; top: 10px; right: 10px; color: #fff; background: rgba(255, 255, 255, .14); }
.lp__rest { margin-top: 18px; }
.lp .lockbox { margin-top: 4px; }

/* ── lists, tabs, sheets, toasts ── */
.list { display: flex; flex-direction: column; border: 1px solid var(--rope); border-radius: var(--r-l); overflow: hidden; background: var(--stall); }
.li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--rope); color: var(--ink); background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; min-width: 0; }
.li:last-child { border-bottom: 0; }
a.li:hover, button.li:hover { background: var(--awning); text-decoration: none; }
.li__t { font-weight: 600; }
.li--unread { background: var(--brand-soft); }
.li--multi { flex-wrap: wrap; }
.li--multi > .row:last-child { margin-left: auto; }
.li__link { min-width: 0; color: inherit; }
.li__link:hover { text-decoration: none; }
.li__link:hover .li__t { text-decoration: underline; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 2px 8px 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 5px 13px; color: var(--ink2); font-weight: 600; font-size: 13.5px; border: 1px solid var(--line2); border-radius: 17px; background: var(--stall); white-space: nowrap; position: relative; }
.tab:hover { color: var(--ink); text-decoration: none; border-color: var(--ink3); }
.tab.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tab .dot { position: static; display: inline-block; margin-left: 5px; vertical-align: 1px; }
.tab__n { margin-left: 6px; font-weight: 700; opacity: .75; }
.tab.on .tab__n { opacity: 1; }
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 24, .6); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet { width: 100%; max-width: 560px; max-height: 92%; background: var(--night); border: 1px solid var(--rope); border-bottom: 0; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; animation: rise .2s ease-out; box-shadow: var(--shadow); }
.sheet__head { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 14px; border-bottom: 1px solid var(--rope); background: var(--stall); border-radius: 14px 14px 0 0; }
.sheet__head h2 { font-size: 17px; flex: 1; }
.sheet__body { padding: 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@keyframes rise { from { transform: translateY(24px); opacity: .5; } }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #101a2e; color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: 14px; box-shadow: var(--shadow); max-width: 480px; animation: rise .2s ease-out; }
:root[data-sm-theme="dark"] .toast { background: #e8edf7; color: #101a2e; }
.toast--err, :root[data-sm-theme="dark"] .toast--err { background: var(--red); color: #fff; }
.toast--act { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.toast__btn { border: 0; background: none; color: inherit; font: 700 14px/1 var(--f-body); padding: 8px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.empty { text-align: center; padding: 28px 14px; color: var(--ink3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h1, .empty h2, .empty h3 { color: var(--ink); }
.empty h3 { font-size: 17px; }
.skel { border-radius: var(--r-m); background: var(--stall); min-height: 120px; }

/* ── chat ── */
.chatlist .li { padding: 10px 12px; }
.chat { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--night); }
.chat__head { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 2px; background: var(--stall); border-bottom: 1px solid var(--rope); min-height: 54px; }
.chat__body { flex: 1; overflow-y: auto; padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 3px; background-color: var(--night); background-image: radial-gradient(var(--rope) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-overflow-scrolling: touch; }
.day { align-self: center; background: var(--stall); color: var(--ink2); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 10px; margin: 8px 0 4px; }
.sysline { align-self: center; background: var(--stall); color: var(--ink2); font-size: 12.5px; padding: 5px 11px; border-radius: 10px; margin: 5px 0; text-align: center; max-width: 88%; }
.msg { display: flex; max-width: 84%; align-self: flex-start; }
.msg--me { align-self: flex-end; }
.msg--gap { margin-top: 6px; }
.bub { position: relative; background: var(--stall); border: 1px solid var(--rope); border-radius: 4px 14px 14px 14px; padding: 6px 9px 5px; min-width: 76px; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; cursor: pointer; }
.msg--me .bub { background: var(--bubble-me); border-color: transparent; border-radius: 14px 4px 14px 14px; }
.bub__text { white-space: pre-wrap; }
.bub__meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 5px 0 -1px 10px; font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.msg--me .bub__meta { color: var(--ink2); }
.ticks { width: 17px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ticks--read { color: var(--tick); }
.bub--img { padding: 3px; }
.bub--img img { border-radius: 11px; max-height: 300px; min-width: 150px; object-fit: cover; }
.bub--img .bub__meta { position: absolute; right: 9px; bottom: 7px; background: rgba(9, 18, 42, .6); color: #fff; padding: 2px 6px; border-radius: 9px; margin: 0; }
.bub--gone { color: var(--ink3); font-style: italic; }
.quote { background: var(--tint); border-radius: 6px; padding: 4px 8px; margin-bottom: 4px; font-size: 13px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard { display: flex; gap: 8px; align-items: center; background: var(--tint); border-radius: 8px; padding: 6px; margin-bottom: 5px; color: var(--ink); min-width: 190px; }
.lcard:hover { text-decoration: none; }
.lcard__img { width: 46px; height: 46px; border-radius: 6px; overflow: hidden; flex: none; background: var(--awning); }
.lcard__img img { width: 100%; height: 100%; object-fit: cover; }
.lcard__img .lockph { font-size: 0; }
.offer { min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.offer__amt { font-weight: 700; font-size: 22px; line-height: 1; font-variant-numeric: lining-nums; }
.offer__st { font-size: 12.5px; font-weight: 600; }
.offer__st--accepted { color: var(--green); }
.offer__st--declined, .offer__st--withdrawn { color: var(--red); }
.typing { align-self: flex-start; color: var(--ink3); font-size: 12.5px; font-style: italic; padding: 2px 6px; }
.composer { background: var(--stall); border-top: 1px solid var(--rope); padding: 6px 8px; display: flex; flex-direction: column; gap: 6px; }
.composer__row { display: flex; align-items: flex-end; gap: 6px; }
.composer textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; border-radius: 21px; padding: 9px 14px; border: 1px solid var(--line2); background: var(--awning); font-size: 16px; line-height: 1.3; }
.composer textarea:focus { outline: none; border-color: var(--brand); }
.send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.qr { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.qr::-webkit-scrollbar { display: none; }
.replybar { display: flex; align-items: center; gap: 8px; background: var(--awning); border-radius: 6px; padding: 5px 8px; font-size: 13px; color: var(--ink2); }
.chatnote { align-self: center; display: flex; align-items: center; gap: 6px; margin: 4px auto 8px; padding: 4px 10px; border-radius: 999px; background: var(--stall); color: var(--ink3); font-size: 12px; text-align: center; }
.chatclose { align-self: stretch; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--rope); border-radius: var(--r-m); background: var(--stall); font-size: 13px; color: var(--ink2); }
/* swap offers in chat: what each person gives */
.swap__lbl { display: block; font-size: 12px; font-weight: 700; color: var(--ink2); margin: 2px 0 4px; }
.swap__plus { display: block; font-size: 13px; margin: 2px 0 6px; }
.swappick { max-height: 46vh; overflow-y: auto; }
.swapopt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--rope); border-radius: var(--r-m); cursor: pointer; background: var(--stall); }
.swapopt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.swapopt input { flex: none; accent-color: var(--brand); }
.swapopt .lcard { flex: 1; pointer-events: none; }

/* ── requests, comments ── */
.req { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; border: 1px solid var(--rope); border-radius: var(--r-l); background: var(--stall); color: var(--ink); }
.req:hover { text-decoration: none; border-color: var(--ink3); }
.req__t { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.reply { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rope); }
.reply:last-child { border-bottom: 0; }
.reply--child { margin-left: 34px; }
.reply__acts { display: flex; gap: 4px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.likebtn { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px; border-radius: 16px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font-size: 13px; font-weight: 600; }
.likebtn.on { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.linkbtn { background: transparent; border: 0; padding: 6px 8px; color: var(--ink3); font-size: 13px; font-weight: 500; }
.linkbtn:hover { color: var(--ink); }

/* ── photo uploader ── */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shot { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-m); overflow: hidden; background: var(--awning); border: 1px solid var(--rope); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(9, 18, 42, .78); color: #fff; display: flex; align-items: center; justify-content: center; }
.shot__tag { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(9, 18, 42, .8); color: #fff; font-size: 11px; padding: 3px 5px; text-align: center; font-variant-numeric: tabular-nums; }
.shot__cover { position: absolute; top: 4px; left: 4px; }
.shot--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-style: dashed; border-color: var(--line2); color: var(--ink2); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; padding: 4px; background: var(--stall); }
.shot--busy::after { content: ''; position: absolute; inset: 0; background: rgba(9, 18, 42, .55); }

/* ── money and owner screens ── */
.pack { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--rope); border-radius: var(--r-l); background: var(--stall); cursor: pointer; }
.pack input { position: absolute; opacity: 0; }
.pack:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pack__size { flex: none; width: 50px; height: 40px; border-radius: 6px; background: var(--awning); display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; padding: 4px; }
.pack__size i { background: var(--rope); border-radius: 1px; }
.pack__size i.hot { background: var(--accent); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--stall); border: 1px solid var(--rope); border-radius: var(--r-l); padding: 10px 11px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; }
a.kpi:hover { text-decoration: none; border-color: var(--ink3); }
.kpi__v { font-weight: 700; font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi__l { color: var(--ink3); font-size: 12.5px; }
.kpi--todo .kpi__v::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 7px; vertical-align: 6px; }
.chart { position: relative; }
.chart__plot { position: relative; height: 150px; margin-left: 46px; margin-top: 10px; }
.chart__line { position: absolute; left: 0; right: 0; height: 1px; background: var(--rope); }
.chart__tick { position: absolute; left: -46px; width: 40px; text-align: right; font-size: 11px; line-height: 1; color: var(--ink3); transform: translateY(50%); font-variant-numeric: tabular-nums; }
.chart__cols { position: absolute; inset: 0; display: flex; align-items: flex-end; touch-action: pan-y; }
.chart__col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; }
.chart__col i { display: block; width: 100%; max-width: 24px; background: var(--chart); border-radius: 4px 4px 0 0; }
.chart__col.on i { filter: brightness(1.3); }
.chart__col.on { background: var(--tint); }
.chart__tip { position: absolute; top: -4px; transform: translate(-50%, -100%); background: #101a2e; color: #fff; padding: 5px 9px; border-radius: 7px; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.chart__x { display: flex; justify-content: space-between; margin-left: 46px; margin-top: 6px; font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.tblwrap { overflow-x: auto; border: 1px solid var(--rope); border-radius: var(--r-m); background: var(--stall); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rope); vertical-align: top; }
.tbl th { color: var(--ink3); font-weight: 600; font-size: 12px; background: var(--awning); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; }
.state { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 3px 6px; border-radius: 4px; background: var(--awning); color: var(--ink2); white-space: nowrap; }
.state .ic--s { width: 13px; height: 13px; }
.state--wrap { white-space: normal; display: block; line-height: 1.4; }
.state--pending, .state--placed, .state--claimed { background: var(--wait-bg); color: var(--wait-ink); }
.state--approved, .state--active, .state--open, .state--ok, .state--delivered, .state--paid { background: var(--green-soft); color: var(--green); }
.state--rejected, .state--banned, .state--removed, .state--hidden, .state--cancelled, .state--declined, .state--owed { background: var(--red-soft); color: var(--red); }
.state--accepted, .state--preparing, .state--ready, .state--out { background: var(--busy-bg); color: var(--busy-ink); }
/* the preview bar (only in the preview: choose who you are) */
.prev { background: #070f24; color: #dfe6f5; font-size: 12.5px; font-weight: 500; }
.prev__in { max-width: 1180px; margin: 0 auto; padding: 5px 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prev select { background: #24345c; color: #fff; border: 0; border-radius: 6px; padding: 4px 8px; font-size: 13px; font-weight: 600; max-width: 100%; min-width: 0; }
.prev__as { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.prev__as > span { white-space: nowrap; }
.prev a { color: #a9c1ff; }
.prose { display: flex; flex-direction: column; gap: 10px; max-width: 66ch; }
.prose h2 { font-size: 18px; margin-top: 6px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.prose p, .prose li { color: var(--ink2); }
.foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rope); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
.foot a { color: var(--ink3); }
.foot a .ic { vertical-align: -3px; margin-right: 3px; }

.only-d { display: none !important; }
.peek { position: fixed; inset: 0; z-index: 70; background: rgba(5, 10, 24, .6); display: flex; align-items: flex-end; justify-content: center; }

/* ── price details, locks, shops, orders ── */
.pricebox { display: flex; flex-direction: column; gap: 2px; }
.pricebox .muted { font-weight: 400; }
.pline { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; color: var(--ink2); }
.pline b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pline--sub { border-top: 1px solid var(--rope); margin-top: 4px; padding-top: 7px; }
.pline--total { font-size: 16px; color: var(--ink); font-weight: 600; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 7px; }
.pline--total b { font-size: 21px; font-weight: 700; }
.pline--opt { color: var(--ink3); font-style: italic; }
.lockbox { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; padding: 22px 14px; background: var(--stall); border-radius: var(--r-l); border: 1px dashed var(--line2); }
.lockbox .ic { width: 36px; height: 36px; }
.lockph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink3); background: repeating-linear-gradient(135deg, var(--awning) 0 10px, var(--stall) 10px 20px); font-size: 12px; font-weight: 600; }
.open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); flex: none; }
.open--yes { color: var(--green); }
.open--yes::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.open--no { color: var(--red); }
.open--no::before { background: var(--red); }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 5px 4px; border-bottom: 1px solid var(--rope); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 700; color: var(--ink); }
.shopcard { display: flex; gap: 10px; align-items: center; padding: 10px 11px; background: var(--stall); border: 1px solid var(--rope); border-radius: var(--r-l); color: var(--ink); }
.shopcard:hover { text-decoration: none; border-color: var(--ink3); }
.shopcard .ava { border-radius: 10px; }
.shopsrail .shopcard { flex: none; width: 240px; }
.shopgrid { display: flex; flex-direction: column; gap: 8px; }
/* the order progress */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 24px 1fr; gap: 10px; position: relative; padding-bottom: 12px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 11px; top: 20px; bottom: -2px; width: 2px; background: var(--rope); }
.step:last-child::before { display: none; }
.step__dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); background: var(--stall); display: flex; align-items: center; justify-content: center; color: transparent; z-index: 1; }
.step--done .step__dot { background: var(--green); border-color: var(--green); color: #fff; }
.step--done::before { background: var(--green); }
.step--now .step__dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.step--stop .step__dot { background: var(--red); border-color: var(--red); color: #fff; }
.step__t { font-weight: 600; line-height: 24px; }
.step--todo .step__t { color: var(--ink3); font-weight: 500; }
/* the live delivery map */
.map { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--sea); border: 1px solid var(--rope); }
.map svg { width: 100%; height: auto; max-height: 380px; }
.map__land { fill: var(--land); stroke: var(--land-edge); stroke-width: 1.2; }
.map__town { fill: var(--ink3); }
.map__label { fill: var(--ink2); font: 600 9px var(--f-body); }
.map__trail { fill: none; stroke: var(--drv); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.map__togo { fill: none; stroke: var(--ink3); stroke-width: 1.4; stroke-dasharray: 4 4; }
.map__car { fill: var(--drv); stroke: #fff; stroke-width: 2.5; }
.map__pulse { fill: var(--drv); opacity: .25; transform-origin: center; transform-box: fill-box; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.2); opacity: 0; } }
.map__home { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.map__shop { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.key { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid var(--stall); box-shadow: 0 0 0 1px var(--rope); }
.key--car { background: var(--drv); }
.key--shop { background: var(--ink); }
.key--home { background: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; background: var(--stall); }
.qty button { width: 34px; height: 32px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.qty button:hover { background: var(--awning); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.sharebar { position: sticky; top: var(--top-h); z-index: 29; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; }
.sharebar__in { max-width: 1180px; margin: 0 auto; padding: 6px 12px; display: flex; gap: 10px; align-items: center; }
.sharebar button { margin-left: auto; background: rgba(255, 255, 255, .2); color: #fff; border: 0; border-radius: 14px; padding: 5px 11px; font-weight: 600; }
:root[data-sm-theme="dark"] .sharebar, :root[data-sm-theme="dark"] .sharebar button { color: #04261a; }
:root[data-sm-theme="dark"] .sharebar button { background: rgba(4, 38, 26, .14); }
/* the bar that follows the buyer while they pick things from one seller */
.basketbar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--nav-h) + 8px); z-index: 26; display: flex; align-items: center; gap: 10px; background: var(--brand); color: var(--brand-ink); border-radius: 12px; padding: 8px 8px 8px 14px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; font-size: 13.5px; line-height: 1.3; }
.basketbar:hover { text-decoration: none; }
.basketbar .btn { flex: none; }
.basketbar .btn--pri { background: #fff; border-color: #fff; color: var(--top-bg); }
/* restaurant menus */
.menu { display: flex; flex-direction: column; }
.menu__sec { font-family: var(--f-display); font-weight: 700; font-size: 18px; margin: 12px 0 2px; }
.menu__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rope); color: var(--ink); }
.menu__item:hover { text-decoration: none; }
.menu__img { width: 72px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--awning); }
.menu__img img { width: 100%; height: 100%; object-fit: cover; }
.menu__img .card__ph, .menu__img .lockph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.menu__img .lockph span { display: none; }
.extrarow { display: grid; grid-template-columns: 1fr 104px 38px; gap: 8px; align-items: start; }
.extrarow .chips { grid-column: 1 / -1; margin-top: -2px; gap: 4px 14px; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--awning); border-radius: var(--r-m); padding: 8px 11px; font-weight: 600; overflow-wrap: anywhere; }
.daygrid { display: grid; grid-template-columns: 50px 1fr; gap: 8px 10px; align-items: center; }
.daygrid .times { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.daygrid .tsel { min-height: 36px; padding: 4px 26px 4px 8px; font-size: 15px; width: auto; font-variant-numeric: tabular-nums; background-position: calc(100% - 16px) 15px, calc(100% - 10px) 15px; }

/* ── orders, shops and privacy screens ── */
.atbox { position: relative; }
.atbox > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink3); font-weight: 600; pointer-events: none; }
.atbox .inp { padding-left: 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ordrow { color: var(--ink); }
.ordrow:hover { text-decoration: none; border-color: var(--ink3); }
.check.small { font-size: 13px; }

/* small phones: the header keeps the logo and up to three buttons on one line */
@media (max-width: 419px) {
  .top__in { gap: 4px; }
  .top__in .iconbtn { width: 36px; }
  .logo { font-size: 19px; gap: 7px; }
  .logo__mark { width: 25px; height: 25px; }
  .logo__tld { font-size: 11px; padding: 1px 4px 2px; margin-left: 3px; }
  .langbtn { padding: 0 7px; height: 26px; }
  .langbtn .ic { display: none; }
}
@media (max-width: 379px) {
  .top__in { padding: 0 6px; gap: 2px; }
  .top__in .iconbtn { width: 34px; }
  .logo { font-size: 17.5px; gap: 6px; }
  .logo__mark { width: 23px; height: 23px; }
  .logo__tld { font-size: 10.5px; }
}
@media (max-width: 349px) { .logo__tld { display: none; } }

/* ── wider screens ── */
@media (min-width: 620px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spot__item { flex-basis: 60%; }
  .ov { align-items: center; padding: 20px; }
  .sheet { border-radius: 14px; border-bottom: 1px solid var(--rope); }
  .shots { grid-template-columns: repeat(5, 1fr); }
  .peek { align-items: center; padding: 20px; }
  .h1 { font-size: 24px; }
  .lp__title { font-size: 22px; }
  .card--l .card__img { aspect-ratio: 4 / 3; }
}
@media (min-width: 960px) {
  :root { --nav-h: 0px; --top-h: 60px; }
  .nav { display: none; }
  .top__links { display: flex; }
  .top__in { gap: 12px; padding: 0 20px; }
  main { padding: 16px 20px 50px; }
  .band { margin-top: -16px; padding: 12px 0 18px; }
  .band .searchbar { max-width: 760px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .card__title { font-size: 14px; }
  .spot { margin: 0; padding: 0 0 4px; }
  .spot__item { flex-basis: calc(50% - 4px); }
  .spot__item:only-child { flex-basis: 60%; max-width: 720px; }
  .spot__img { aspect-ratio: 16 / 9; }
  .spot__title { font-size: 21px; }
  .rail, .filters { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .rail--cats { gap: 6px; }
  .tabs { margin: 0; padding: 0; }
  .gal { margin: 0; border-radius: var(--r-l); overflow: hidden; }
  .lp { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .lp__gal { grid-column: 1; grid-row: 1; }
  .lp__side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--top-h) + 14px); }
  .lp__side > .stack:first-child { margin-top: 0 !important; }
  .lp__rest { grid-column: 1; grid-row: 2; }
  .only-d { display: inline-flex !important; }
  .only-m { display: none !important; }
  .actbar { position: static; border: 0; padding: 0; background: transparent; }
  .basketbar { bottom: 20px; }
  .shopgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .has-actbar { padding-bottom: 0; }
  .toasts { bottom: 24px; }
  .chat { position: static; height: calc(100vh - var(--top-h) - var(--prev-h, 0px) - 40px); min-height: 420px; border: 1px solid var(--rope); border-radius: var(--r-l); overflow: hidden; max-width: 820px; margin: 0 auto; }
  body.fullview .top { display: block; }
  body.fullview main { padding: 18px 20px; max-width: 1180px; }
  .h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── profiles: the "Using ..." bar under the header, when a member uses one of their stores ── */
.usingbar { background: var(--stall); color: var(--ink); border-bottom: 1px solid var(--rope); }
.usingbar__in { max-width: 1180px; margin: 0 auto; padding: 4px 10px; min-height: 38px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.usingbar__btn { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--brand); background: transparent; color: var(--tab-on); font-weight: 600; font-size: 13px; }
.usingbar__btn:hover { background: var(--brand-soft); }
.usingbar :focus-visible { outline-color: var(--focus); }
.dot--mini { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 7px; right: calc(50% - 20px); box-shadow: 0 0 0 2px var(--stall); }
.famrail .shopcard, .famrail .fam { flex: none; }
.fam { width: 206px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--rope); border-radius: var(--r-m); background: var(--stall); color: var(--ink); }
.fam:hover { text-decoration: none; border-color: var(--ink3); }
.fam__t { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mystore { display: flex; align-items: center; gap: 10px; }

/* the free daily allowance is used up: a calm note at the bottom until the next day */
.limitbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); background: var(--top-bg); color: #fff; font-size: 13.5px; line-height: 1.4; text-align: center; box-shadow: 0 -2px 10px rgba(0, 0, 0, .25); }
.field--set { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--set legend { padding: 0; margin-bottom: 4px; }
.nowrap { white-space: nowrap; }

/* compare: listings side by side (2 or 3 columns, also on a phone) */
.cmp { display: flex; flex-direction: column; gap: 0; }
.cmp__row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; padding: 6px 0 9px; border-bottom: 1px solid var(--rope); }
.cmp__head { border-bottom: 0; align-items: start; }
.cmp__label { font-size: 11.5px; font-weight: 700; color: var(--ink3); padding-top: 7px; }
.cmp__cell { min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.cmp__head .cmp__cell { display: flex; flex-direction: column; gap: 6px; }
.cmp__ph { display: block; aspect-ratio: 1 / 1; border-radius: var(--r-m); overflow: hidden; background: var(--awning); }
.cmp__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp__t { font-weight: 600; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* no internet: a calm note under the header */
.offbar { position: fixed; left: 0; right: 0; top: var(--top-h); z-index: 26; padding: 6px 14px; background: #2b3445; color: #fff; font-size: 12.5px; text-align: center; }

/* "Get the app" on the home page, and the numbered steps for iPhone */
.instcard { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--rope); border-radius: var(--r-m); background: var(--stall); }
.instcard > .ic { color: var(--tab-on); flex: none; }
/* numbered how-to steps (add to the home screen); the order progress uses .steps / .step */
.numsteps { margin: 0; padding-left: 22px; list-style: decimal; display: flex; flex-direction: column; gap: 9px; line-height: 1.45; }
.numsteps li { display: list-item; }
.numsteps li::marker { font-weight: 700; color: var(--tab-on); }
.numsteps .ic { display: inline-block; vertical-align: -3px; }
