/* PrepBuddy shared: Market module (market). The listing card (one card for Today, Adda, Search, the rows on Listing details and Saved), the category shortcuts,
   the place line and card, the listing gallery and head, the seller card, Stay safe, the deal row, strip, cards, notes and suggestions for the chat in deal mode,
   the sell form's photo tiles and switch rows, the listing row of My listings, the photo viewer. Tokens only; classes prefixed mk-. Reused, not copied: the hub tile
   (prepare.css .pp-hub, profile.css .pf-ic), the status pill (cards.css .spill), the key-value rows and the actions row (payments.css .py-kv, .py-acts), the chips (feed.css .fc),
   the sheet list (feed.css .acts), the pinned bar and the 1160 dp frame (page.css .pin-bar, body.page-wide), the switch and the field (theme.css .sw, .field).
   Flutter: ListingCard, CategoryShortcut, ListingGallery, SellerCard, StaySafe, DealRow, DealStrip, DealCard, SafetyNote, ListingRow (tokens §7). */

/* ---------- the listing card: the cover (4:3, the thumbnail gradient until there is a photo), the bookmark, the price, the title, the area and when ---------- */
.mk-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; min-width: 0; transition: opacity 300ms ease, transform 300ms ease; }
.rowx .mk-card { width: 172px; }
.mk-pic { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; text-decoration: none; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.mk-pic > .mi { font-size: 48px; color: var(--accent); }
.mk-save { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text-primary); }
.mk-save::after { content: ""; position: absolute; inset: -4px; }   /* the 40 dp disc in a 48 dp target */
.mk-save .mi { font-size: 20px; } .mk-save.on { color: var(--primary-text); }
.mk-chip, .mk-km { position: absolute; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 999px; font-size: calc(11px * var(--font-scale)); font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-chip { top: 8px; bottom: auto; inset-inline-start: 8px; max-width: calc(100% - 64px); background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--text-primary); white-space: normal; border-radius: 12px; }   /* top start; the bookmark has the top end; a long Tamil or Hindi label wraps to a second line instead of an ellipsis */
.mk-chip .mi { font-size: 16px; color: var(--primary-text); }
.mk-km { inset-inline-end: 8px; background: color-mix(in srgb, var(--media-ink) 72%, transparent); color: var(--on-media); font-variant-numeric: tabular-nums; }
.mk-km .mi { font-size: 16px; }
.mk-st { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; }
.mk-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px; color: var(--text-primary); text-decoration: none; }
.mk-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.mk-amt { font-size: calc(16px * var(--font-scale)); font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-amt.free { color: var(--success-text); }
.mk-price s { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mk-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(14px * var(--font-scale)); font-weight: 600; line-height: 1.35; overflow-wrap: break-word; }   /* three lines (was two until 2026-11-15): in the two-column phone grid a 45-character title ended in an ellipsis */
.mk-meta { display: flex; flex-wrap: wrap; gap: 0 4px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-meta > span { min-width: 0; max-width: 100%; overflow-wrap: break-word; }   /* a long area ("Nungambakkam") wraps inside a narrow card at 1.43 text scale, never cut */
.mk-card.dim .mk-pic > .mi { opacity: .45; } .mk-card.dim .mk-amt { color: var(--text-secondary); }   /* reserved, sold, given away: the pill says which */
.mk-card.gone { opacity: 0; transform: scale(.96); }   /* unsaved on 06: it fades before the grid redraws */
.mk-pic > .mi { transition: transform 150ms ease; }
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { body.page-wide .mk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-skel { aspect-ratio: 3 / 4; border-radius: 20px; }

/* ---------- a buddy's Listing feed: the compact card inside the feed card, a round chat button at the end (no bookmark: the feed's Save bookmarks the feed) ---------- */
.mk-embed { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: var(--bg); }
.mk-eopen { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--text-primary); text-decoration: none; }
.mk-epic { position: relative; width: 88px; height: 88px; flex-shrink: 0; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.mk-epic > .mi { font-size: 32px; color: var(--accent); }
.mk-etx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* ---------- 00 in Adda: the head (title, the place line), the hubs, the category shortcuts, the place card, the end of the list ---------- */
.mk-disc { display: flex; flex-direction: column; gap: 16px; }
.mk-disc > .sec { margin-top: 8px; }
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.mk-head .tx { flex: initial; align-items: flex-start; gap: 0; }
.mk-head h2 { margin: 0; font-size: calc(20px * var(--font-scale)); font-weight: 800; letter-spacing: -0.01em; }
.mk-new { display: none; }
@media (min-width: 600px) and (max-width: 1023px) { .mk-new { display: inline-flex; } }   /* Medium: no FAB and no side column, so New listing sits beside the title */
.mk-place { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 8px; margin-inline-start: -8px; border-radius: 999px; font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--text-secondary); text-align: start; }
.mk-place .mi { font-size: 16px; } .mk-place > .mi:first-child { color: var(--primary-text); }
.mk-place:hover { background: var(--surface); }
/* hub tiles (2026-10-04, redesigned): Today's bento anatomy: a kicker, the number with its unit, one signal line; the accent bar at the start edge */
.mk-hubs { margin-top: 12px; }
.mk-hub { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 128px; }
/* the shell and the accent underline are the shared .bt (components.css, 2026-11-03) */
.mk-hub .k { display: flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale)); font-weight: 700; letter-spacing: .02em; color: var(--text-secondary); min-width: 0; }
.mk-hub .k .mi { font-size: 18px; color: var(--accent); flex-shrink: 0; }
.mk-hub .bot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; min-width: 0; }
.mk-hub .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mk-hub .big b { font-size: calc(32px * var(--font-scale)); font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-hub .big small { font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--text-secondary); }
.mk-sig { display: inline-flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale)); font-weight: 600; line-height: 1.3; color: var(--text-secondary); }
.mk-sig .mi { font-size: 16px; } .mk-sig.good { color: var(--success-text); } .mk-sig.hot { color: var(--text-primary); }
.mk-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--primary); flex-shrink: 0; }
/* waiting for you: a deal with an unread offer or question, one tap into its chat */
.mk-todo { display: flex; flex-direction: column; gap: 8px; }
.mk-waitsec + .mk-waitsec { margin-top: 0; }   /* the two to-do groups (Waiting for you, Alerts) sit 16 dp apart, closer than the 24 dp between the page’s other sections; the Alerts heading tells them apart */
.mk-w, .mk-y { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--text-primary); }
.mk-w { padding: 12px 12px 12px 12px; border-radius: 20px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); box-shadow: inset 0 0 0 1px var(--edge); }
.mk-w .ic, .mk-y .ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.mk-w .ic .mi, .mk-y .ic .mi { font-size: 24px; color: inherit; }

.mk-w .tx b { font-size: calc(14px * var(--font-scale)); line-height: 1.35; }
.mk-w .tx > span, .mk-y .tx > span { font-size: calc(12px * var(--font-scale)); line-height: 1.4; color: var(--text-secondary); overflow-wrap: anywhere; }   /* a listing’s name wraps, never an ellipsis (2026-11-15) */
.mk-w .tbtn { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.mk-yours { display: flex; flex-direction: column; gap: 12px; }
.mk-ylist { display: flex; flex-direction: column; gap: 4px; }
.mk-y { padding: 8px 0; border-radius: 16px; }
.mk-y .tx b { font-size: calc(14px * var(--font-scale)); line-height: 1.35; overflow-wrap: anywhere; }
.mk-cats { gap: 4px; }
.mk-cat { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0; border-radius: 16px; color: var(--text-primary); text-decoration: none; }
.mk-cat .ic { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: inset 0 0 0 1px var(--edge); color: var(--accent); transition: background-color 150ms ease; }
.mk-cat .ic .mi { font-size: 28px; }
.mk-cat .lb { max-width: 100%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(12px * var(--font-scale)); font-weight: 600; line-height: 1.5; text-align: center; overflow-wrap: break-word; }
.mk-sh { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-sub { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-placecard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.mk-ptile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--info-container); color: var(--info-text); }
.mk-ptile .mi { font-size: 22px; }
.mk-placecard .tx { flex: initial; }
.mk-placecard .tx b { font-size: calc(15px * var(--font-scale)); }
.mk-placecard .tx span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); line-height: 1.45; }
.mk-pacts { grid-column: 1 / -1; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.mk-pacts .cta, .mk-ctas .cta { margin-top: 0; }
/* the call-to-action row is the shared .cta-row (components.css; was .mk-ctas until 2026-10-19); .mk-ctas stays only for its ctas' zero top margin (open: unify with Payments', which keep 12) */
.mk-end { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); text-align: center; }
.mk-end .cta { margin-top: 4px; }
/* the Expanded side column while the chip is on */
/* the side card is the shared .sidecard (components.css, 2026-10-19); Market's title sits 4 dp down and its button is full width (open: unify with Events') */
.mk-sidecard h3 { margin: 4px 0 0; }
.mk-sidecard .btn { width: 100%; }

/* ---------- Stay safe (00 side, 02) and its sheet; what can't be sold ---------- */
.mk-safe { display: flex; flex-direction: column; gap: 12px; }
.mk-safe-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.mk-safe-h h3 { margin: 0; font-size: calc(15px * var(--font-scale)); font-weight: 700; }
.mk-safe ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mk-safe li { display: flex; align-items: flex-start; gap: 12px; font-size: calc(13px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); }
.mk-safe li .mi { font-size: 16px; color: var(--success-text); margin-top: 2px; width: 36px; flex-shrink: 0; text-align: center; }   /* each icon is centred under the heading’s 36 dp tile, so the tips’ text starts exactly under the “S” of Stay safe (tile 36 + gap 10) */
.mk-safe-h .mk-more { margin-inline: auto -8px; padding-inline: 8px; }   /* More tips ends the heading row (the card’s right side is not left empty); it wraps under the title when the card is narrow */
.mk-more { align-self: flex-start; margin: 0; padding-inline-start: 0; }   /* flush with the card’s text (the shared .link keeps 8 dp of padding for its tap area) */
.mk-tips { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.mk-tip { display: flex; align-items: flex-start; gap: 12px; }
.mk-tip b { display: block; font-size: calc(14px * var(--font-scale)); }
.mk-tip small { display: block; margin-top: 2px; font-size: calc(13px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.mk-rules { display: flex; flex-direction: column; }
.mk-rule { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-size: calc(14px * var(--font-scale)); line-height: 1.45; }
.mk-rule + .mk-rule { box-shadow: inset 0 1px 0 var(--border); }
.mk-rule .mi { font-size: 20px; color: var(--error-text); flex-shrink: 0; }
.mk-sheet-p { margin: 0 0 8px; line-height: 1.5; }
.mk-h3 { margin: 16px 0 8px; font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chips .fc { flex: 0 1 auto; max-width: 100%; min-height: 40px; height: auto; padding-block: 8px; white-space: normal; text-align: start; line-height: 1.3; }   /* a long chip ("Anna University main gate") wraps inside its row at 320 dp and 1.43 instead of pushing the page sideways */
.mk-picks { margin-top: 4px; }

/* ---------- 01 Search: the scope line; the filter sheet's groups ---------- */
.mk-scope { display: flex; align-items: center; gap: 12px; margin: 4px 0; }

.mk-scope > .tbtn { flex-shrink: 0; }
.mk-scope h2 { margin: 0; font-size: calc(18px * var(--font-scale)); font-weight: 800; overflow-wrap: break-word; }
.mk-scope .tx > span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-fsec { margin: 16px 0 4px; }
.mk-fsec h3 { margin: 0 0 8px; font-size: calc(12px * var(--font-scale)); font-weight: 700; letter-spacing: .05em; color: var(--text-secondary); }

/* ---------- 02 Listing details: the gallery, the head, the sections, the seller; from 1024 dp two columns in the 1160 dp frame (the Course details recipe) ---------- */
.mk-lay { display: flex; flex-direction: column; gap: 16px; }
.mk-galw { margin: 0 -16px; }
.mk-gal { position: relative; }
.mk-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mk-track::-webkit-scrollbar { display: none; }
.mk-ph { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.mk-ph .mi { font-size: 48px; color: var(--accent); }
.mk-gal .mk-st { top: 12px; inset-inline-start: 12px; }
.mk-count { position: absolute; bottom: 12px; inset-inline-end: 12px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--media-ink) 72%, transparent); color: var(--on-media); font-size: calc(12px * var(--font-scale)); font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.mk-dots { position: absolute; bottom: 18px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.mk-dots i { width: 6px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-primary) 28%, transparent); }
.mk-dots i.on { background: var(--text-primary); }
.mk-side { display: flex; flex-direction: column; gap: 16px; }
.mk-headl { display: flex; flex-direction: column; gap: 8px; }
.mk-bigp { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.mk-bigp .mk-amt { font-size: calc(24px * var(--font-scale)); }
.mk-bigp s { font-size: calc(14px * var(--font-scale)); }
.mk-headl h1 { margin: 0; font-size: calc(20px * var(--font-scale)); font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.mk-where { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); }
.mk-where .mi { font-size: 16px; color: var(--primary-text); }
.mk-sideacts { display: none; }
.mk-lay ~ .mk-pin .pin-row, .mk-sideacts .pin-row { flex-wrap: wrap; }   /* when both labels can't fit (320 dp, Tamil at 1.43), the second button drops to its own line instead of leaving the screen */
.mk-lay ~ .mk-pin .pin-row .btn, .mk-sideacts .pin-row .btn { flex: 1 1 auto; width: auto; padding-inline: 18px; }   /* each button starts at its label's width and they share what is left, so "Chat with seller" stays on one line */
.mk-rest { display: flex; flex-direction: column; gap: 24px; }
.mk-sec { display: flex; flex-direction: column; gap: 12px; }
.mk-sec > h2 { margin: 0; font-size: calc(18px * var(--font-scale)); font-weight: 700; }
.mk-kvs { padding: 2px 16px; }
.mk-desc { margin: 0; font-size: calc(15px * var(--font-scale)); line-height: 1.55; white-space: pre-line; overflow-wrap: break-word; }

.mk-dacts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mk-tl { min-height: 48px; padding: 0; font-size: calc(14px * var(--font-scale)); font-weight: 600; color: var(--primary-text); }   /* more · See translation: text buttons under the description, 48 dp tall */
/* the 44 dp hit area is the shared .hit (components.css, 2026-10-19) */   /* sweep C2 (2026-10-18): a short word ("more", 38 dp) and the 36 / 40 dp Answer and Report rows keep a 44 dp hit area; the components.css recipe */
.mk-spots { padding: 2px 16px; }
.mk-spot { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; font-size: calc(14px * var(--font-scale)); }
.mk-spot + .mk-spot { box-shadow: inset 0 1px 0 var(--border); }
.mk-spot .mi { font-size: 20px; color: var(--primary-text); flex-shrink: 0; }
.mk-spot > span:not(.mi) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }   /* never the icon: a flex column pulled its two duotone layers apart (2026-11-15) */
.mk-spot small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-seller { display: flex; align-items: flex-start; gap: 12px; }
.mk-seller .cht-avb { align-self: flex-start; }
.mk-seller .mk-stx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mk-seller .mk-stx > b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: calc(16px * var(--font-scale)); }
.mk-ssub, .mk-ind, .mk-mut { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); overflow-wrap: break-word; }
.mk-ind, .mk-mut { display: inline-flex; align-items: center; gap: 4px; }
.mk-ind .mi, .mk-mut .mi { font-size: 16px; }
.mk-mut { color: var(--primary-text); font-weight: 600; }
.mk-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }   /* the rating and deals, how fast they reply, since when: side by side while they fit the card, one per line when they do not (2026-10-13) */
.mk-rate { display: inline-flex; align-items: center; gap: 4px; } .mk-rate .mi { font-size: 16px; color: var(--reward); } .mk-rate b { color: var(--text-primary); }
@media (min-width: 600px) { .mk-galw { margin: 0; border-radius: 20px; overflow: hidden; } }
@media (min-width: 1024px) {
  body.page-wide .mk-lay { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "gal side" "rest side"; gap: 24px 48px; align-items: start; padding-top: 8px; }
  body.page-wide .mk-galw { grid-area: gal; }
  body.page-wide .mk-side { grid-area: side; position: sticky; top: 72px; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); }
  body.page-wide .mk-rest { grid-area: rest; }
  body.page-wide .mk-sideacts { display: flex; flex-direction: column; gap: 8px; }
  body.page-wide .mk-sideacts .btn { width: 100%; }
  body.page-wide .mk-sideacts .pin-line { justify-content: flex-start; text-align: start; }
  body.page-wide .mk-pin { display: none; }   /* the side column carries the actions, as on Course details */
}

/* ---------- the photo viewer (full screen, media ink) ---------- */
.mk-view { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: var(--media-ink); opacity: 0; transition: opacity 150ms ease; }
.mk-view.open { opacity: 1; }
.mk-vbar { position: absolute; top: 0; inset-inline: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--on-media); font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-vpic { width: min(100%, 720px); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.mk-vpic .mi { font-size: 48px; color: var(--accent); }
.mk-vprev, .mk-vnext { position: absolute; top: 50%; translate: 0 -50%; }
.mk-vprev { inset-inline-start: 12px; } .mk-vnext { inset-inline-end: 12px; }

/* ---------- 03 Sell: form sections, photo tiles, pickers, switch rows, the price hint, the area row ---------- */
.mk-fs { display: flex; flex-direction: column; }
.mk-fs > h2 { margin: 0 0 12px; font-size: calc(15px * var(--font-scale)); font-weight: 700; }
.mk-fs > .cp-lrow:first-child { margin-bottom: 8px; } .mk-fs > .cp-lrow > h2 { font-size: calc(15px * var(--font-scale)); font-weight: 700; }   /* a card heading with PB’s sparkle at its end (Description) is the same heading */
.mk-fs .f-label { margin: 16px 0 8px; }
.mk-opt { font-size: calc(12px * var(--font-scale)); font-weight: 500; color: var(--text-secondary); }
.mk-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.mk-tile, .mk-add { position: relative; aspect-ratio: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.mk-tile { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.mk-tile > .mi { font-size: 32px; color: var(--accent); }
.mk-cover { position: absolute; bottom: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--media-ink) 72%, transparent); color: var(--on-media); font-size: calc(11px * var(--font-scale)); font-weight: 700; }
.mk-rm { position: absolute; top: 4px; inset-inline-end: 4px; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--media-ink) 60%, transparent); color: var(--on-media); }
.mk-rm::after { content: ""; position: absolute; inset: -10px; }   /* the 28 dp disc in a 48 dp target */
.mk-rm .mi { font-size: 16px; }
.mk-add { flex-direction: column; gap: 4px; border: 1px dashed var(--outline); background: var(--field-bg); color: var(--primary-text); font-size: calc(12px * var(--font-scale)); font-weight: 700; text-align: center; }
.mk-add .mi { font-size: 28px; }
.mk-add { padding: 4px; min-width: 0; } .mk-add > span:not(.mi) { max-width: 100%; overflow-wrap: break-word; }
.mk-add:only-child { grid-column: span 2; aspect-ratio: 2 / 1; }   /* no photo yet: the tile is two wide, so “Add photos” fits on one line in Tamil too (it ran out of the tile, 2026-11-15) */
.mk-pickf { width: 100%; justify-content: flex-start; text-align: start; color: var(--text-primary); }
.mk-pickf .mk-pv { flex: 1; min-width: 0; font-size: calc(14px * var(--font-scale)); overflow-wrap: break-word; }
.mk-pv.unset { color: var(--text-secondary); }
.mk-pickf .mi { font-size: 20px; color: var(--text-secondary); } .mk-pickf > .mi:first-child { color: var(--primary-text); }
.mk-swrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; }
.mk-swrow > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-swrow b { font-size: calc(14px * var(--font-scale)); font-weight: 600; }
.mk-swrow small { font-size: calc(12px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); }
.mk-hint { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; font-size: calc(12px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); }
.mk-hint .mi { font-size: 16px; color: var(--primary-text); flex-shrink: 0; margin-top: 1px; }
.mk-hint b { color: var(--text-primary); }
.mk-area { align-items: stretch; }
.mk-area textarea { flex: 1; min-width: 0; min-height: 96px; padding: 12px 0; border: none; outline: none; resize: vertical; background: transparent; color: var(--text-primary); font: inherit; font-size: calc(14px * var(--font-scale)); line-height: 1.5; }
.mk-area textarea::placeholder { color: var(--text-secondary); }
.mk-arearow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; text-align: start; color: var(--text-primary); }
.mk-arearow > span:not(.mi) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-arearow b { font-size: calc(14px * var(--font-scale)); font-weight: 600; }
.mk-arearow small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); line-height: 1.45; }
.mk-arearow > .mi { font-size: 24px; color: var(--primary-text); } .mk-arearow > .mi:last-child { font-size: 20px; color: var(--text-secondary); }
.mk-rules-l { align-self: flex-start; margin-top: 4px; gap: 8px; }

/* ---------- 04 Deal chat (the chat in deal mode): the row in Chat, the strip, the intro, the cards, the safety note, the suggestions ---------- */
.mk-dlead { position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--accent-text, var(--accent)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.mk-dlead > .mi { font-size: 28px; }
.mk-dav { position: absolute; bottom: -4px; inset-inline-end: -4px; display: inline-flex; border-radius: 999px; box-shadow: 0 0 0 2px var(--bg); }
.mk-drow a.cht-chat { color: inherit; text-decoration: none; }
.mk-drow .mk-dl { font-weight: 500; }
.mk-drow .mk-dico { font-size: 16px; color: var(--text-secondary); flex-shrink: 0; }
.mk-dlist { margin: 4px -8px 0; }
.mk-strip { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--border); }
.mk-sopen { flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 12px; color: var(--text-primary); text-decoration: none; }
.mk-spic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.mk-spic .mi { font-size: 24px; color: var(--accent); }
.mk-stx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-strip .mk-stx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(14px * var(--font-scale)); font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }   /* two lines, not one with an ellipsis (2026-11-15) */
.mk-sline { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.mk-samt { font-size: calc(13px * var(--font-scale)); font-weight: 800; font-variant-numeric: tabular-nums; } .mk-samt.free { color: var(--success-text); }
.mk-samt:empty { display: none; }
.mk-sacts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mk-sacts .btn { min-height: 40px; padding: 0 16px; }
.mk-sacts .btn .mi { font-size: 18px; }
.mk-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 12px 0 8px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--success) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 30%, var(--surface)); }
.mk-intro .tx { flex: initial; }
.mk-intro .tx b { font-size: calc(14px * var(--font-scale)); }
.mk-intro .tx small { font-size: calc(12px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.mk-intro .link { grid-column: 2; justify-self: start; margin: 0; padding: 0; }
.mk-dc { align-self: center; width: min(100%, 340px); box-sizing: border-box; margin: 12px 0; padding: 12px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); }
/* a deal card sits on the side of whoever sent it, like a message: yours on the end side, theirs on the start side (it was centred, 2026-10-09) */
.mk-dc.me { align-self: flex-end; } .mk-dc.them { align-self: flex-start; }
.mk-dc.ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 45%, var(--surface)); }
.mk-dc.gold { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--reward) 50%, var(--surface)); }
.mk-dc.mute .mk-dci { opacity: .7; }
.mk-dch { display: flex; align-items: flex-start; gap: 12px; }
.mk-dci { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary-text); }
.mk-dci .mi { font-size: 22px; }
.mk-dc.ok .mk-dci { background: var(--success-container); color: var(--success-text); }
.mk-dc.gold .mk-dci { background: var(--reward-container); color: var(--reward-ink); }
.mk-dct { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-dct b { font-size: calc(14px * var(--font-scale)); font-weight: 700; overflow-wrap: break-word; }
.mk-dct > span { font-size: calc(13px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); }
.mk-dcamt { font-size: calc(20px * var(--font-scale)); font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.mk-dct > .mk-dcwas { font-size: calc(12px * var(--font-scale)); }
.mk-dct > .mk-dcmeet { display: flex; align-items: center; gap: 8px; color: var(--text-primary); }
.mk-dcmeet .mi { font-size: 16px; color: var(--primary-text); flex-shrink: 0; }
.mk-dca { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; }
.mk-dca .cta { margin-top: 0; min-width: 64px; font-size: calc(12px * var(--font-scale)); }
.mk-dca .cta .tbtn { width: 44px; height: 44px; } .mk-dca .cta .tbtn .mi { font-size: 22px; }
.mk-wait, .mk-dcst { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--text-secondary); }
.mk-wait .mi { font-size: 16px; }
.mk-dc.ok .mk-dcst { color: var(--success-text); }
.mk-stars { display: flex; }
.mk-stars button { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--reward); }
.mk-stars .mi { font-size: 32px; }
.mk-rated { display: inline-flex; gap: 2px; } .mk-rated .mi { font-size: 20px; color: var(--reward); }
.mk-rtags { margin-top: 8px; }
.mk-note { align-self: flex-start; display: flex; align-items: flex-start; gap: 8px; max-width: min(100%, 340px); box-sizing: border-box; margin: 4px 0 8px; padding: 12px; border-radius: 16px; background: var(--warning-container); color: var(--text-primary); font-size: calc(13px * var(--font-scale)); line-height: 1.45; }
.mk-note > .mi { font-size: 20px; color: var(--warning-text); flex-shrink: 0; }
.mk-note > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mk-notelink { min-height: 44px; padding: 0; font-weight: 700; color: var(--primary-text); }
.mk-sugg { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0 8px; text-align: center; }
.mk-sugg .ic { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-text); }
.mk-sugg .ic .mi { font-size: 32px; }
.mk-sugg h2 { margin: 0; font-size: calc(18px * var(--font-scale)); }
.mk-sugg p { margin: 0; max-width: 320px; font-size: calc(13px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.mk-sglist { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mk-sg { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-size: calc(14px * var(--font-scale)); text-align: start; color: var(--text-primary); }
.mk-sg .mi { font-size: 18px; color: var(--primary-text); flex-shrink: 0; }
.mk-sg:hover { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }

/* ---------- 05 My listings: the stat tiles, the sections, the listing row (the Course row recipe: cover, title, price, stats, the status pill as the text's last line) ---------- */
.mk-mhead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-mhead > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); }
.mk-mhead b { font-size: calc(20px * var(--font-scale)); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mk-mhead small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); overflow-wrap: anywhere; }
@media (max-width: 359px) { .mk-mhead > span { padding: 12px 8px; } }   /* Compact: three counts share 288 dp, a long Tamil word wraps inside its cell */
.mk-msec { display: flex; flex-direction: column; gap: 8px; }
.mk-lsec { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }
.mk-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mk-row { display: flex; align-items: center; gap: 12px; padding: 16px; transition: opacity 300ms ease, transform 300ms ease; }
.mk-row.gone { opacity: 0; transform: translateX(-24px); }
.mk-rth { width: 72px; height: 72px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.mk-rth .mi { font-size: 32px; color: var(--accent); }
/* the row's open link is the shared .row-open (components.css; was .mk-ropen until 2026-10-19) */
.mk-rtx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mk-rtx > b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(15px * var(--font-scale)); line-height: 1.3; overflow-wrap: break-word; }   /* the title only (> b): as “.mk-rtx b” it also made the price a block and dropped the struck old price under it (2026-11-15) */
.mk-rp { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; } .mk-rp s { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mk-rp .mk-amt { font-size: calc(15px * var(--font-scale)); }
.mk-noprice { font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); }
.mk-rs { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-rs > span { display: inline-flex; align-items: center; gap: 4px; }
.mk-rs .mi { font-size: 16px; }
.mk-why { font-size: calc(12px * var(--font-scale)); line-height: 1.4; color: var(--warning-text); }
.mk-rpill { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; }
.mk-rbuyer { display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); } .mk-rbuyer .mi { font-size: 16px; }
.mk-rtrail { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
@media (max-width: 599px) { .mk-rtrail { flex-direction: column; align-self: flex-start; gap: 0; } }   /* on a phone the two actions stack at the row's end: side by side they left the title 145 dp, and it broke after two words (2026-11-13) */
.mk-drop { display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--success-text); }
.mk-drop .mi { font-size: 16px; }
@media (min-width: 1024px) { body.page-wide .mk-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) { .mk-row { gap: 12px; } .mk-rth { width: 56px; height: 56px; border-radius: 12px; } .mk-rth .mi { font-size: 24px; } .mk-cat { width: 72px; } }   /* Compact (small) */
@media (prefers-reduced-motion: reduce) { .mk-card, .mk-row, .mk-view, .mk-pic > .mi, .mk-cat .ic { transition: none; } }

/* ---------- 02 Listing: public questions (Questions section, the ask and answer sheets). Tokens only; classes mk-q ---------- */
.mk-qhd { display: flex; align-items: center; gap: 12px; }
.mk-qhd h2 { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: calc(18px * var(--font-scale)); font-weight: 700; }
.mk-qhd h2 .n, .mk-qn1 { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }
.mk-qn1 { margin-inline-start: 8px; vertical-align: middle; }
.mk-qpill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-text); font-size: calc(12px * var(--font-scale)); font-weight: 700; }
.mk-qs { padding: 4px 16px; display: flex; flex-direction: column; }
.mk-qi { display: flex; gap: 12px; padding: 16px 0; }
.mk-qi + .mk-qi { box-shadow: inset 0 1px 0 var(--border); }
.mk-qi .pb-avatar { width: 32px; height: 32px; flex-shrink: 0; }
.mk-qb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-qh1 { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--font-scale)); }
.mk-qh1 b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-qt { color: var(--text-secondary); font-size: calc(12px * var(--font-scale)); }
.mk-qm { margin-inline-start: auto; width: 44px; height: 44px; margin-block: -12px; margin-inline-end: -12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.mk-qm:hover { background: var(--surface); }
.mk-qm .mi { font-size: 20px; }
p.mk-qx, .mk-qx { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; overflow-wrap: anywhere; color: var(--text-primary); white-space: pre-wrap; }
.mk-qa { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 7%, transparent); }
.mk-qa > .mi { font-size: 18px; color: var(--primary-text); flex-shrink: 0; margin-top: 1px; }
.mk-qa.wait { background: transparent; padding: 0; align-items: center; }
.mk-qa.wait > .mi { color: var(--text-secondary); font-size: 16px; margin: 0; }
.mk-qab { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: calc(13px * var(--font-scale)); }
.mk-qab > b { font-weight: 700; }
.mk-qab .mk-qx { flex-basis: 100%; }
.mk-qrole { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-size: calc(11px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }
.mk-qab .mk-tl { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.mk-qab .mk-tl .mi { font-size: 16px; }
.mk-qall { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; margin-inline: -16px; border-radius: 0 0 20px 20px; box-shadow: inset 0 1px 0 var(--border); font-size: calc(14px * var(--font-scale)); font-weight: 600; color: var(--primary-text); }
.mk-qall .mi { font-size: 16px; }
.mk-qe { display: flex; align-items: center; gap: 16px; padding: 16px; }
.mk-qe > .mi { font-size: 32px; color: var(--primary-text); flex-shrink: 0; }
.mk-qe > span:not(.mi) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-qe small { font-size: calc(12px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); }

.mk-qchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 4px; }
.mk-qmeta { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; min-height: 20px; }
.mk-qerr { flex: 1; min-width: 0; font-size: calc(12px * var(--font-scale)); line-height: 1.4; color: var(--error-text); }
.mk-qquote { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); font-size: calc(14px * var(--font-scale)); line-height: 1.5; overflow-wrap: anywhere; }
.mk-qlist { max-height: 56vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.sheet2 .mk-qi .mk-qm { margin-inline-end: 0; }
/* the question section gets its 24 dp from .mk-rest like every section; the unclosed comment that kept .mk-rest and .mk-sec from applying was closed 2026-10-13 */
.mk-qsec { display: flex; flex-direction: column; gap: 12px; }

/* the answer is written in place under the question (no sheet); the list grows down the page when "See all" is open */
.mk-qcomp { flex-direction: row; background: color-mix(in srgb, var(--primary) 7%, transparent); }
.mk-qcomp .mk-qab { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.mk-qcomp .field { min-height: 0; padding: 8px 12px; align-items: flex-start; }
.mk-qcomp textarea { width: 100%; min-height: 44px; border: 0; outline: 0; resize: none; background: transparent; color: var(--text-primary); font: inherit; font-size: calc(14px * var(--font-scale)); line-height: 1.5; }
.mk-qcomp .mk-qmeta { margin-top: 0; }
.mk-qrow { display: flex; justify-content: flex-end; gap: 8px; }
.mk-qrow .btn { min-height: 40px; }

/* the ask card, the options row and the report list also live in the section (2026-10-09): no sheet; the pinned bar steps aside while a field has focus */
.mk-qc { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.mk-qc h3 { margin: 0; font-size: calc(15px * var(--font-scale)); font-weight: 700; }
.mk-qc .mk-qn { margin: -4px 0 0; }
.mk-qc .mk-qchips { margin: 0; }
.mk-qc .field { align-items: flex-start; padding: 8px 12px; min-height: 0; }
.mk-qc textarea { width: 100%; border: 0; outline: 0; resize: vertical; min-height: 56px; background: transparent; color: var(--text-primary); font: inherit; font-size: calc(14px * var(--font-scale)); line-height: 1.5; }
.mk-qc .mk-qmeta { margin-top: 0; }
.mk-qacts { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-qact { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--text-primary); }
.mk-qact .mi { font-size: 16px; color: var(--text-secondary); }
.mk-qact.danger, .mk-qact.danger .mi { color: var(--error-text); }
.mk-qact:hover { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.mk-qrep { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); }
.mk-qrep > b { font-size: calc(13px * var(--font-scale)); }
.mk-qrep > small { margin-bottom: 4px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-qreason { display: flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: calc(14px * var(--font-scale)); text-align: start; color: var(--text-primary); }
.mk-qreason + .mk-qreason { box-shadow: inset 0 1px 0 var(--border); }
.mk-qrep .mk-tl { align-self: flex-start; min-height: 40px; }
body.mk-typing .mk-pin { display: none; }

/* prototype review switch: the deal chat seen from the other side (market.js flipDeal) */
.mk-flip { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 8px; border-radius: 12px; text-align: start; color: var(--text-primary); }
.mk-flip:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.mk-flip > .mi { font-size: 22px; color: var(--text-secondary); flex-shrink: 0; }
.mk-flip > span:not(.mi) { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .mk-flip b { font-size: calc(15px * var(--font-scale)); font-weight: 600; } .mk-flip small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-prev { display: flex; align-items: center; gap: 12px; margin: 8px 12px 0; padding: 8px 12px 8px 12px; border-radius: 16px; background: color-mix(in srgb, var(--cat-purple) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-purple) 40%, transparent); }
.mk-prev > .mi { font-size: 20px; color: var(--cat-purple-text); flex-shrink: 0; }
.mk-prev > span:not(.mi) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .mk-prev b { font-size: calc(13px * var(--font-scale)); font-weight: 700; } .mk-prev small { font-size: calc(12px * var(--font-scale)); line-height: 1.4; color: var(--text-secondary); }
.mk-prev .mk-tl { color: var(--primary-text); font-weight: 700; flex-shrink: 0; min-height: 40px; padding: 0 8px; font-size: calc(13px * var(--font-scale)); }

/* search alerts (2026-10-12; market 07): the bell's sheet and the list row */
.mk-alsh { display: flex; flex-direction: column; gap: 16px; }
.mk-alsh h2 { margin: 0; font-size: calc(18px * var(--font-scale)); font-weight: 800; overflow-wrap: anywhere; }
.mk-alsum { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--cat-pink) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--edge); }
.mk-alsum b { font-size: calc(15px * var(--font-scale)); overflow-wrap: anywhere; } .mk-alsum span { font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); line-height: 1.45; overflow-wrap: anywhere; }

.mk-alsw .tx b { font-size: calc(15px * var(--font-scale)); } .mk-alsw .tx small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); line-height: 1.4; }
.mk-alsh .btn { width: 100%; }
.mk-alist { display: flex; flex-direction: column; gap: 8px; }
.mk-al { display: flex; align-items: center; gap: 8px; min-height: 88px; padding: 8px 8px 8px 12px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); }
.mk-al.dim .open { opacity: .6; }
.mk-al .open { flex: 1; min-width: 0; min-height: 72px; display: flex; align-items: center; gap: 12px; color: inherit; text-align: start; }
.mk-al .ti { width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cat-pink) 14%, transparent); }
.mk-al .ti .mi { font-size: 26px; color: var(--cat-pink-text); }
.mk-al .tx { flex: initial; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-al .tx b { font-size: calc(15px * var(--font-scale)); font-weight: 700; line-height: 1.3; color: var(--text-primary); overflow-wrap: anywhere; }   /* what is wanted (or the alert’s words) wraps, never an ellipsis (2026-11-15) */
.mk-al .sm { overflow-wrap: anywhere; line-height: 1.4; }
.mk-al .stl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.mk-al .nm { display: inline-flex; align-items: center; min-height: 24px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary-text); font-weight: 700; }
.mk-al .soon { color: var(--warning-text); font-weight: 700; }

/* auto price drop (2026-10-13; market 02, 03, 05): the plan on the seller's own listing and row, and the form in Sell's Price card */
.mk-ad { display: flex; align-items: flex-start; gap: 8px; font-size: calc(12px * var(--font-scale)); line-height: 1.4; color: var(--text-secondary); overflow-wrap: anywhere; }
.mk-ad .mi { font-size: 16px; color: var(--primary-text); flex-shrink: 0; margin-top: 1px; }
.mk-adf { display: flex; flex-direction: column; gap: 4px; }
.mk-adf .help.error { color: var(--error-text); }
/* price check (2026-10-12; market 02, 03, 05): the verdict under the price, its sheet with the range bar, the price check in Sell, the high-price line in My listings */
.mk-pc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 16px; text-align: start; color: var(--text-primary); background: color-mix(in srgb, var(--success) 9%, var(--surface)); box-shadow: inset 0 0 0 1px var(--edge); }
.mk-pc.high { background: color-mix(in srgb, var(--warning) 11%, var(--surface)); }
.mk-pc.low { background: color-mix(in srgb, var(--error) 9%, var(--surface)); }
.mk-pc .tx { font-size: calc(13px * var(--font-scale)); line-height: 1.4; color: var(--text-secondary); overflow-wrap: anywhere; }
.mk-pc .tx b, .mk-pc .tx [data-noloc] { color: var(--text-primary); font-weight: 700; }
.mk-pc .cau { color: var(--error-text); font-weight: 600; }
.mk-pc > .mi { font-size: 18px; color: var(--text-secondary); flex-shrink: 0; }
.mk-pcsh { display: flex; flex-direction: column; gap: 12px; }
.mk-pcsh h2 { margin: 0; font-size: calc(18px * var(--font-scale)); font-weight: 800; }
.mk-pcv { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mk-pcv b { font-size: calc(20px * var(--font-scale)); font-weight: 800; }
.mk-pcbar { position: relative; height: 8px; margin: 12px 8px 8px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 22%, transparent); }
.mk-pcbar .band { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--success) 55%, transparent); }
.mk-pcbar .dot { position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; margin-inline-start: -9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--surface), 0 1px 4px color-mix(in srgb, var(--shadow-ink) 30%, transparent); }
.mk-pcbar .dot.high { background: var(--warning); } .mk-pcbar .dot.low { background: var(--error); }
.mk-pcr { margin: 0; font-size: calc(15px * var(--font-scale)); font-weight: 600; line-height: 1.4; }
.mk-pcr [data-noloc] { font-weight: 800; }
.mk-pcl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; font-size: calc(12px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); }
.mk-pcl .tx { display: block; flex: 1 1 140px; overflow-wrap: anywhere; }
.mk-pcl .tx [data-noloc] { color: var(--text-primary); font-weight: 700; }
.mk-pcl .link { min-height: 44px; padding: 0 8px; font-weight: 700; }
.mk-hl { display: flex; align-items: center; gap: 4px; font-size: calc(12px * var(--font-scale)); line-height: 1.4; color: var(--warning-text); font-weight: 600; }
.mk-hl .mi { font-size: 16px; flex-shrink: 0; }
.mk-forreq { margin: 0 0 4px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--edge); align-items: center; }

/* Wanted (2026-10-12; market 08, 09, 10): the request row, the request page, a reply, the reply sheet */
.mk-wr .ti { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mk-wr .ti .mi { color: var(--accent); }
.mk-wr .bd { display: inline-flex; align-items: center; min-height: 24px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 14%, transparent); color: var(--text-primary); font-weight: 600; }
.mk-wr .stl .spill { flex-shrink: 0; }
.mk-tabs { margin: 0 0 12px; }
.mk-tabs .fc:not(.on) span { opacity: .75; }
.mk-tabs .fc span { margin-inline-start: 2px; }
.mk-req { display: flex; flex-direction: column; gap: 24px; }
.mk-rqic { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.mk-rqic .mi { font-size: 32px; color: var(--accent); }
.mk-cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; margin-inline-start: 8px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-text); font-size: calc(13px * var(--font-scale)); font-weight: 700; vertical-align: middle; }
.mk-reps { display: flex; flex-direction: column; gap: 12px; }
.mk-rep { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.mk-rep .mk-rth { width: 56px; height: 56px; }
.mk-rep .mk-rs .nm { display: inline-flex; align-items: center; min-height: 22px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary-text); font-weight: 700; }
.mk-rep .mk-rp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mk-rnote { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: calc(13px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); background: color-mix(in srgb, var(--text-secondary) 8%, transparent); overflow-wrap: anywhere; }
.mk-racts { display: flex; align-items: center; gap: 8px; }
.mk-racts .btn { flex: 1 1 auto; min-width: 0; }
.mk-rsh { display: flex; flex-direction: column; gap: 12px; }
.mk-rsh h2 { margin: 0; font-size: calc(18px * var(--font-scale)); font-weight: 800; }
.mk-rsh .sheet-foot { margin-top: 4px; }
.mk-rsh .sheet-foot .btn { flex: 1 1 auto; }
.mk-ropt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; }
.mk-ropt b { font-size: calc(14px * var(--font-scale)); font-weight: 700; overflow-wrap: anywhere; }
.mk-ropt small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.mk-ropt .warnt { color: var(--warning-text); font-weight: 700; }
.mk-pc .tx [data-noloc], .mk-pcl .tx [data-noloc], .mk-pcr [data-noloc] { white-space: nowrap; }
/* a long pill (Tamil at 1.43x: "Above your budget", "Trusted seller") wraps inside its row instead of leaving the screen */
.mk-seller .spill, .mk-rep .spill, .mk-pc .spill, .mk-pcl .spill { white-space: normal; max-width: 100%; text-align: start; }
.mk-pc .spill, .mk-pcl .spill { flex-shrink: 0; max-width: 55%; }

