/* =========================================================
   Livestock Market — Buyer prototype styles
   Layout: phone frame (390×844) centered on desktop, reviewer
   panel beside it; full-bleed app on real phones.
   Single light theme on purpose (brand colours from the brief).
   ========================================================= */
:root {
  color-scheme: light;
  /* Brand */
  --yellow: #FFD633;
  --yellow-soft: #FFF5C7;
  --green: #138A36;
  --green-dark: #0D6A29;
  --green-soft: #EAF7ED;
  /* Neutrals (slight green bias) */
  --text: #1C1C1C;
  --text-2: #696969;
  --text-3: #9A9C99;
  --bg: #F7F7F7;
  --surface: #FFFFFF;
  --border: #E8E8E8;
  --stage: #E6EAE5;
  --frame: #1C1C1C;
  /* Semantic */
  --danger: #C62828;
  --danger-soft: #FDECEA;
  --warn: #8A5A00;
  --warn-soft: #FFF3D6;
  --scrim: rgba(28, 28, 28, .45);
  /* Placeholder photo tints */
  --ph-cattle: #EFE3D3;
  --ph-buffalo: #DFE2E6;
  --ph-goat: #EDE4D6;
  --ph-sheep: #EFEFE8;
  --ph-poultry: #F8E7D6;
  --ph-birds: #E2EEDF;

  --font: "Google Sans", "Product Sans", Roboto, "Noto Sans", "Noto Sans Tamil", system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
svg { flex-shrink: 0; }

/* ---------- Stage & phone frame ---------- */
.stage {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: 24px 16px;
  flex-wrap: wrap;
}
.phone {
  position: relative;
  width: 390px;
  max-width: 100%;
  height: min(844px, calc(100vh - 48px));
  min-height: 640px;
  background: var(--bg);
  border: 10px solid var(--frame);
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  box-sizing: content-box;
}
.statusbar {
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--text);
}
.statusbar.on-yellow { background: var(--yellow); }
.statusbar.on-green { background: var(--green); color: #fff; }
.sb-icons { display: flex; gap: 4px; align-items: center; }

@media (max-width: 520px) {
  .stage { padding: 0; gap: 0; display: block; }
  .phone { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; box-sizing: border-box; }
  .statusbar { display: none; }
  .devpanel { margin: 16px; }
}

.offline-strip {
  flex: none;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 6px;
}

.screen-host { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.scr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  animation: scrIn .18s ease-out;
}
.scr.white { background: var(--surface); }
@keyframes scrIn { from { opacity: .4; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scr, .sheet, .toast { animation: none !important; } }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { width: 0; }
.pad { padding: 16px; }

/* ---------- App bar ---------- */
.appbar {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.appbar.flat { border-bottom: 0; }
.appbar h1 {
  flex: 1;
  min-width: 0;
  margin: 0 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar .sub { display: block; font-size: 12px; color: var(--text-2); font-weight: 400; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  color: var(--text);
}
.icon-btn:active { background: rgba(0,0,0,.06); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--yellow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 15px;
  transition: background .15s, opacity .15s;
}
.btn.block { width: 100%; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:active { background: var(--green-dark); }
.btn.primary:disabled { background: #BFD9C6; cursor: not-allowed; }
.btn.outline { border: 1.5px solid var(--green); color: var(--green); background: var(--surface); }
.btn.ghost { color: var(--green); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.link { color: var(--green); font-weight: 500; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--text-2); }
.input {
  height: 52px;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}
.input:focus { border-color: var(--green); }
.input.error { border-color: var(--danger); }
textarea.input { height: 110px; padding: 12px 14px; resize: none; }
.err-text { color: var(--danger); font-size: 13px; min-height: 18px; }
.hint { color: var(--text-2); font-size: 13px; }

/* ---------- Onboarding ---------- */
.splash {
  background: var(--yellow);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.logo-ph {
  width: 96px; height: 96px;
  border-radius: 28px;
  background: var(--green);
  color: var(--yellow);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: .08em;
}
.splash h1 { margin: 0; font-size: 26px; font-weight: 700; }
.splash p { margin: 0; color: #4A4A2A; }
.splash .loader { margin-top: 32px; width: 28px; height: 28px; border: 3px solid rgba(19,138,54,.25); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.onb { padding: 24px 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.onb h1 { margin: 8px 0 0; font-size: 24px; font-weight: 500; text-wrap: balance; }
.onb p.lead { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.footer-cta { flex: none; padding: 12px 16px 16px; background: var(--surface); border-top: 1px solid var(--border); display: grid; gap: 10px; }
.footer-cta.no-border { border-top: 0; }

.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 20px 20px; }
.lang-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 16px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
  position: relative;
  min-height: 84px;
}
.lang-card .native { font-size: 20px; font-weight: 500; }
.lang-card .eng { font-size: 12px; color: var(--text-2); }
.lang-card.active { border-color: var(--green); background: var(--green-soft); }
.lang-card .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: none; place-items: center; }
.lang-card.active .tick { display: grid; }

.phone-row { display: flex; gap: 10px; }
.cc-chip {
  flex: none;
  height: 52px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; align-items: center; gap: 6px;
  font-size: 16px;
}
.fine { font-size: 12px; color: var(--text-2); line-height: 1.5; }

.otp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.otp-box {
  height: 54px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  outline: none;
  width: 100%;
  min-width: 0;
}
.otp-box:focus { border-color: var(--green); }
.otp-row.error .otp-box { border-color: var(--danger); }
.otp-row.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.otp-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 14px; }
.proto-hint { background: var(--yellow-soft); border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px; color: #5A4A00; }

.illus {
  margin: 8px auto 4px;
  width: 168px; height: 168px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid; place-items: center;
  color: var(--green);
}
.center { text-align: center; }

/* ---------- Location select ---------- */
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-2);
  width: 100%;
  text-align: left;
}
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); }
.searchbox:focus-within { border-color: var(--green); }
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-size: 15px; }
.list-row .s { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.list-row .ic { color: var(--text-2); }
.list-row.accent .t, .list-row.accent .ic { color: var(--green); font-weight: 500; }
.group { background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.sec-label { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding: 18px 16px 8px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }

/* ---------- Chips ---------- */
.chip {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.soft { background: var(--bg); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }

/* ---------- Home ---------- */
.home-head { background: var(--yellow); padding: 8px 8px 14px 16px; flex: none; }
.home-head .top { display: flex; align-items: center; gap: 4px; }
.loc-btn { flex: 1; min-width: 0; text-align: left; display: grid; gap: 1px; padding: 4px 0; }
.loc-btn .lbl { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #5C4D00; }
.loc-btn .val { display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 700; }
.loc-btn .val span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-head .searchbox { margin-top: 10px; border-color: transparent; height: 50px; margin-right: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); width: calc(100% - 8px); }

.section { padding: 20px 0 4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 12px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 17px; font-weight: 500; }
.section-head .sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.section-head .link { font-size: 13px; white-space: nowrap; }

.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: left;
}
.cat-tile .ph { height: 84px; font-size: 40px; }
.cat-tile .nm { padding: 8px 10px 2px; font-size: 13px; font-weight: 500; line-height: 1.25; }
.cat-tile .ct { padding: 0 10px 10px; font-size: 11px; color: var(--text-2); }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

/* ---------- Photography ----------
   Each .ph is a photo slot: a soft "field" gradient + caption that stays
   until a real image loads over it (img/… files, see PHOTOS.md). */
.ph {
  --tone: #E4D5BF;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #F2F3EC 0%, #F2F3EC 38%, var(--tone) 100%);
  color: rgba(28, 28, 28, .42);
  user-select: none;
}
.ph[data-tone="buffalo"] { --tone: #CFD5CF; }
.ph[data-tone="goat"] { --tone: #E2D6C1; }
.ph[data-tone="sheep"] { --tone: #E2E0D2; }
.ph[data-tone="poultry"] { --tone: #ECD6BA; }
.ph[data-tone="birds"] { --tone: #D3E0CA; }
.ph[data-tone="banner"] { background: linear-gradient(120deg, #1E4A2A 0%, #3F6B37 55%, #7D9550 100%); color: rgba(255, 255, 255, .55); }
.ph-cap { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1.3; padding: 0 10px; text-align: center; max-width: 100%; }
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-img.missing { display: none; }
.ph.has-photo .ph-cap { display: none; }

/* ---------- Home: promo banners ---------- */
.banner-zone { background: linear-gradient(var(--yellow) 0 52px, transparent 52px); padding-top: 2px; }
.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scroll-padding: 0 16px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.promo {
  flex: none;
  position: relative;
  width: calc(100% - 40px);
  height: 176px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(28, 60, 30, .18);
}
.promo .promo-ph { position: absolute; inset: 0; place-items: start end; }
.promo .promo-ph .ph-cap { margin: 12px 4px 0 0; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 34, 16, .84) 0%, rgba(6, 34, 16, .5) 52%, rgba(6, 34, 16, 0) 100%); pointer-events: none; }
.promo-txt { position: absolute; left: 16px; right: 70px; bottom: 16px; z-index: 2; color: #fff; }
.promo-eyebrow { display: inline-block; background: var(--yellow); color: var(--text); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; letter-spacing: .02em; }
.promo h3 { margin: 10px 0 3px; font-size: 21px; font-weight: 700; line-height: 1.15; text-wrap: balance; }
.promo p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .88); }
.promo-go { position: absolute; right: 14px; bottom: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--text); display: grid; place-items: center; }
.pager { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.pager button { width: 6px; height: 6px; border-radius: 3px; background: #CFD2CC; transition: width .2s, background .2s; }
.pager button.on { width: 20px; background: var(--green); }

/* ---------- Home: image-first category cards ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-align: left; display: flex; flex-direction: column; min-width: 0; }
.cat-card .cat-ph { width: 100%; aspect-ratio: 4 / 5; }
.cat-card .cat-ph .ph-cap { flex-direction: column; font-size: 10px; }
.cat-name { padding: 9px 10px 0; font-size: 13px; font-weight: 500; line-height: 1.25; min-height: 2.6em; }
.cat-foot { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 10px; font-size: 11px; color: var(--text-2); }
.cat-foot svg { color: var(--green); }

/* ---------- Home: explore by location ---------- */
.towns { gap: 10px; }
.town { flex: none; scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-align: left; }
.town-ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.town-nm { font-size: 14px; font-weight: 500; }
.town-meta { font-size: 11px; color: var(--text-2); white-space: nowrap; }

/* ---------- Home: trust card ---------- */
.trust { margin: 24px 16px 28px; background: var(--green-soft); border-radius: 18px; padding: 16px 16px 12px; }
.trust-head { display: flex; gap: 12px; align-items: center; }
.trust-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--green); display: grid; place-items: center; flex: none; }
.trust h2 { margin: 0; font-size: 16px; font-weight: 500; }
.trust-head p { margin: 2px 0 0; font-size: 12px; color: var(--text-2); }
.trust ul { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 2px; }
.trust li { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
.trust li svg { color: var(--green); }
.trust-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px 0; }
.banner.info { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); flex-wrap: wrap; }

/* ---------- Listing cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.card .ph { height: 128px; }
.card .body { padding: 10px 12px 12px; display: grid; gap: 3px; min-width: 0; }
.price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price .unit { font-size: 12px; font-weight: 400; color: var(--text-2); }
.price .old { font-size: 12px; font-weight: 400; color: var(--text-3); text-decoration: line-through; margin-left: 4px; }
.card .title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .where { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-2); min-width: 0; margin-top: 2px; }
.card .where span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .where b { font-weight: 500; color: var(--green); white-space: nowrap; }

.card.feat { width: 236px; flex: none; scroll-snap-align: start; }
.card.feat .ph { height: 148px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.grid2 .card .ph { height: 120px; }

.fav-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  z-index: 2;
}
.fav-btn.on { color: var(--danger); }
.fav-btn.pop { animation: pop .25s; }
@keyframes pop { 50% { transform: scale(1.25); } }
.badge {
  position: absolute;
  top: 8px; left: 8px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  z-index: 2;
}
.badge.featured { background: var(--yellow); color: var(--text); }
.badge.sold { background: var(--text); color: #fff; }
.vtick { display: inline-flex; color: var(--green); vertical-align: -2px; }
.sold-veil { position: absolute; inset: 0; background: rgba(255,255,255,.55); z-index: 1; }

/* Row card (Recently added / favorites) */
.rowcard {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px;
  text-align: left;
  width: 100%;
  position: relative;
}
.rowcard .ph { width: 96px; height: 96px; border-radius: 10px; font-size: 40px; flex: none; overflow: hidden; }
.rowcard .body { flex: 1; min-width: 0; display: grid; gap: 3px; align-content: start; padding-right: 30px; }
.rowcard .title { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowcard .meta { font-size: 12px; color: var(--text-2); }
.rowcard .where { display: flex; gap: 3px; align-items: center; font-size: 12px; color: var(--text-2); }
.rowcard .where b { font-weight: 500; color: var(--green); }
.rowcard .when { font-size: 11px; color: var(--text-3); }
.rowcard .fav-btn { top: 8px; right: 8px; box-shadow: none; background: transparent; }
.rows { display: grid; gap: 10px; padding: 0 16px; }

/* ---------- Filter / sort bar ---------- */
.fsbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.fsbar .count { flex: 1; font-size: 13px; color: var(--text-2); }
.fsbar .count b { color: var(--text); font-weight: 500; }
.fs-btn {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  background: var(--surface);
}
.fs-btn.on { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.fs-btn .n { background: var(--green); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.applied { display: flex; gap: 6px; padding: 8px 16px 0; overflow-x: auto; scrollbar-width: none; }
.applied::-webkit-scrollbar { display: none; }
.applied .chip { height: 28px; font-size: 12px; background: var(--green-soft); border-color: transparent; color: var(--green-dark); }

/* ---------- Empty / error states ---------- */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 48px 32px;
}
.state .art {
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.state.err .art { background: var(--danger-soft); color: var(--danger); }
.state h3 { margin: 0; font-size: 18px; font-weight: 500; }
.state p { margin: 0; color: var(--text-2); line-height: 1.45; max-width: 280px; }
.state .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; width: 100%; max-width: 260px; }

/* ---------- Search ---------- */
.search-head { flex: none; display: flex; align-items: center; gap: 4px; padding: 8px 12px 8px 4px; background: var(--surface); border-bottom: 1px solid var(--border); }
.search-head .searchbox { height: 44px; }
.recent-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; width: 100%; text-align: left; }
.recent-row .ic { color: var(--text-3); }
.recent-row span { flex: 1; }
.suggest-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%; text-align: left; background: var(--surface); border-bottom: 1px solid var(--border); }
.suggest-row .ph { width: 44px; height: 44px; border-radius: 8px; font-size: 22px; flex: none; }
.suggest-row .t { font-size: 14px; }
.suggest-row .t mark { background: var(--yellow-soft); color: inherit; }
.suggest-row .s { font-size: 12px; color: var(--text-2); }
.suggest-row .grow { flex: 1; min-width: 0; }
.see-all { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--green); font-weight: 500; width: 100%; text-align: left; background: var(--surface); }
.sugg-cats { display: grid; gap: 8px; padding: 0 16px 16px; }
.sugg-cat { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); text-align: left; }
.sugg-cat .ph { width: 48px; height: 48px; border-radius: 10px; font-size: 26px; flex: none; }

/* ---------- Detail ---------- */
.gallery { position: relative; flex: none; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .slide { flex: none; width: 100%; height: 280px; scroll-snap-align: start; font-size: 110px; }
.gallery .g-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; z-index: 2; pointer-events: none; }
.gallery .g-top > * { pointer-events: auto; }
.gallery .g-top .actions { display: flex; gap: 8px; }
.round {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  color: var(--text);
}
.round.on { color: var(--danger); }
.gallery .count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(28,28,28,.7); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.gallery .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 5px; }
.gallery .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.7); transition: width .2s; }
.gallery .dots i.on { width: 16px; background: #fff; }

.d-block { background: var(--surface); padding: 16px; border-bottom: 8px solid var(--bg); }
.d-block h3 { margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.d-price { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.d-price .unit { font-size: 14px; font-weight: 400; color: var(--text-2); }
.d-price .old { font-size: 15px; font-weight: 400; color: var(--text-3); text-decoration: line-through; }
.drop-tag { font-size: 12px; font-weight: 500; color: var(--green-dark); background: var(--green-soft); padding: 3px 8px; border-radius: 6px; }
.d-title { margin: 4px 0 2px; font-size: 20px; font-weight: 500; }
.d-attr { color: var(--text-2); font-size: 14px; }
.d-loc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.d-loc > span { display: inline-flex; align-items: center; gap: 4px; }
.d-loc b { color: var(--green); font-weight: 500; }
.sold-banner { background: var(--text); color: #fff; padding: 10px 16px; font-size: 13px; display: flex; gap: 8px; align-items: center; }

.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.spec { padding: 10px 12px; border-bottom: 1px solid var(--border); min-width: 0; }
.spec:nth-child(odd) { border-right: 1px solid var(--border); }
.spec:nth-last-child(-n+2):nth-child(odd), .spec:last-child { border-bottom: 0; }
.spec .k { font-size: 12px; color: var(--text-2); }
.spec .v { font-size: 14px; font-weight: 500; margin-top: 2px; }
.spec .v.ok { color: var(--green); }

.desc { color: #3A3A3A; line-height: 1.55; margin: 0; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.seller-card { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  background: var(--yellow);
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  color: var(--text);
}
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }
.avatar.sm { width: 40px; height: 40px; font-size: 15px; }
.seller-card .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.seller-card .nm { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.seller-card .s { font-size: 12px; color: var(--text-2); }
.ver-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--green); font-weight: 500; }
.unver-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--warn); font-weight: 500; }

.safety { background: var(--yellow-soft); border-radius: var(--r-md); padding: 14px 16px; }
.safety h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.safety ul { margin: 0; padding-left: 20px; color: #4A4020; line-height: 1.6; font-size: 13px; }
.safety .link { font-size: 13px; display: inline-block; margin-top: 6px; }

.action-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.action-bar .btn { height: 50px; }

/* ---------- Seller profile ---------- */
.seller-hero { background: var(--surface); padding: 20px 16px; display: grid; justify-items: center; gap: 6px; text-align: center; border-bottom: 8px solid var(--bg); }
.seller-hero h2 { margin: 6px 0 0; font-size: 20px; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 12px; border: 1px solid var(--border); border-radius: var(--r-md); }
.stats > div { padding: 10px 6px; display: grid; gap: 2px; }
.stats > div + div { border-left: 1px solid var(--border); }
.stats b { font-size: 16px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11px; color: var(--text-2); }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 12px; }
.report-link { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--danger); padding: 18px; font-size: 14px; width: 100%; }

/* ---------- Tab bar ---------- */
.tabbar {
  flex: none;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11px; color: var(--text-2); position: relative; }
.tab .pillwrap { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .15s; position: relative; }
.tab.active { color: var(--green); font-weight: 500; }
.tab.active .pillwrap { background: var(--green-soft); }
.tab .n { position: absolute; top: 0; right: 10px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

/* ---------- Chat ---------- */
.chat-row { display: flex; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); width: 100%; text-align: left; align-items: center; }
.chat-row .ph { width: 56px; height: 56px; border-radius: 12px; font-size: 28px; flex: none; overflow: hidden; }
.chat-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-row .l1 { display: flex; justify-content: space-between; gap: 8px; }
.chat-row .nm { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .time { font-size: 12px; color: var(--text-3); flex: none; }
.chat-row .lst { font-size: 12px; color: var(--green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .l3 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.chat-row .msg { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row.unread .msg { color: var(--text); font-weight: 500; }
.chat-row.unread .time { color: var(--green); }
.unread-n { background: var(--green); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; flex: none; }

.chat-listing { flex: none; display: flex; gap: 10px; align-items: center; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border); width: 100%; text-align: left; }
.chat-listing .ph { width: 44px; height: 44px; border-radius: 8px; font-size: 22px; flex: none; }
.chat-listing .grow { flex: 1; min-width: 0; }
.chat-listing .t { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-listing .p { font-size: 13px; font-weight: 700; }
.msgs { padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; background: #EFF2EE; min-height: 100%; }
.day-sep { align-self: center; font-size: 11px; color: var(--text-2); background: var(--surface); padding: 3px 10px; border-radius: 10px; margin: 6px 0; }
.bubble { max-width: 78%; padding: 8px 12px 6px; border-radius: 16px; font-size: 14px; line-height: 1.4; position: relative; word-wrap: break-word; }
.bubble .bt { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.bubble.them { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: #D9F2DF; border-bottom-right-radius: 4px; }
.bubble.me .bt { color: #5D8A68; }
.bubble.failed { background: var(--danger-soft); }
.bubble .fail { color: var(--danger); font-size: 12px; display: flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 500; }
.bubble .imgmsg { width: 180px; height: 130px; border-radius: 10px; font-size: 48px; margin-bottom: 4px; }
.typing { align-self: flex-start; background: var(--surface); padding: 10px 14px; border-radius: 16px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 3px; background: var(--text-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
.quick { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 0; background: var(--surface); scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick .chip { background: var(--green-soft); border-color: transparent; color: var(--green-dark); }
.composer { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 8px 10px; background: var(--surface); }
.composer input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid var(--border); background: var(--bg); padding: 0 16px; font-size: 15px; outline: none; }
.composer input:focus { border-color: var(--green); }
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.send-btn:disabled { background: #BFD9C6; }
.blocked-bar { flex: none; padding: 14px 16px; background: var(--surface); border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-2); display: grid; gap: 6px; }

/* ---------- Notifications ---------- */
.notif { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--border); width: 100%; text-align: left; position: relative; }
.notif.unread { background: #FBFDF9; }
.notif.unread::before { content: ""; position: absolute; left: 6px; top: 22px; width: 6px; height: 6px; border-radius: 3px; background: var(--green); }
.notif .ni { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--green-soft); color: var(--green); }
.notif .ni.y { background: var(--yellow-soft); color: #7A6200; }
.notif .ni.d { background: #EDEDED; color: var(--text); }
.notif .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.notif .t { font-size: 14px; font-weight: 500; }
.notif .b { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.notif .w { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ---------- Profile ---------- */
.profile-hero { background: var(--surface); padding: 20px 16px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--border); }
.profile-hero .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.profile-hero .nm { font-size: 19px; font-weight: 500; }
.profile-hero .nm.empty { color: var(--text-2); }
.profile-hero .s { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.menu { background: var(--surface); margin-top: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.menu .list-row .ic { color: var(--text); }
.menu .val { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.menu .list-row.danger .t, .menu .list-row.danger .ic { color: var(--danger); }
.ver { text-align: center; color: var(--text-3); font-size: 12px; padding: 20px; }

.avatar-edit { display: grid; justify-items: center; gap: 8px; padding: 24px 0 8px; }
.avatar-edit .wrap { position: relative; }
.avatar-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; border: 3px solid var(--surface); }
.form { display: grid; gap: 16px; padding: 16px; }
.select-like { height: 52px; width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 0 14px; display: flex; align-items: center; gap: 8px; font-size: 16px; text-align: left; }
.select-like span { flex: 1; }

/* ---------- Help / static ---------- */
.faq { background: var(--surface); border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; color: var(--text-2); }
.faq[open] summary svg { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 16px 14px; color: var(--text-2); line-height: 1.5; font-size: 13px; }
.contact-card { margin: 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 10px; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.contact-line .grow { flex: 1; user-select: all; }
.prose { padding: 16px; line-height: 1.6; color: #3A3A3A; }
.prose h3 { font-size: 15px; margin: 18px 0 6px; color: var(--text); font-weight: 500; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 8px; }
.guide { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.guide .ni { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow-soft); color: #7A6200; display: grid; place-items: center; flex: none; }
.guide .t { font-weight: 500; font-size: 14px; }
.guide .b { font-size: 13px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }

/* ---------- Banner ---------- */
.banner { margin: 12px 16px 0; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner .grow { flex: 1; }

/* ---------- Overlay: sheet & modal ---------- */
.overlay { position: absolute; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 88%;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: #D5D5D5; margin: 8px auto 0; flex: none; }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; }
.sheet-head h3 { margin: 0; font-size: 18px; font-weight: 500; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 16px; }
.sheet-foot { flex: none; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; font-size: 15px; }
.opt:last-child { border-bottom: 0; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text-3); flex: none; display: grid; place-items: center; }
.opt.on .radio { border-color: var(--green); }
.opt.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.opt .grow { flex: 1; }
.fgroup { padding: 14px 0; border-bottom: 1px solid var(--border); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 { margin: 0 0 10px; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; }
.fgroup h4 small { color: var(--text-2); font-weight: 400; }
.fwrap { display: flex; flex-wrap: wrap; gap: 8px; }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.price-inputs .input { height: 44px; font-size: 14px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: #CFCFCF; position: relative; transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(18px); }

.modal-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.modal { position: relative; background: var(--surface); border-radius: 20px; padding: 22px 20px 14px; width: 100%; max-width: 320px; animation: fade .15s; }
.modal h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; }
.modal p { margin: 0; color: var(--text-2); line-height: 1.45; }
.modal .num { font-size: 16px; color: var(--text); font-weight: 500; margin-top: 8px; font-variant-numeric: tabular-nums; user-select: all; }
.modal .m-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 16px; }
.modal .m-actions .btn { height: 40px; padding: 0 16px; }

/* Location permission mock dialog */
.perm { text-align: center; }
.perm .pi { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.perm .m-actions { flex-direction: column; gap: 0; align-items: stretch; }
.perm .m-actions .btn { height: 44px; border-radius: 0; border-top: 1px solid var(--border); color: var(--green); }

.toast {
  position: absolute;
  left: 16px; right: 16px; bottom: 84px;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  z-index: 60;
  animation: up .2s ease-out;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.toast .link { color: var(--yellow); }

.spinner { width: 22px; height: 22px; border: 3px solid rgba(19,138,54,.2); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.skel { background: linear-gradient(90deg, #EEE 25%, #F6F6F6 50%, #EEE 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-md); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Reviewer panel ---------- */
.devpanel {
  width: 300px;
  max-width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  font-family: var(--font);
}
.devpanel h2 { margin: 0; font-size: 16px; font-weight: 500; }
.devpanel h3 { margin: 18px 0 8px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.dev-note { margin: 4px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.dev-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 12px; background: var(--bg); }
.dev-btn:hover { border-color: var(--green); }
.dev-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.dev-toggle input { accent-color: var(--green); width: 16px; height: 16px; }
.dev-tips { margin: 0; padding-left: 18px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
