/* MarketMate "v9 workspace x fresh grid" design system (Task 64).
   Mobile-first, no external assets. Tokens and components follow
   docs/ui/v9-clickup-workspace.html (owner-approved). */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2"),
       url("fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Regular.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+25CC, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans";
  font-weight: 700;
  src: url("fonts/NotoSans-Bold.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+25CC, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Tamil";
  src: url("fonts/NotoSansTamil-Regular.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}
@font-face {
  font-family: "Noto Sans Tamil";
  font-weight: 700;
  src: url("fonts/NotoSansTamil-Bold.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("fonts/NotoSansDevanagari-Regular.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0900-097F, U+A830-A83F;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-weight: 700;
  src: url("fonts/NotoSansDevanagari-Bold.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0900-097F, U+A830-A83F;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("fonts/NotoSansBengali-Regular.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0980-09FF;
}
@font-face {
  font-family: "Noto Sans Bengali";
  font-weight: 700;
  src: url("fonts/NotoSansBengali-Bold.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0980-09FF;
}
@font-face {
  font-family: "Noto Sans Telugu";
  src: url("fonts/NotoSansTelugu-Regular.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0C00-0C7F;
}
@font-face {
  font-family: "Noto Sans Telugu";
  font-weight: 700;
  src: url("fonts/NotoSansTelugu-Bold.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0C00-0C7F;
}
@font-face {
  font-family: "Noto Sans Kannada";
  src: url("fonts/NotoSansKannada-Regular.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0C80-0CFF;
}
@font-face {
  font-family: "Noto Sans Kannada";
  font-weight: 700;
  src: url("fonts/NotoSansKannada-Bold.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0C80-0CFF;
}

:root {
  /* Task 122 (v12): teal green + soft blue marketplace theme. Every
     text pair below is >= 4.5:1 (see test_task122.py). */
  --ink: #102A33;
  --ink2: #3C4048;
  --muted: #56707A;
  --line: #E2EAEE;
  --line-2: #E2EAEE;
  --soft: #F0F2F5;
  --bg: #F3F8FA;
  --surface: #FFFFFF;
  --accent: #0F766E;
  --accent-ink: #115E59;
  --accent-soft: #E6FAF6;
  --accent-bright: #14B8A6;
  --grad: linear-gradient(135deg,#0F766E,#0EA5A4 50%,#38BDF8);
  --green: #0F7F3F;
  --green-soft: #E8F7EE;
  --amber: #8A5208;
  --amber-soft: #FFF5E3;
  --amber-border: #EAC98F;
  --red: #C4363B;
  --red-soft: #FDECEC;
  --rec: #E5484D;
  --blue: #0369A1;
  --blue-soft: #E8F4FD;
  --blue-ink: #0369A1;
  --sky: #38BDF8;
  --sky-pale: #7DD3FC;
  --teal-glow: #5EEAD4;
  --todo: #5F6672;
  --todo-soft: #F0F1F3;
  --chrome: #0B2A33;
  --chrome-2: #123A44;
  --chrome-line: #1E4A55;
  --chrome-txt: #C8CCD3;
  --chrome-on: #134E4A;
  --chrome-accent: #5EEAD4;
  --avatar-0: #C2337A;
  --avatar-1: #1F5FBF;
  --avatar-2: #0F7F3F;
  --avatar-3: #0F766E;
  --avatar-4: #8A5208;
  --input-border: #E2EAEE;
  --card: #ffffff;
  --r-card: 14px;
  --r-pill: 999px;
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-sm: 10px;
  --radius-chip: 7px;
  --shadow: 0 1px 2px rgba(41, 45, 52, 0.05), 0 10px 28px rgba(41, 45, 52, 0.07);
  --shadow-card: 0 1px 2px rgba(41, 45, 52, 0.05), 0 10px 28px rgba(41, 45, 52, 0.07);
  --shadow-lift: 0 10px 28px rgba(41, 45, 52, 0.12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --tap: 48px;
  /* Measured seller bottom-nav height (~83px, wrapped labels) + notch. */
  --bnav-h: calc(84px + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans", "Noto Sans Tamil", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Telugu", "Noto Sans Kannada", system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Inter", "Noto Sans Tamil", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Telugu", "Noto Sans Kannada", system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 700;
  hyphens: manual;
}
h1 { font-size: 1.5rem; margin: 0 0 var(--space-3); letter-spacing: -0.02em; }
h2 { font-size: 1.2rem; margin: var(--space-5) 0 var(--space-2); }
h3 { font-size: 1.05rem; margin: var(--space-4) 0 var(--space-2); }
p { margin: 0 0 var(--space-3); }
a { color: var(--accent-ink); }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- App shell: honesty strip + white sticky header ---- */
.ann {
  background: #fff;
  color: var(--ink2);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line);
}
.ann .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 7px;
}
.lang {
  display: inline-flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px;
  flex: none;
}
.lang a, .lang button, .lang b {
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  padding: 3px 9px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.lang a.on, .lang button.on, .lang b.on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
/* Task 109: on narrow phones the seller status strip stacks — its text
   gets a full-width row (at most two lines) and the language switch
   moves below it, instead of squeezing the text into five lines. */
@media (max-width: 480px) {
  body.is-seller .ann { flex-wrap: wrap; }
  body.is-seller .ann > span:first-child { flex: 1 1 100%; min-width: 0; }
  body.is-seller .ann .lang { margin-left: auto; }
}
.hdr {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  min-height: var(--tap);
}
.logo .brand-logo {
  height: 28px;
  width: auto;
  display: block;
  flex: none;
}
/* Task 150: the tile mark shows only on seller phones (≤700px), where
   the header is one 56px row and the full logo gives way to the mark. */
.hdr .brand-mark { display: none; }
.logo .wordmark {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a {
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav a.on { background: var(--accent-soft); color: var(--accent-ink); }
.hdr .sp { flex: 1; }
.hdr { flex-wrap: wrap; }
.hdr .crumb {
  display: none;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}
.hdr .crumb b { color: var(--ink); }
.hdr .shop-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.circ {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  position: relative;
  flex: none;
}
.circ em {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 6px;
  font-style: normal;
}
/* Task 150: seller profile menu. The round button is a <details>
   disclosure; its menu holds the Settings link plus the language
   switch, so phones need no separate language row. */
.hdr .prof { position: relative; flex: none; margin: 0; }
.hdr .prof > summary { list-style: none; cursor: pointer; }
.hdr .prof > summary::-webkit-details-marker { display: none; }
.hdr .prof > summary::marker { content: ""; }
.hdr .prof-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 220px;
  max-width: min(78vw, 280px);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hdr .prof-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
}
.hdr .prof-link:hover { background: var(--accent-soft); }
.hdr .prof-lang {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 4px 0 0;
  gap: 2px;
}
.hdr .prof-lang button {
  min-height: 44px;
  justify-content: flex-start;
  font-size: 14px;
  padding: 8px 12px;
}
.hdr .prof-lang button.on {
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: none;
}
/* Seller laptop shell (v9 workspace): dark top bar across the full width,
   dark icon rail under it on the left. Hidden below 1000px, where the
   white phone header + bottom nav take over. */
.rail, .topbar { display: none; }
@media (min-width: 1000px) {
  body:has(.rail) .topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 31;
    background: var(--chrome);
    color: #fff;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
  }
  body:has(.rail) .rail {
    display: flex;
    position: fixed;
    left: 0;
    top: 50px;
    bottom: 0;
    width: 80px;
    z-index: 30;
    background: var(--chrome);
    color: var(--chrome-txt);
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
  }
  body:has(.rail) {
    padding-top: 50px;
  }
  body:has(.rail) .ann,
  body:has(.rail) .hdr { display: none; }
  body:has(.rail) .shell,
  body:has(.rail) .footer { margin-left: 80px; }
  .topbar .ws {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13.5px;
    min-width: 0;
    max-width: 300px;
    color: #fff;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .topbar .ws .brand-mark {
    width: 26px;
    height: 26px;
    flex: none;
  }
  .topbar .kbd {
    margin: 0 auto;
    border: 1px solid var(--chrome-line);
    border-radius: 9px;
    padding: 6px 12px;
    color: var(--chrome-txt);
    font-size: 12.5px;
    font-family: inherit;
    width: min(420px, 40vw);
    background: var(--chrome-2);
  }
  .topbar .kbd::placeholder { color: var(--chrome-txt); opacity: 0.8; }
  .topbar .seg {
    display: flex;
    border: 1px solid var(--chrome-line);
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
    flex: none;
  }
  .topbar .seg button, .topbar .seg a {
    padding: 4px 9px;
    color: var(--chrome-txt);
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
  }
  .topbar .seg .on { background: var(--chrome-on); color: #fff; }
  .topbar .pill.cta { min-height: 38px; padding: 6px 12px; font-size: 13px; flex: none; }
  .topbar .iconbtn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--chrome-line);
    background: none;
    color: var(--chrome-txt);
    cursor: pointer;
    flex: none;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
  }
  .topbar .iconbtn .icon { width: 18px; height: 18px; }
  .topbar .iconbtn.is-off { opacity: 0.45; text-decoration: line-through; }
  .rail .brand-mark {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    flex: none;
  }
  .rail .ic {
    width: 64px;
    padding: 8px 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--chrome-txt);
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: keep-all;
    position: relative;
  }
  .rail .ic span:not(.nbadge) {
    font-size: 10px;
    overflow-wrap: normal;
    word-break: keep-all;
  }
  .rail .ic .icon { width: 20px; height: 20px; }
  .rail .ic.on { background: var(--chrome-on); color: #fff; }
  .rail .ic.more { margin-top: auto; }
  .rail .nbadge {
    position: absolute;
    top: 2px;
    right: 6px;
    margin-left: 0;
  }
}
/* Seller phone header: white bar with logo + shop status chip. */
body.is-seller .hdr .seller-status { margin-left: auto; }
@media (max-width: 999.98px) {
  body.is-seller .hdr .seller-status { display: inline-flex; }
}
@media (min-width: 1000px) {
  body.is-seller .hdr .seller-status { display: none; }
}
/* Breadcrumb at the top of the seller content area (laptop only). */
.crumb {
  display: none;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.crumb b { color: var(--ink); font-weight: 700; }
@media (min-width: 1000px) {
  body:has(.rail) .crumb { display: block; }
}
.desk-only { display: none !important; }

.shell { display: block; }
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-6);
}

/* Seller bottom nav (phones only; hidden on desktop below). */
.bnav {
  position: sticky;
  bottom: 0;
  z-index: 7;
  margin-top: auto;
  min-height: var(--bnav-h);
  background: #fff;
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 8px 4px 12px;
}
.bnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  /* Task 109: five equal flexible columns, so every item fits 320px. */
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--tap);
  justify-content: center;
  padding: 4px 2px;
  border-radius: 14px;
  text-align: center;
}
.bnav a.on { color: var(--ink); }
.bnav .icon { width: 22px; height: 22px; }
.bnav .mic { background: none; }
.bnav .mic span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.35);
  margin-top: -26px;
}
.bnav .mic .icon { width: 26px; height: 26px; }
/* Task 109: bottom-nav labels wrap to two lines at a smaller size (never
   below 11px) instead of pushing the last item off a 320px screen.
   Task 111: wrap only between words — never mid-word (Tamil "ஆர்டர்கள்"
   split as "ஆர்டர்க"/"ள்" with anywhere).
   Task 113: explicit normal wrapping at word boundaries on every seller
   page, so the five equal columns fit 320px in every language. */
.bnav a .bl {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.bnav .mic .bl {
  width: auto;
  height: auto;
  margin-top: 0;
  padding: 0;
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
  /* Task 111: the white icon-circle rule (.bnav .mic span) must not leak
     onto the label — inherit the anchor ink like every other label. */
  color: inherit;
}
@media (max-width: 359.98px) {
  .bnav a .bl { font-size: 11px; }
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: var(--space-5) var(--space-4) var(--space-6);
  border-top: 1px solid var(--line-2);
}

/* ---- Guide type: kicker, big headline, section titles ---- */
.kick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 var(--space-2);
}
.kick::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.hero-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}
h1.big {
  font-size: 34px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
}
h1.big em {
  font-style: normal;
  color: var(--accent-ink);
}
h2.h2s {
  font-size: 24px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
.lead { color: var(--muted); font-size: 15px; margin: 0 0 var(--space-3); }

/* ---- Guide trio: feature tiles with pastel icon squares ---- */
.trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: var(--space-3) 0;
}
.tri { display: flex; flex-direction: column; gap: 5px; }
.tri .tile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
  border: 0;
  padding: 0;
  min-height: 0;
  background: var(--green-soft);
  color: var(--accent-ink);
}
.tri .tile.m { background: linear-gradient(160deg, #E8F7EE, #E8F7EE); color: var(--accent-ink); }
.tri .tile.s { background: var(--blue-soft); color: var(--blue-ink); }
.tri .tile.y { background: linear-gradient(160deg, #FFF5E3, #FFF5E3); color: #8A5208; }
.tri b { font-size: 18px; font-weight: 800; color: var(--ink); }
.tri small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* ---- Honesty notice: accent-soft with accent-ink text and a check ---- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 0;
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--accent-ink);
  font-size: 13px;
  background: var(--accent-soft);
  margin: var(--space-3) 0;
}
.notice .icon { color: var(--accent-ink); margin-top: 1px; flex: none; }
.notice.need { background: var(--amber-soft); color: #8A5208; }
.notice.need .icon { color: #8A5208; }
.banner {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: var(--space-3) 0;
}

/* ---- Guide search pill with mic + chips with counts ---- */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  box-shadow: none;
  margin: 0 0 var(--space-3);
}
.search .ph { flex: 1; }
.search .ph b { color: var(--ink); }
.search .mic {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.search .mic .icon { width: 16px; height: 16px; }
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.chip {
  display: inline-block;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-chip);
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
/* v9 status labels: dotted uppercase chips. .c-new/.c-pack/.c-ready/.c-done/
   .c-unpaid/.c-live/.c-need/.c-todo also restyle the legacy .pill-* badges. */
.chip.c-new, .chip.c-pack, .chip.c-ready, .chip.c-done,
.chip.c-unpaid, .chip.c-live, .chip.c-need, .chip.c-todo,
.pill.pill-quote, .pill.pill-packing, .pill.pill-ready, .pill.pill-paid,
.pill.pill-done, .pill.pill-billed, .pill.pill-live, .pill.pill-check,
.pill.pill-credit, .pill.pill-danger, .pill.pill-soldout, .pill.pill-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-chip);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 0;
  min-height: 0;
  white-space: nowrap;
  overflow-wrap: anywhere;
}
.chip.c-new::before, .chip.c-pack::before, .chip.c-ready::before,
.chip.c-done::before, .chip.c-unpaid::before, .chip.c-live::before,
.chip.c-need::before, .chip.c-todo::before,
.pill.pill-quote::before, .pill.pill-packing::before, .pill.pill-ready::before,
.pill.pill-paid::before, .pill.pill-done::before, .pill.pill-billed::before,
.pill.pill-live::before, .pill.pill-check::before, .pill.pill-credit::before,
.pill.pill-danger::before, .pill.pill-soldout::before, .pill.pill-info::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip.c-new, .pill.pill-quote { background: var(--accent-soft); color: var(--accent-ink); }
.chip.c-pack, .pill.pill-packing { background: var(--amber-soft); color: var(--amber); }
.chip.c-ready, .pill.pill-ready, .pill.pill-paid { background: var(--green-soft); color: var(--green); }
.chip.c-done, .pill.pill-done, .pill.pill-soldout, .pill.pill-info { background: var(--soft); color: var(--muted); }
.chip.c-unpaid, .pill.pill-billed, .pill.pill-danger { background: var(--red-soft); color: var(--red); }
.chip.c-live, .pill.pill-live { background: var(--green-soft); color: var(--green); }
.chip.c-need, .pill.pill-check, .pill.pill-credit { background: var(--amber-soft); color: var(--amber); }
.chip.c-todo { background: var(--todo-soft); color: var(--todo); }
/* Customer section tabs: accent underline instead of boxes. */
.chips.tabs { gap: 18px; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); }
.chips.tabs .chip { border: 0; background: none; border-radius: 0; padding: 8px 2px 10px; color: var(--muted); font-weight: 700; }
.chips.tabs .chip.on { background: none; border-bottom: 2px solid var(--accent); color: var(--accent-ink); }
.chips.tabs .chip.on small { color: var(--accent-ink); }
.chip small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on small { color: #C8CCD3; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active small { color: #C8CCD3; }
a.chip { color: var(--ink); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
a.chip.on, a.chip.is-active { color: #fff; }
button.chip {
  min-height: var(--tap);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

/* ---- Buttons: .btn dark, .btn-primary accent-ink, .btn-ghost white ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 11px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  background: var(--ink);
  color: #fff;
}
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-green { background: var(--accent-ink); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-big { width: 100%; font-size: 1.15rem; padding: var(--space-4); }
.btn-small { min-height: var(--tap); padding: var(--space-2) var(--space-3); font-size: 0.9rem; }
.btn[disabled] { background: var(--line-2); color: var(--muted); cursor: default; }

/* ---- Guide pill buttons (.pill dark / cta / ghost map to .btn) ----
   Bare .pill stays the small status badge used across templates. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-btn);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}
.pill.dark {
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 18px;
  border: 1.5px solid transparent;
  min-height: 46px;
  justify-content: center;
}
.pill.cta {
  background: var(--accent-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 18px;
  border: 1.5px solid transparent;
  min-height: 46px;
  justify-content: center;
}
.pill.ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 11px 18px;
  border: 1.5px solid var(--line-2);
  min-height: 46px;
  justify-content: center;
}
.pill.bar {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 11px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  min-height: 46px;
  justify-content: center;
}
.pill.sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.pill.big { padding: 15px 24px; font-size: 16px; min-height: 54px; }
.pill.dark svg, .pill.cta svg, .pill.ghost svg, .pill.bar svg { width: 18px; height: 18px; flex: none; }
/* Long Tamil/Hindi button labels wrap instead of pushing the page
   sideways on phones; status badges keep their single line. */
@media (max-width: 480px) {
  .pill.cta, .pill.ghost, .pill.dark, .pill.bar {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ---- Task 60: new-order alert badge + banners ---- */
.nbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  margin-left: 6px;
}
.nbadge[hidden] { display: none; }
.nav .nbadge { margin: 0 6px 0 0; }
.order-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bnav-h) + 12px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--accent-ink);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(41, 45, 52, 0.25);
}
.order-banner[hidden] { display: none; }
.ready-banner {
  background: var(--green-soft);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  font-weight: 800;
  text-align: center;
}
.ready-banner[hidden] { display: none; }

/* ---- Alerts: needs-you is amber-soft, never blue ---- */
.alert {
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  font-size: 0.95rem;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
}
.alert-info { background: var(--blue-soft); border: 1px solid var(--blue-ink); color: var(--blue-ink); }
.alert-warn { background: var(--amber-soft); border: 1px solid var(--amber-border); color: var(--amber); }
.alert-ok { background: var(--green-soft); border: 1px solid var(--green); color: var(--green); }
[data-offline-banner] { border-color: var(--amber-border); }

/* ---- Cards, tiles, rows ---- */
.card, .carried-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-card);
}
.card.soldout { opacity: 0.6; }

/* v9 product tile: square photo, ADD on the photo corner, green price label. */
.grid-products article.card, .tap-grid article.card {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
  overflow: visible;
}
.card .pw { position: relative; }
.card .ph {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .ph img[data-cutout] {
  object-fit: contain;
  padding: 10%;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18));
}
.card .ph.cut { background: radial-gradient(circle at 50% 60%, #fff 0, #fff 55%, #F2F3F5 100%); }
.card .ph.cut img[data-cutout] { object-fit: contain; padding: 10%; }
.card .ph.cut img:not([data-cutout]) { object-fit: cover; padding: 0; filter: none; }
.card .ph.letter {
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--radius-chip);
  text-transform: uppercase;
}
.card .tag.g { background: var(--accent-soft); color: var(--accent-ink); }
.card .bd { padding: 0; display: flex; flex-direction: column; gap: 4px; }
.card .kk {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.card .bd h3 { margin: 0; font-size: 16.5px; line-height: 1.2; color: var(--ink); }
.card .bd h3 small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.card .sizes { display: flex; gap: 5px; flex-wrap: wrap; }
.card .sz {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 9px;
  border: 1.5px solid var(--line-2);
  background: #fff;
}
.card .sz.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.card .pr { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 8px; margin-top: 2px; flex-wrap: wrap; }
.card .pr b { font-size: 22px; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.card .pr small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
/* Green price label + muted per-unit, local name (2 lines max), variety tag. */
.card .price { margin-top: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card .price .pp { background: var(--green); color: #fff; font-weight: 800; border-radius: var(--radius-chip); padding: 1px 7px; font-size: 13px; }
.card .price .per { color: var(--muted); font-size: 11.5px; }
.card .nm { font-size: 12.5px; font-weight: 700; line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.card .var { display: inline-block; align-self: flex-start; margin-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: 0 6px; overflow-wrap: anywhere; }
.card .add {
  position: absolute;
  right: 6px;
  bottom: -12px;
  background: #fff;
  color: var(--accent-ink);
  border: 1.5px solid var(--accent);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.18);
  font-family: inherit;
}
.card .step {
  position: absolute;
  right: 6px;
  bottom: -12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--accent-ink);
  color: #fff;
  border-radius: 9px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}
.card .step i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.card.out { opacity: 0.55; }
.card.out .ph { filter: grayscale(0.4); }

/* ---- Task 49 customer pages: hero, shop cards, cart, sheets ---- */
[hidden] { display: none !important; }
.hero2 { display: flex; flex-direction: column; gap: 14px; }
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta > * { min-width: 0; }
.hero2 + .kick { margin-top: var(--space-5); }
.hero-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 200px 200px 28px 28px;
  display: block;
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  min-width: 0;
  min-height: 44px;
}
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--accent); }
.chip { min-height: 44px; display: inline-flex; align-items: center; }
button.chip { font: inherit; cursor: pointer; }
.card .ph .nophoto {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.card .bd h3 { overflow-wrap: anywhere; }
.card .bd h3 .tname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card button.sz {
  background: #fff;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* Photo-corner ADD/stepper stay compact; body buttons keep tap targets. */
.card .bd .add { min-height: 44px; }
.card .pw .step { gap: 4px; }
.card .pw .step button {
  width: 28px;
  height: 28px;
  min-height: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}
.card .bd .step button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.card .step [data-step-qty] { padding: 0 4px; }
.search .mic { width: 44px; height: 44px; border: 0; cursor: pointer; font: inherit; padding: 0; }
.accent-ink { color: var(--accent-ink); }
.card .tag.inline { position: static; display: inline-block; vertical-align: middle; }
.bill-qr { text-align: center; }
.bill-qr img { width: 120px; height: 120px; }
.bill-qr small { display: block; margin-top: 6px; }
div.desk-only[hidden] { display: none !important; }
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(41, 45, 52, 0.45);
}
.sheet {
  position: relative;
  background: var(--bg);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: auto;
  border-radius: 16px 16px 0 0;
  padding: 12px 16px 32px;
  box-shadow: 0 -18px 40px -18px rgba(41, 45, 52, 0.5);
}
.sheet .grab {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-2);
  margin: 0 auto 12px;
}
.sheet .live-captions { min-height: 48px; }
.sheet .live-last {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.sheet .live-partial { color: var(--muted); margin: 0 0 8px; }
.sheet .live-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.sheet [data-live-order-list] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.sheet [data-live-order-list] .list-row {
  background: var(--green-soft);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-bottom-width: 1.5px;
}
.sheet [data-live-order-list] .list-row::before {
  content: "✓";
  font-weight: 800;
  color: var(--green);
}
.sheet [data-live-order-list] .list-row.is-unknown {
  background: var(--amber-soft);
  border-color: var(--ink);
}
.sheet [data-live-order-list] .list-row.is-unknown::before {
  content: "?";
  color: var(--ink);
}
.sheet [data-live-order-list] .list-main { flex: none; }
.sheet [data-live-order-list] .list-sub { display: inline; margin-left: 6px; }
.sheet [data-live-order-list] .list-price { font-size: 14px; }

/* Floating bar (cart / bill). Customer cart bar uses the brand gradient. */
.float {
  position: sticky;
  bottom: 12px;
  margin: auto 12px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 10px 10px 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 30px -14px rgba(41, 45, 52, 0.6);
  z-index: 6;
}
.float.shop-float {
  background: var(--accent-ink);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.35);
}
.float .t { flex: 1; }
.float .t b { display: block; font-size: 17px; font-weight: 800; }
.float .t small { opacity: 0.85; font-size: 12px; }

/* v9 light stat band (replaces the dark band): white cards, soft icon squares. */
.band {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-card);
}
.band .gcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc .gi {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent-ink);
}
.gc .gi.g { background: var(--green-soft); color: var(--green); }
.gc b { font-size: 26px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.gc small { color: var(--muted); font-size: 12.5px; }

/* Guide timeline with the amber "RIGHT NOW" marker. */
.tline { position: relative; display: flex; justify-content: space-between; padding: 22px 4px 0; }
.tline::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 36px;
  border-top: 2.5px dashed #C8CCD3;
}
.tline .st {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 70px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--muted);
}
.tline .st i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--accent);
  display: grid;
  place-items: center;
  font-style: normal;
}
.tline .st.d i { background: var(--accent-ink); color: #fff; }
.tline .st.n i { background: var(--amber-soft); border-color: var(--ink); box-shadow: 0 0 0 6px var(--amber-soft); }
.tline .st.n { color: var(--ink); }
.tline .st .now {
  position: absolute;
  top: -24px;
  background: var(--ink);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Guide receipt, UPI standee, change box. */
.rcpt {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: var(--space-3) 0;
}
.rcpt .rl { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.rcpt .rl b { font-weight: 700; }
.rcpt .rl small { display: block; color: var(--muted); font-size: 12px; }
.rcpt .rt { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.rcpt .rt b { font-size: 30px; font-weight: 800; color: var(--ink); }
.upi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  margin: var(--space-3) 0;
}
.upi .h { background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 9px; border-bottom: 1px solid var(--line); }
.upi .qr { width: 168px; height: 168px; margin: 14px auto 4px; display: block; }
.upi .a { font-size: 30px; font-weight: 800; color: var(--ink); }
.upi .p { color: var(--muted); font-size: 12.5px; padding-bottom: 10px; }
.upi .apps { border-top: 1px dashed var(--line-2); padding: 8px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }
.change {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--green);
}
.change b { font-size: 28px; font-weight: 800; }

/* Guide live camera + heard rows (amber-soft when it needs a tap). */
.cam { border-radius: var(--r-card); overflow: hidden; position: relative; height: 260px; background: var(--ink); }
.cam img { width: 100%; height: 100%; object-fit: cover; }
.cam .rec {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rec);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
}
.cam .cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(41, 45, 52, 0.82);
  color: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
}
.cam .cap mark { background: var(--amber-soft); color: var(--ink); border-radius: 5px; padding: 0 4px; }
.heard {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px 11px;
  box-shadow: var(--shadow);
  margin-bottom: var(--space-2);
}
.heard img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.heard .n { flex: 1; }
.heard .n b { display: block; font-size: 15px; font-weight: 700; }
.heard .n small { color: var(--muted); font-size: 12px; }
.heard .p { font-size: 18px; font-weight: 800; color: var(--ink); }
.heard .ok {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
}
.heard .ask {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex: none;
}
.heard.need { border-color: var(--amber-border); background: var(--amber-soft); }

/* ---- Dashboard tiles, list rows, steppers ---- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.tiles-four { grid-template-columns: repeat(2, 1fr); }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-height: 96px;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: var(--space-3) var(--space-2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.tile svg { width: 24px; height: 24px; color: var(--accent-ink); }
.tile.is-disabled { color: var(--muted); }
.tile-sub { font-size: 13px; font-weight: 700; color: var(--accent-ink); }

.list-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-2);
  margin-bottom: var(--space-2);
}
.list-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--muted);
}
img.list-thumb[data-cutout],
.mini img[data-cutout] {
  object-fit: contain;
  background: #fff;
}
.list-thumb svg { width: 24px; height: 24px; }
.list-main { flex: 1; min-width: 0; }
.list-name { display: block; font-weight: 700; }
.list-sub { display: block; color: var(--muted); font-size: 0.85rem; }
.list-price { text-align: right; font-weight: 800; white-space: nowrap; color: var(--ink); }
.list-price small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.list-action { flex: none; }

.stepper { list-style: none; margin: var(--space-4) 0; padding: 0; display: flex; gap: var(--space-2); }
.stepper li {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding-top: var(--space-3);
  border-top: 4px solid var(--line-2);
}
.stepper li.is-done { color: var(--accent-ink); border-color: var(--accent); }
.stepper li.is-now { color: var(--ink); border-color: var(--accent-ink); }
span.stepper { align-items: center; margin: 0; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.2em;
}
/* Real-world object icons (Task 79): Fluent Emoji Flat <img>s. Sizes are
   fixed per role: 20px inline in buttons, 24px nav, 28px soft squares,
   56px empty states. Width/height attributes match to avoid layout shift. */
.obj { flex: none; vertical-align: -0.25em; }
.rail .ic .obj { width: 24px; height: 24px; }
.bnav .obj { width: 24px; height: 24px; }
.bnav .mic .obj { width: 26px; height: 26px; }
.bnav .mic i.mic-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
}
.pill.dark .obj, .pill.cta .obj, .pill.ghost .obj, .pill.bar .obj,
.btn .obj { width: 20px; height: 20px; }
.stat-icon .obj, .gc .gi .obj, .tri .tile .obj,
.record-card > .obj, .drop-zone .obj, .entry-card .obj {
  width: 28px;
  height: 28px;
}
.empty-state .obj, .empty-shop .obj { width: 56px; height: 56px; }
.notice .obj, .paid-state .obj, .chip .obj, .mini-links .obj,
.field label .obj { width: 20px; height: 20px; }
.notice .obj { margin-top: 1px; }
.gh .obj, .kick .obj, .h2s .obj, .circ .obj { width: 24px; height: 24px; }
.pill-live .obj, .pill-check .obj { width: 20px; height: 20px; }
.mic-btn .icon { width: 28px; height: 28px; }
.empty-state .icon { width: 40px; height: 40px; }

/* ---- Sticky bar / empty state ---- */
.sticky-bar {
  position: sticky;
  bottom: 0;
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(41, 45, 52, 0.12);
}
.sticky-bar .btn { width: 100%; }
.content:has(.sticky-bar) { padding-bottom: 140px; }

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin: var(--space-4) 0;
}
.empty-state svg { width: 44px; height: 44px; color: var(--accent); }
.empty-state h1, .empty-state h2 { margin-top: var(--space-3); }
.empty-state p { color: var(--muted); }

/* ---- Forms ---- */
.field { margin: 0 0 var(--space-4); }
.field label, .field-legend { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.help { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: var(--space-1); }
input, select, textarea {
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }
input[type="file"] { padding: var(--space-2); }
.form-error { color: var(--red); font-weight: 700; }

/* ---- Home: hero, entries, steps ---- */
.hero {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
}
.hero h1 { font-size: 1.7rem; margin-bottom: var(--space-2); color: var(--ink); }
.hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
}
.hero p { color: var(--muted); margin: 0; }
.hero .btn { margin-top: var(--space-4); }

.entry-grid { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.entry-card h2 { margin-top: 0; }
.entry-card svg { width: 28px; height: 28px; color: var(--accent-ink); }

.steps { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: var(--space-3); }
.steps li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-3) var(--space-4);
}
.steps svg { width: 28px; height: 28px; flex: none; color: var(--accent-ink); }
.steps b { display: block; }
.steps small { color: var(--muted); }
.honesty { text-align: center; color: var(--accent-ink); font-weight: 700; margin: var(--space-5) 0; }

/* ---- Seller dashboard ---- */
.shopcard {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.shopcard h1 { font-size: 1.35rem; margin: 0; color: var(--ink); }
.shopcard .sub { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.shopcard .pill-live { margin-top: var(--space-3); }
.shopcard .btn { background: var(--accent-ink); color: #fff; border-color: transparent; }
.linkrow { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
/* Long public links (bill QR card) wrap instead of overflowing. */
.shop-link { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.linkrow .shop-link {
  flex: 1;
  min-width: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.linkrow .btn { min-height: var(--tap); padding: var(--space-2) var(--space-3); font-size: 0.9rem; }

.cta-card { border: 2px solid var(--accent-ink); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-2);
}
.section-head h2 { margin: 0; }

.session-row, .version-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  min-height: var(--tap);
}
.session-row a, .version-row a { font-weight: 700; }
.row-main { flex: 1; min-width: 0; }
.inline-form { display: inline; margin: 0; }

/* ---- Customer grid: 3 columns on phones, 2 under 360px ----
   Task 146: minmax(0, 1fr) columns (+ min-width:0 cards) so Tamil names
   and chip rows wrap inside 320/390px screens instead of forcing the
   grid wider than the phone. */
.grid-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; max-width: 100%; }
@media (max-width: 359.98px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Horizontally scrolling tile rows for sections with many items. */
.hs { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 4px; }
.hs .t, .hs article.card { flex: 0 0 112px; }

/* ---- Legacy shared bits ---- */
.page { max-width: 720px; margin: 0 auto; padding: var(--space-4); }
.muted { color: var(--muted); }
.photo { width: 100%; border-radius: var(--radius-sm); }
.name-en { color: var(--muted); font-size: 1rem; }
.quote {
  margin: 10px 0;
  padding: 8px 10px;
  background: var(--soft);
  border-radius: var(--radius-sm);
}
.opt-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  font-size: 1.2rem;
  margin: 8px 0;
  background: #fff;
  border: 2px solid var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
}
.flag-blocking { background: var(--red-soft); border-radius: var(--radius-sm); padding: 8px 10px; }
.opt-btn.chosen { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.opt-btn.chosen::before { content: "✓ "; }
.line { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0; }
.line-remove {
  font-size: 0.9rem;
  padding: 8px 12px;
  min-height: var(--tap);
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.card-confirm { display: block; font-size: 1.05rem; margin: 12px 0; }
.card-confirm input { min-height: 24px; width: 24px; vertical-align: middle; }
.flag-note { color: var(--muted); font-size: 0.85rem; }
.price-line { margin: 4px 0; }
.basket .card { margin: 12px 0; }

/* ---- Review, shop, market, update ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.review-head { margin-bottom: var(--space-3); }
.review-head h1 { margin-bottom: var(--space-1); }
progress.progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 9px;
  background: var(--line-2);
}
progress.progress::-webkit-progress-bar { background: var(--line-2); border-radius: 9px; }
progress.progress::-webkit-progress-value { background: var(--accent-ink); border-radius: 9px; }
progress.progress::-moz-progress-bar { background: var(--accent-ink); border-radius: 9px; }

.review-card { padding: 0; overflow: hidden; }
.review-card.needs { border: 2px solid var(--amber-border); background: var(--amber-soft); }
.review-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-2);
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.review-summary-main { flex: 1; min-width: 0; display: block; }
.review-summary-name { display: block; font-weight: 700; }
.review-summary-price { display: block; color: var(--muted); font-size: 0.85rem; }
.tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex: none;
}
.review-body { padding: 0 var(--space-4) var(--space-4); }
.review-card.is-collapsed .review-body { display: none; }
.review-card:not(.is-collapsed) .review-summary { border-bottom: 1px solid var(--line-2); margin-bottom: var(--space-3); padding-bottom: var(--space-3); }
.review-photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  margin: 0 auto var(--space-3);
  background: var(--line-2);
}
.review-photo[data-cutout] {
  object-fit: contain;
  background: var(--line-2);
  padding: 10px;
  mix-blend-mode: multiply;
}
@media (max-width: 600px) {
  .review-photo { max-width: 280px; }
}
.photo-pick { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.photo-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: var(--line-2);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  width: 72px;
  height: 72px;
  flex: none;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb img[data-cutout] {
  object-fit: contain;
  background: var(--line-2);
  padding: 4px;
  mix-blend-mode: multiply;
}
.photo-thumb.is-on { border-color: var(--accent); }
.photo-thumb { position: relative; }
.photo-kind {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 1px 2px;
}
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-2); }
.choice .opt-btn { margin: 0; min-height: 60px; font-size: 1.3rem; background: #fff; border-color: var(--line-2); }
.choice .opt-btn.chosen { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}
.play-btn svg { width: 20px; height: 20px; }
.quote mark { background: var(--amber-soft); border-radius: 4px; padding: 0 2px; }
.sticky-count { text-align: center; margin-bottom: var(--space-2); }

.shop-hero {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
}
.shop-hero h1 { margin: 0; font-size: 1.5rem; color: var(--ink); }
.shop-hero .shop-area { color: var(--muted); margin: var(--space-1) 0 0; }
.shop-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.trust-card {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  background: var(--card);
  border-radius: 18px;
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-3);
}
.trust-card svg { width: 30px; height: 30px; flex: none; color: var(--accent-ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.product-card img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--soft); }
.product-card .pill-soldout { position: absolute; top: 8px; left: 8px; }
.product-info { padding: var(--space-2) var(--space-3) var(--space-3); }
.product-info b { display: block; color: var(--ink); }
.product-info small { color: var(--muted); }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-top: var(--space-1); }
.product-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.product-card.is-out img { filter: grayscale(1); opacity: 0.5; }
.product-card.is-out .product-price { color: var(--muted); }

.search-bar {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 6px var(--space-3);
  margin-bottom: var(--space-3);
  box-shadow: none;
}
.search-bar input { border: 0; flex: 1 1 140px; min-width: 0; }
.search-bar .btn { flex: none; }
.mic-btn {
  flex: none;
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: 13px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 var(--space-2);
}
.mic-btn svg { width: 20px; height: 20px; }
.mic-btn[disabled] { background: var(--line-2); color: var(--muted); cursor: default; }
.result-card { padding: var(--space-3) var(--space-4); }
.result-head { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); }
.result-head b { flex: 1; font-size: 1.05rem; color: var(--ink); }
.shop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line-2);
  min-height: var(--tap);
}
.shop-row .best { margin-left: 6px; }
/* Market rows: flex/grid children shrink instead of widening the page. */
.shop-row > *, .result-head > *, .basket .rl > *,
.hp-sec-head > *, .hp-fields > * { min-width: 0; }
.basket {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-4);
  margin: var(--space-3) 0;
  box-shadow: var(--shadow-card);
}
.basket-title { font-size: 0.85rem; color: var(--muted); }
.basket-total { font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.basket-lines { list-style: none; margin: var(--space-2) 0; padding: 0; font-size: 0.9rem; }
.basket-lines li { padding: 4px 0; }
.basket-lines a { color: var(--accent-ink); }
.basket .muted { color: var(--muted); }

/* ---- Market v9: one filter row, shop result cards, honest empty state ---- */
.filters { margin: var(--space-3) 0; }
.filter-chips {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.filter-chips .chip { flex: none; }
label.chip-check { position: relative; cursor: pointer; }
label.chip-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
label.chip-check input:focus-visible + span {
  outline: 3px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}
.filters .seg {
  display: inline-flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px;
  flex: none;
}
.filters .seg a {
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.filters .seg a.on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.pin-wrap { flex: none; display: inline-flex; }
.pin-wrap input {
  width: 7.5rem;
  min-height: 44px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-chip);
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.basket .rl {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.basket .rl small { display: block; color: var(--muted); font-size: 12px; }
.basket .price { margin-top: 0; flex: none; }
.basket .miss, .basket .miss small { color: var(--amber); }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
}

.record-card { text-align: center; }
.record-card svg { width: 48px; height: 48px; color: var(--ink); }
.record-actions { display: flex; gap: var(--space-3); justify-content: center; margin: var(--space-3) 0; flex-wrap: wrap; }
.update-confirm-head { margin-bottom: var(--space-3); }

/* ---- Processing stepper and upload progress ---- */
.vstepper { list-style: none; margin: var(--space-4) 0; padding: 0; }
.vstep {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  position: relative;
  padding-bottom: var(--space-4);
}
.vstep::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 2px;
  width: 2px;
  background: var(--line-2);
}
.vstep:last-child { padding-bottom: 0; }
.vstep:last-child::before { display: none; }
.vstep.is-done::before { background: var(--accent); }
.vdot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
  background: var(--line-2);
  color: var(--muted);
}
.vstep.is-done .vdot { background: var(--accent-ink); color: #fff; }
.vstep.is-active .vdot {
  background: var(--accent-ink);
  color: #fff;
  animation: vpulse 1.4s ease-in-out infinite;
}
@keyframes vpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(15, 118, 110, 0); }
}
.vmain { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.vlabel { font-weight: 800; }
.vstep.is-todo .vlabel { color: var(--muted); font-weight: 600; }
.vdetail { font-weight: 700; }
.vfriendly { color: var(--muted); font-size: 0.9rem; }

.upload-file { font-weight: 700; overflow-wrap: anywhere; }
.upload-progress { margin: var(--space-3) 0; }
.upload-progress .progress { height: 12px; }
.upload-meta { color: var(--muted); font-size: 0.9rem; margin: var(--space-1) 0 var(--space-2); }

/* ---- Photo checks ---- */
.check-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  min-height: var(--tap);
  text-decoration: none;
  color: inherit;
}
.check-row .chips { margin-bottom: 0; }

.photo-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.photo-frame img { display: block; width: 100%; height: auto; }
.photo-frame svg.boxes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photo-frame.is-hiding-boxes svg.boxes { display: none; }
svg.boxes rect { fill: none; stroke-width: 3; }
.box-c0 { stroke: #C4363B; }
.box-c1 { stroke: #0369A1; }
.box-c2 { stroke: #0F7F3F; }
.box-c3 { stroke: #8A5208; }
.box-c4 { stroke: #0F766E; }
.box-c5 { stroke: #C2337A; }

.box-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  min-height: var(--tap);
}

.suggestion { display: flex; flex-direction: column; gap: var(--space-2); }
.suggestion svg { width: 28px; height: 28px; color: var(--accent-ink); }
.suggestion p { margin: 0; }

.product-head { display: flex; align-items: center; gap: var(--space-2); }
.product-head h3 { margin: 0; }
.name-local { font-weight: 600; color: var(--muted); }
.swatch { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.swatch-c0 { background: #C4363B; }
.swatch-c1 { background: #0369A1; }
.swatch-c2 { background: #0F7F3F; }
.swatch-c3 { background: #8A5208; }
.swatch-c4 { background: #0F766E; }
.swatch-c5 { background: #C2337A; }

.stepper input[type="number"] { width: 5.5rem; flex: none; text-align: center; }

.seller-note svg { width: 14px; height: 14px; vertical-align: -2px; }

/* ---- Seller bills ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.stat-label { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.stat-grid .stat { text-align: left; align-items: flex-start; }
.stat-grid .stat-label,
.stat-grid .stat-caption { text-align: left; }

.bill-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  min-height: var(--tap);
  text-decoration: none;
  color: inherit;
}
.bill-total { font-weight: 800; white-space: nowrap; color: var(--ink); }

.top-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}
.top-row .progress { margin-top: var(--space-2); }

/* ---- Receipt polish, method tabs, photo two-column ---- */
.money,
.list-price,
.product-price,
.basket-total,
.stat-num,
.bill-total,
.line-amount,
.sticky-total,
.quote-total-value,
.receipt-total,
.card .pr b,
.card .price .pp,
.pay-amount,
.gc b,
table {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.page-head { margin-bottom: var(--space-3); }
.page-head h1 { margin-bottom: var(--space-1); }
.page-head .muted { margin: 0; }
.back-link { margin: 0 0 var(--space-2); }

.bill-layout { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.bill-layout > *, .bill-actions > * { min-width: 0; }
.bill-actions select, .receipt-card select { max-width: 100%; }
.receipt-total > *, .receipt-round > * { min-width: 0; }
.receipt-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.receipt-head { text-align: center; padding-bottom: var(--space-3); }
.receipt-shop { font-weight: 800; font-size: 1.2rem; margin: 0; color: var(--ink); }
.receipt-meta { color: var(--muted); font-size: 0.9rem; margin: var(--space-1) 0 0; }
.receipt-lines { border-top: 2px dashed var(--line-2); border-bottom: 2px dashed var(--line-2); }
.receipt-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--line-2);
}
.receipt-line:last-child { border-bottom: 0; }
.receipt-line.is-muted { opacity: 0.75; }
.line-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.line-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-name { font-weight: 700; overflow-wrap: anywhere; }
.line-rate { font-weight: 700; }
.line-rate small { font-weight: 500; }
.line-note { font-size: 0.85rem; }
.line-amount { font-weight: 800; text-align: right; white-space: nowrap; color: var(--ink); }
.stepper.is-compact { gap: var(--space-1); flex-wrap: wrap; }
.stepper.is-compact input[type="number"] { width: 4.5rem; }
.receipt-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}
.is-muted-list { background: var(--soft); border-style: dashed; }

.bill-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bill-actions .btn { width: 100%; }
.bill-actions details.card { margin: 0; }
.bill-actions summary {
  font-weight: 800;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  cursor: pointer;
}
.paid-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
  min-height: 52px;
  margin: 0;
}

.quote-total { text-align: center; }
.quote-total-label { display: block; font-weight: 700; color: var(--muted); }
.quote-total-value { display: block; font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.sticky-bar.bill-bar,
.sticky-bar.quote-bar,
.sticky-bar.tap-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.sticky-bar.bill-bar form { flex: 1; min-width: 0; }
.sticky-bar.bill-bar .btn,
.sticky-bar.quote-bar .btn,
.sticky-bar.tap-bar .btn { width: auto; flex: 1 1 auto; min-width: 0; }
.sticky-total { font-size: 1.4rem; font-weight: 800; white-space: nowrap; color: var(--ink); }

.segmented {
  display: flex;
  gap: 4px;
  background: var(--line-2);
  border-radius: 14px;
  padding: 4px;
  margin: var(--space-3) 0 var(--space-4);
  overflow-x: auto;
}
.segmented button {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.segmented button.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); }
.method-panel[hidden] { display: none; }

.mic-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.mic-btn.is-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 0;
}
.mic-btn.is-big .icon { width: 30px; height: 30px; }
.mic-label { font-weight: 800; font-size: 0.9rem; }
.mic-btn.is-recording { background: var(--rec); animation: micpulse 1.4s ease-in-out infinite; }
@keyframes micpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); }
  50% { box-shadow: 0 0 0 12px rgba(229, 72, 77, 0); }
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  border: 2px dashed var(--input-border);
  border-radius: var(--r-card);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  font-weight: 400;
}
.drop-zone .icon { width: 32px; height: 32px; color: var(--accent-ink); }
.drop-zone span { color: var(--muted); font-size: 0.9rem; }
.drop-zone strong { color: var(--accent-ink); }
.drop-zone:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
label.pill { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
label.pill:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.drop-zone.is-small { padding: var(--space-3); }

.photo-layout { display: grid; gap: var(--space-4); }
.photo-frame img { max-height: 80vh; object-fit: contain; background: var(--ink); }
svg.boxes text.box-badge {
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
}
.box-badge-c0 { fill: #C4363B; }
.box-badge-c1 { fill: #0369A1; }
.box-badge-c2 { fill: #0F7F3F; }
.box-badge-c3 { fill: #8A5208; }
.box-badge-c4 { fill: #0F766E; }
.box-badge-c5 { fill: #C2337A; }

.suggestion { flex-direction: row; align-items: center; flex-wrap: wrap; }
.suggestion-icon { flex: none; }
.suggestion-icon .icon { width: 28px; height: 28px; color: var(--accent-ink); }
.suggestion-text { flex: 1 1 160px; }
.suggestion-action { flex: none; margin-left: auto; }
.suggestion-action form { margin: 0; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.check-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.check-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.check-meta { padding: var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: 4px; }
.cover-now {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
}
.check-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.check-chips .chip { font-size: 13px; padding: 2px 8px; }

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.stat-icon .icon { width: 22px; height: 22px; }
.stat-caption { color: var(--muted); font-size: 13px; }
.bill-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
}
.bill-right .bill-total { text-align: right; }
.top-row { display: flex; align-items: center; gap: var(--space-3); }
.top-row .row-main { flex: 1 1 auto; }
.top-row .top-bar { flex: 2 1 120px; }
.top-row .list-price { flex: none; }

.empty-shop, .empty-market { text-align: center; }
.empty-market .obj { width: 56px; height: 56px; }
.empty-shop > .icon { width: 44px; height: 44px; color: var(--accent); }
.empty-shop h2 { margin-top: var(--space-2); }

/* ---- Live prices ---- */
.live-wrap { display: block; }
.live-columns { display: grid; gap: var(--space-4); }
.live-preview {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.live-video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--ink);
}
.live-topbar {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 99px;
  padding: 4px 12px;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec);
}
.live-timer {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: 800;
  border-radius: 99px;
  padding: 4px 12px;
  font-variant-numeric: tabular-nums;
}
.live-ready {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 99px;
  padding: 4px 12px;
}
.live-captions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-3) var(--space-3) var(--space-4);
}
.live-last {
  margin: 0 0 var(--space-1);
  color: #E2EAEE;
  font-size: 0.9rem;
}
.live-partial {
  margin: 0;
  color: #fff;
  background: rgba(41, 45, 52, 0.82);
  border-radius: 16px;
  padding: var(--space-2) var(--space-3);
  min-height: 1.5em;
  font-weight: 600;
}
.live-partial:empty { display: none; }
.live-last:empty { display: none; }
.live-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.live-mic {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 0;
}
.live-mic .icon { width: 34px; height: 34px; }
.live-hint { text-align: center; }
.live-finish { margin: var(--space-3) 0; }
.live-offline { margin: var(--space-3) 0; }
.live-cards { min-width: 0; }
.live-card { margin-bottom: var(--space-2); }
.live-fallback { margin: var(--space-4) 0; }

/* ---- Quick chips and keypad sheet ---- */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.keypad-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--card);
  border-top: 2px solid var(--accent-ink);
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
}
.keypad-display {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
.keypad-keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.keypad-keys button {
  min-height: 60px;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 10px;
  border: 2px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.keypad-actions {
  display: flex;
  gap: var(--space-2);
  max-width: 420px;
  margin: var(--space-3) auto 0;
}
.keypad-actions .btn { flex: 1; }
.keypad-keys.is-mini button { min-height: 52px; font-size: 1.2rem; }

/* ---- Settings, payments, public bill ---- */
.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  min-height: var(--tap);
}
.toggle-row input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
}
.qr-wrap svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  display: block;
}
.pay-amount {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
.pay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.give-back {
  font-size: 1.1rem;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--green);
}
.give-back strong { font-size: 1.9rem; }
.receipt-round {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: 0.95rem;
}

/* Longer Tamil/Hindi words must not break layout. */
.nav a,
.chip,
.tile-sub,
.stat-label,
.stat-caption,
.segmented button,
.opt-btn,
.vlabel,
.review-summary-price,
.list-name,
.sticky-bar .btn,
.pay-buttons .btn {
  overflow-wrap: anywhere;
  hyphens: auto;
}
/* Task 138: headings wrap whole words only — English and Tamil words
   are never split with a hyphen on phones. */
.card h1, .card h2 {
  overflow-wrap: anywhere;
  hyphens: manual;
}
.chip,
.opt-btn,
.vlabel {
  min-height: 32px;
}
.stat-label,
.tile-sub {
  text-align: center;
}

/* ---- Order stepper, order actions ---- */
.order-steps { grid-template-columns: repeat(4, 1fr); }
.order-steps li { align-items: center; gap: var(--space-2); opacity: 0.55; }
.order-steps li.is-done { opacity: 1; border-color: var(--accent); }
.order-steps li.is-current { opacity: 1; border-color: var(--amber-soft); }
.step-dot {
  width: 12px; height: 12px; flex: none; border-radius: 99px;
  background: var(--line-2); border: 2px solid var(--muted);
}
.is-done .step-dot { background: var(--accent); border-color: var(--accent); }
.is-current .step-dot { background: var(--amber-soft); border-color: var(--ink); }
.order-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.order-actions form { min-width: 0; }
.order-actions .pill { min-width: 0; }

/* ---- Tap list rows + close-day items table ---- */
.tap-list { border-top: 2px dashed var(--line-2); border-bottom: 2px dashed var(--line-2); }
.tap-line {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--line-2);
}
.tap-line:last-child { border-bottom: 0; }
.tap-line .line-thumb { flex: none; }
.tap-main { flex: 1 1 auto; min-width: 0; }
.tap-top { display: flex; gap: var(--space-3); align-items: flex-start; }
.tap-names { flex: 1 1 auto; min-width: 0; text-align: left; }
.tap-names .line-name { display: block; text-align: left; }
.tap-names .line-rate { display: block; }
.tap-top .stepper { flex: none; margin-left: auto; }
.tap-main .quick-chips { margin-top: var(--space-2); }
@media (max-width: 420px) {
  .tap-top { gap: var(--space-2); }
  .tap-top .stepper input[type="number"] { width: 3.8rem; }
}
.close-table { width: 100%; border-collapse: collapse; }
.close-table th,
.close-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-2);
}
.close-table th { font-size: 0.85rem; color: var(--muted); }
.close-table td.money { text-align: right; white-space: nowrap; }
.close-table input[type="number"] { width: 5.5rem; }

/* ---- Wide screens ---- */
@media (min-width: 900px) {
  .hdr { padding: 14px 64px; }
  .ann { padding: 8px 64px; }
  .nav { display: flex; }
  .desk-only { display: inline-flex !important; }
  div.desk-only { display: block !important; }
  .mob-only { display: none !important; }
  .content { max-width: 1100px; }
  .hero2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
  .float.shop-float { display: flex; max-width: 560px; margin-left: auto; margin-right: auto; }
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { border-radius: 26px; }
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles-four { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .band .gcards { grid-template-columns: repeat(4, 1fr); }
  h1.big { font-size: 44px; }
  h2.h2s { font-size: 26px; }
  .review-head, #review-form { max-width: 720px; margin-left: auto; margin-right: auto; }
  #review-form .sticky-bar { max-width: 720px; margin-left: auto; margin-right: auto; }
  .results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .results-grid .result-card { margin: 0; }
  .bill-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .bill-actions { position: sticky; top: 76px; }
  .sticky-bar.bill-bar { display: none; }
  .photo-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .photo-left { position: sticky; top: 76px; }
  .check-grid { grid-template-columns: repeat(4, 1fr); }
  .segmented { max-width: 640px; }
  .live-video { aspect-ratio: 16 / 9; }
  .live-columns { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .live-main { position: sticky; top: 76px; }
}

/* ---- Task 50: seller Fresh Green ---- */
button.pill { font: inherit; cursor: pointer; }
.pill { max-width: 100%; }
.pill.big { white-space: normal; text-align: center; }
.pill[disabled] { background: var(--line-2); color: var(--muted); cursor: default; border-color: transparent; }
.sticky-bar .pill { width: 100%; }

/* Seller home: order cards + compact bottom cards. */
.order-rcpt { margin-bottom: var(--space-3); min-width: 0; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.order-top > * { min-width: 0; }
.order-top b { font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.order-names { color: var(--muted); font-size: 13px; margin: 6px 0 10px; overflow-wrap: anywhere; }
.order-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.order-bottom > * { min-width: 0; }
.order-bottom b { font-size: 22px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.quick-links { margin: var(--space-4) 0; }
.card.compact { padding: var(--space-3) var(--space-4); }
.card.compact h2 { font-size: 1rem; }
.card.compact p { margin-bottom: var(--space-2); }

/* First-run Get started card: numbered steps, ✓ when done. */
.start-card { margin: var(--space-4) 0; }
.gsteps { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.gstep { display: flex; gap: var(--space-3); align-items: flex-start; }
.gnum { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; flex: none; }
.gstep.is-done .gnum { background: var(--accent-ink); color: #fff; }
.gstep.is-done .gnum::before { content: "✓"; }
.gstep.is-done .gnum span { display: none; }
.gstep h3 { margin: 0 0 2px; font-size: 1rem; }
.gstep p { margin: 0 0 var(--space-2); color: var(--muted); font-size: 0.9rem; }
.gstep .hero-cta { margin: 0; }

/* Home credit line under the lost-link card. */
.built-with { text-align: center; color: var(--muted); font-size: 0.9rem; margin: var(--space-4) 0 0; }

/* Live: camera card, stop button, heard rows. */
.live-kick-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.live-kick-row .kick { margin: 0; }
.cam .live-video { height: 100%; aspect-ratio: auto; }
.cam .live-ready { position: absolute; top: 12px; right: 12px; }
.cam .live-captions { background: rgba(41, 45, 52, 0.82); border-radius: 16px; padding: 10px 12px; left: 12px; right: 12px; bottom: 12px; }
.stopb { width: 70px; height: 70px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 0 0 8px var(--accent-soft); padding: 0; }
.stopb .icon { width: 30px; height: 30px; }
.stopb.is-recording { background: var(--rec); box-shadow: 0 0 0 8px #FDECEC; }
.stopb[disabled] { opacity: 0.6; cursor: default; }
.stopb-sq { width: 22px; height: 22px; border-radius: 6px; background: #fff; }
.stopb-label { font-weight: 700; font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.heard-title { font-size: 22px; }
.live-cards .heard { margin-bottom: var(--space-2); }
.heard .nophoto { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.heard .n small { display: block; }

/* Review: question headline, big option pills, fine list. */
.question { font-size: 20px; font-weight: 800; color: var(--ink); margin: var(--space-3) 0 var(--space-2); overflow-wrap: anywhere; }
.choice .opt-btn { border-radius: 999px; }
.fine-title { margin-top: var(--space-5); }
.line select[data-field="unit"] { width: auto; border-radius: 10px; font-weight: 700; }

/* New bill: method chips, product grid beside the bill card. */
.segmented.chips { background: transparent; padding: 0; border-radius: 0; gap: var(--space-2); }
.segmented.chips .chip { border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; flex: 0 1 auto; color: var(--ink); box-shadow: none; }
.segmented.chips .chip.is-active { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.tap-panel h2 { margin-top: 0; }
.bill-split { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; }
.tap-grid { align-content: start; }
/* Tap-billing tiles use steppers + chips, not the photo-corner ADD: the
   ADD button is an in-flow first-tap target, never absolutely placed. */
.tap-grid .card .add {
  position: static;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 44px;
}
.tap-grid .card { margin: 0; min-width: 0; max-width: 100%; }
.tap-grid .bd h3 { overflow-wrap: anywhere; }
.tap-grid .bd h3 .tname { display: block; -webkit-line-clamp: unset; overflow: visible; }
.grid-products .card { margin: 0; min-width: 0; max-width: 100%; }
.tap-grid .stepper { margin: 0; }
.tap-grid .stepper.is-compact { width: 100%; }
.tap-grid .stepper.is-compact input[type="number"] { flex: 1 1 3rem; width: 3rem; min-width: 0; }
.tap-grid .quick-chips { margin-top: var(--space-2); }
.tap-grid .quick-chips .chip { min-height: 44px; }
.tap-rcpt { align-self: start; }
.tap-rcpt .rt { align-items: center; }
.tap-rcpt .rt span { color: var(--muted); font-weight: 700; }
.tap-rcpt .pill { width: 100%; }

/* Get paid: standee QR, cash card. */
.upi-qr svg { width: 168px; height: 168px; margin: 14px auto 4px; display: block; }
.cash-rcpt { margin-top: var(--space-3); }
.bill-cta { margin: var(--space-3) 0; }
.bill-cta .pill { flex: 1 1 auto; }

/* Bills list rows, close extras, purchases rows. */
a.bill-row.rcpt { display: flex; text-decoration: none; color: inherit; margin-bottom: var(--space-2); }
h1.big, h2.h2s { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.close-extra { margin-top: var(--space-2); }
.close-cta { margin: var(--space-3) 0; }
.pur-row { margin-bottom: var(--space-2); }

@media (min-width: 900px) {
  .bill-split { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .bill-split .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tap-rcpt { position: sticky; top: 76px; }
}
@media (min-width: 1200px) {
  .grid-products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bill-split .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Seller bottom nav hides where the laptop rail takes over (1000px). */
@media (min-width: 1000px) {
  .bnav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; animation: none; }
  .btn:active { transform: none; }
  .vstep.is-active .vdot { animation: none; }
  .mic-btn.is-recording { animation: none; }
  .live-mic.is-recording { animation: none; }
}

/* ---- Task 52/58: bottom nav fixed; bars sit fully above it ----
   Task 52: bars stay a shared nav height + 8px above the nav.
   Task 58: sticky left the nav mid-screen under short content, so it is
   fixed to the viewport bottom with body padding so nothing hides
   behind it.
   Phones only: on laptop the bnav is display:none so nothing changes. */
@media (max-width: 899.98px) {
  body:has(.bnav) .float,
  body:has(.bnav) .sticky-bar {
    /* Shared nav height + 8px gap, above bnav z 7. */
    bottom: calc(var(--bnav-h) + 8px);
    z-index: 8;
  }
  body:has(.bnav) .content:has(.sticky-bar, .float) {
    padding-bottom: 230px;
  }
  .bnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }
  body:has(.bnav) {
    padding-bottom: var(--bnav-h);
  }
  /* v9: small buttons reach 44px on phones. */
  .pill.sm { min-height: 44px; }
  /* Task 69: market filter chips scroll sideways in one row on phones. */
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}
/* Between 900px and the 1000px rail breakpoint the seller bottom nav is
   still visible, so the same lift rules apply. */
@media (min-width: 900px) and (max-width: 999.98px) {
  body:has(.bnav) .float,
  body:has(.bnav) .sticky-bar {
    bottom: calc(var(--bnav-h) + 8px);
    z-index: 8;
  }
  body:has(.bnav) .content:has(.sticky-bar, .float) {
    padding-bottom: 230px;
  }
  .bnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }
  body:has(.bnav) {
    padding-bottom: var(--bnav-h);
  }
}

/* ---- Task 61: Today home (morning prices, orders and bills, close day) ---- */
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.step-card > :first-child { margin-top: 0; }
.step-card > :last-child { margin-bottom: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-right: var(--space-2);
  vertical-align: 3px;
}
.step-stats { grid-template-columns: repeat(3, 1fr); margin: 0; }
.step-stats .stat { text-decoration: none; }
a.stat { color: inherit; }
.stat.is-new { background: var(--accent-soft); border-color: var(--accent); }
.stat.is-new .stat-num { color: var(--accent-ink); }
.live-line {
  background: var(--green-soft);
  border-radius: 14px;
  padding: var(--space-3) var(--space-4);
  color: var(--green);
  font-weight: 800;
  margin: 0;
}
.closed-line {
  background: var(--soft);
  border-radius: 14px;
  padding: var(--space-3) var(--space-4);
  color: var(--ink);
  font-weight: 800;
  margin: 0;
}
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  margin: 0;
}
.mini-links a { color: var(--accent-ink); font-weight: 700; }
.mini-links .icon { vertical-align: -4px; }
.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap);
}
.order-mini {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line-2);
  padding-top: var(--space-3);
}
.order-mini-main { min-width: 0; flex: 1 1 180px; }
.order-mini-main .order-names { margin: var(--space-1) 0 0; }
.order-mini-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.list-card,
.more-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}
.list-card > summary,
.more-card > summary {
  cursor: pointer;
  list-style: none;
  min-height: var(--tap);
}
.list-card > summary::-webkit-details-marker,
.more-card > summary::-webkit-details-marker { display: none; }
.list-card > summary::before,
.more-card > summary::before {
  content: "▸";
  color: var(--accent-ink);
  font-weight: 800;
  margin-right: var(--space-2);
}
.list-card[open] > summary::before,
.more-card[open] > summary::before { content: "▾"; }
.more-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
@media (min-width: 900px) {
  .step-stats { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Task 64: v9 workspace list, orders board, check clip ---- */
.grp { margin-top: 14px; }
.grp .gh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink2);
  overflow-wrap: normal;
  word-break: keep-all;
}
.grp .gh .n { color: var(--muted); font-weight: 600; }
.grp .cols, .grp .it { grid-template-columns: 1.8fr 1fr 0.8fr 0.7fr 0.9fr; }
.cols {
  display: grid;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.it {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.it:hover { background: var(--soft); }
.it .who { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.addrow {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.addrow:hover { color: var(--accent-ink); background: var(--soft); }
.av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  flex: none;
  background: var(--avatar-3);
}
.av.a0 { background: var(--avatar-0); }
.av.a1 { background: var(--avatar-1); }
.av.a2 { background: var(--avatar-2); }
.av.a3 { background: var(--avatar-3); }
.av.a4 { background: var(--avatar-4); }
@media (max-width: 899.98px) {
  .grp .cols { display: none; }
  .grp .it { grid-template-columns: 1fr auto auto; }
}
/* List | Board switch + board columns. */
.vtabs { display: flex; gap: 4px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.vtabs button, .vtabs a {
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.vtabs .on { color: var(--accent-ink); border-bottom-color: var(--accent); }
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; padding: 12px 0; overflow-x: auto; }
.colb { background: var(--soft); border-radius: var(--r-card); padding: 10px; min-width: 0; }
.colb .h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.ocard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow-wrap: anywhere;
}
.ocard b { display: block; font-size: 13px; }
.ocard b .av { display: inline-grid; vertical-align: -5px; margin-right: 2px; }
.ocard b a { color: inherit; }
.ocard .ln { color: var(--muted); margin: 3px 0 6px; }
.ocard .card-note { color: var(--amber); font-weight: 700; }
.ocard .ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* Laptop side panel mini rows (live prices). */
.mini {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.mini img, .mini .nophoto {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
}
.mini .p { margin-left: auto; font-weight: 800; white-space: nowrap; }
.side-panel { border-left: 1px solid var(--line); padding: 14px; background: var(--bg); }
.side-panel h4 { margin: 0 0 8px; font-size: 13px; }
@media (min-width: 1000px) {
  .with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
  .with-side .side-panel { border: 1px solid var(--line); border-radius: var(--r-card); position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
}
@media (max-width: 999.98px) {
  .today-side { display: none; }
}
a.it { text-decoration: none; color: inherit; }
a.it:hover { background: var(--soft); }
.order-mini-main b .av { display: inline-grid; vertical-align: -5px; margin-right: 2px; }
/* Check page voice-clip row: play button + waveform stripes. */
.clip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: var(--soft);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.clip .pl {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.wave {
  flex: 1;
  min-width: 40px;
  height: 18px;
  background: repeating-linear-gradient(90deg, #C9CDD4 0 2px, transparent 2px 5px);
  border-radius: 4px;
}
/* Check card photo area + candidate strip. */
.review-card .im {
  background: var(--line-2);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 12px;
  margin-bottom: var(--space-3);
}
.review-card .im .review-photo { border-radius: 10px; margin-bottom: 0; }
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 0; }
/* Rename sheet (Task 66): inline on the check page, <details> on live lists. */
.pen {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  padding: 2px 8px;
  color: var(--accent-ink);
  margin-left: 6px;
  white-space: nowrap;
  cursor: pointer;
  display: inline-block;
}
summary.pen { list-style: none; }
summary.pen::-webkit-details-marker { display: none; }
.rename-sheet {
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px 14px;
  margin: 10px 0;
  background: #fff;
}
details.rename-sheet { padding: 0; border: 0; margin: 6px 0 0; background: none; }
details.rename-sheet > form {
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px 14px;
  margin-top: 8px;
  background: #fff;
}
.rename-sheet h3 { margin: 0; font-size: 1.05rem; }
.rename-sheet .muted { margin: 2px 0 4px; }
.fld { display: block; margin-top: 10px; font-size: 0.85rem; font-weight: 700; }
.fld input {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 1rem;
}
.rename-actions { display: flex; gap: 10px; margin-top: 14px; }
.rename-actions .btn { flex: 1; }

/* ---- Task 68: v9 polish ----
   Tamil/Hindi text wraps at word boundaries: never inside a word,
   never overflows, never cut with an ellipsis. */
.list-name,
.list-sub,
.mini-name,
.mini .per,
.til-v,
.today-meta,
.it,
.ocard,
.order-names,
.order-top b,
.order-bottom b,
.question,
h1.big,
h2.h2s,
.hdr .crumb,
.hdr .shop-id,
.crumb,
.card .var,
.card .bd h3,
.topbar .ws {
  overflow-wrap: normal;
  word-break: keep-all;
}
.list-name { hyphens: manual; }
/* Shop + tap-grid names are never clamped in Tamil/Hindi. */
.card .nm:lang(ta), .card .nm:lang(hi) {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: normal;
  word-break: keep-all;
}
/* Seller laptop: content fills the width right of the rail. */
@media (min-width: 1000px) {
  body:has(.rail) .content {
    max-width: 1440px;
    margin: 0;
    padding: 24px;
  }
}
/* Today workspace header: 26px title + one muted line. */
.today-title {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  overflow-wrap: normal;
  word-break: keep-all;
}
.today-meta { margin: 0 0 12px; }
@media (max-width: 999.98px) {
  .today-title { font-size: 22px; }
}
/* Today groups: the header is a collapse toggle with an SVG chevron. */
button.gh {
  background: none;
  border: 0;
  margin: 0;
  padding: 4px 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  min-height: 44px;
}
.grp.is-collapsed > :not(.gh) { display: none; }
.grp.is-collapsed .gh .chev { transform: rotate(-90deg); }
.gh .chev { flex: none; }
/* Seller rows: 44px photo/tile, name block, price, icon button. */
.list-row { flex-wrap: wrap; }
.list-row .list-thumb { width: 44px; height: 44px; }
.list-thumb.letter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
  padding: 2px;
}
.list-action { display: contents; }
.list-row details[data-rename-sheet],
.mini details[data-rename-sheet] { margin: 0; flex: none; }
.list-row details[data-rename-sheet][open],
.mini details[data-rename-sheet][open] {
  flex: 1 1 100%;
  order: 30;
  margin-top: 8px;
}
.mini { flex-wrap: wrap; }
.mini-main { flex: 1; min-width: 0; }
.mini-name { display: block; font-weight: 700; }
.mini .per { display: block; }
.mini .nophoto, .heard .nophoto, .card .ph .nophoto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  gap: 1px;
  text-align: center;
  padding: 2px;
}
.til-g { font-weight: 800; }
.til-v { font-size: 9px; font-weight: 700; }
.card .ph .nophoto .til-v { font-size: 11px; }
/* Icon-only rename opener: 32px ghost. */
.pen-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--accent-ink);
  cursor: pointer;
  flex: none;
  padding: 0;
  font: inherit;
}
.pen-icon:hover { background: var(--accent-soft); }
summary.pen-icon { list-style: none; }
summary.pen-icon::-webkit-details-marker { display: none; }
summary.pen-icon::marker { content: ""; }
.pen-icon .icon { width: 18px; height: 18px; }
/* Shared rename dialog: centred on laptop, bottom sheet on phones. */
.rdlg-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rdlg-wrap[hidden] { display: none; }
.rdlg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 25, 0.5);
}
.rdlg {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  box-shadow: var(--shadow-lift);
}
.rdlg > .rename-sheet, .rdlg > form[data-rename-form] {
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
}
body.rdlg-open { overflow: hidden; }
@media (max-width: 600px) {
  .rdlg-wrap { align-items: flex-end; padding: 0; }
  .rdlg { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
}
/* Today's list card: left-aligned title. */
#todays-list > summary { justify-content: flex-start; text-align: left; }
#todays-list > summary a { margin-left: auto; }
/* Phone seller top: one bar — mark + chip left, icon buttons right. */
.hdr .iconbtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  flex: none;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  padding: 0;
}
.hdr .iconbtn.is-off { opacity: 0.45; text-decoration: line-through; }
@media (max-width: 999.98px) {
  body.is-seller .hdr { flex-wrap: nowrap; gap: 10px; padding: 10px 12px; }
  body.is-seller .hdr .wordmark { display: none; }
  body.is-seller .hdr .seller-status { margin-left: 0; }
  /* Task 109: at 320px in Tamil the status pill shrinks and ellipsizes
     (full text stays in its title); the mark and both round buttons
     never shrink below 40px and never leave the screen. */
  body.is-seller .hdr .logo { flex: none; }
  body.is-seller .hdr .seller-status { min-width: 0; flex: 0 1 auto; }
  body.is-seller .hdr .seller-status .ss-t {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  body.is-seller .hdr .iconbtn, body.is-seller .hdr .circ {
    min-width: 40px;
    min-height: 40px;
  }
}
/* Task 111: at 320px the ellipsized pill squeezed to an empty box and the
   count vanished. On very narrow screens the full text hides and a compact
   dot + count badge shows instead (full text stays in title/aria-label);
   the badge never shrinks, and the tighter bar still fits the mark plus
   both round buttons.
   Task 113: the same narrow behaviour covers EVERY pill state (lists to
   check, shop open, closed, any other) — each carries its full text in
   title/aria-label plus an .ss-t span, so non-count states compact to the
   chip's dot alone instead of pushing the round buttons off-screen. */
body.is-seller .hdr .seller-status .ss-n { display: none; }
@media (max-width: 359.98px) {
  body.is-seller .hdr { gap: 8px; padding: 10px 8px; }
  body.is-seller .hdr .seller-status { flex: none; padding: 2px 6px; }
  body.is-seller .hdr .seller-status .ss-t { display: none; }
  body.is-seller .hdr .seller-status .ss-n {
    display: block;
    flex: none;
  }
}
/* Phone shop: products first — search, tabs, notice, grid, then hero. */
@media (max-width: 600px) {
  body.is-shop .hdr { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  body.is-shop .hdr .wordmark { display: none; }
  body.is-shop .hdr .shop-id { flex: 1; min-width: 0; font-size: 12px; }
  body.is-shop .content { display: flex; flex-direction: column; }
  body.is-shop .content > .search { order: 1; }
  body.is-shop .content > .chips { order: 2; }
  body.is-shop .content > .notice { order: 3; }
  body.is-shop .content > p.kick,
  body.is-shop .content > h2.h2s { order: 4; }
  body.is-shop .content > [data-shop-grid] { order: 5; }
  body.is-shop .content > .float,
  body.is-shop .content > .alert,
  body.is-shop .content > .sheet-wrap,
  body.is-shop .content > .rcpt { order: 6; }
  body.is-shop .content > .hero2 { order: 10; margin-top: 18px; }
  body.is-shop .hero2 h1.big { font-size: 22px; line-height: 1.2; }
  body.is-shop .hero2 .pill.big {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 44px;
  }
}
/* Task 78: Meta AI calls page. */
.ai-model {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.ai-stats .ai-bymodel { gap: 2px; }
.ai-stats .ai-bymodel .stat-label { display: block; }
.ai-group-head { display: flex; align-items: baseline; gap: 8px; }
.ai-row.is-new { background: var(--green-soft); transition: background 2s; }
@media (prefers-reduced-motion: reduce) {
  .ai-row.is-new { transition: none; }
}

/* ---- Task 81 landing page: one page, real photos, v9 look ---- */
body.land .content { max-width: 1040px; }
body.land .content section { scroll-margin-top: 12px; }
/* Tamil/Hindi must wrap, never be cut. */
body.land h1, body.land h2, body.land h3, body.land p, body.land li,
body.land .pill { overflow-wrap: anywhere; }
body.land .pill.big { max-width: 100%; }

.land-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 6px 0 18px;
}
.land-nav a { font-weight: 600; text-decoration: none; color: var(--ink2); white-space: nowrap; }
.land-nav a.pill { color: #fff; }
.land-nav .sp { flex: 1; }

.land-hero { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.land-hero-txt .notice { margin-top: var(--space-4); }

.land-photo { margin: 0; }
.land-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 20px;
  background: var(--todo-soft);
}
.land-photo.tall img { aspect-ratio: 1 / 1; }
.land-photo figcaption {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
}

.land-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: var(--space-6);
}
.land-card h3 { font-size: 16px; margin: var(--space-2) 0 4px; }
.land-card p { margin: 0; }

.land-split { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.land-split .land-photo img { aspect-ratio: 1 / 1; }
.land-ticks { list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-6); }
.land-ticks li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.land-ticks .obj { flex: none; }

.land-how { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.land-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.land-steps li { display: flex; gap: 12px; align-items: flex-start; }
.land-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #fff;
  font-weight: 800;
  display: block;
  text-align: center;
  line-height: 30px;
}
.land-step-ic { flex: none; margin-top: 2px; }
.land-steps b { display: block; margin-bottom: 2px; }
.land-steps p { margin: 0; }

.land-cust { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.land-cust h2.h2s { margin-top: 0; }
.land-find { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.land-find .field { margin: 0; min-width: 180px; flex: 1; }

.land-day {
  list-style: none;
  padding: var(--space-4);
  margin: 0 0 var(--space-6);
  display: grid;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
}
.land-day li { display: flex; gap: 12px; align-items: flex-start; }
.land-day b { display: block; margin-bottom: 2px; }
.land-day p { margin: 0; }

.land-meta {
  background: var(--todo-soft);
  border-radius: var(--r-card);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.land-meta h2.h2s { margin-top: 0; }
.land-meta ul { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.land-meta li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.land-meta .obj { flex: none; margin-top: 2px; }
.land-meta .built-with { margin-top: var(--space-3); }

#lost-link { margin-bottom: var(--space-6); }

@media (min-width: 700px) {
  .land-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .land-hero { grid-template-columns: 1fr 1fr; align-items: center; }
  .land-hero-txt { order: -1; }
  .land-grid { grid-template-columns: repeat(4, 1fr); }
  .land-how { grid-template-columns: 1fr 1fr; align-items: center; }
  .land-cust { grid-template-columns: 2fr 3fr; align-items: center; }
  .land-day { grid-template-columns: 1fr 1fr 1fr; }
}

/* Task 84 homepage */
body.home-mkt { overflow-x: hidden; }
body.home-mkt > .ann,
body.home-mkt > .hdr { display: none; }

.hp-menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  flex: none;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  padding: 0;
}
/* Task 122: shared 44px round icon button (carousel arrows,
   dialog close, in-shop search). */
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  flex: none;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}
/* Phone menu: a bottom sheet sliding up with staggered links. */
.hp-sheet {
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  margin: 0 calc(50% - 50vw);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 2px;
  position: sticky;
  top: 60px;
  z-index: 19;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-lift);
}
.hp-sheet[hidden] { display: none; }
.hp-sheet a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 10px 8px;
  min-height: 44px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.hp-sheet:not([hidden]) a { animation: sheetlink 0.3s ease-out backwards; }
.hp-sheet:not([hidden]) a:nth-child(1) { animation-delay: 0.02s; }
.hp-sheet:not([hidden]) a:nth-child(2) { animation-delay: 0.06s; }
.hp-sheet:not([hidden]) a:nth-child(3) { animation-delay: 0.1s; }
.hp-sheet:not([hidden]) a:nth-child(4) { animation-delay: 0.14s; }
.hp-sheet:not([hidden]) a:nth-child(5) { animation-delay: 0.18s; }
.hp-sheet:not([hidden]) a:nth-child(6) { animation-delay: 0.22s; }
.hp-sheet:not([hidden]) a:nth-child(7) { animation-delay: 0.26s; }
.hp-sheet .lang { margin-top: 6px; }

.hp-hero { margin: 0 calc(50% - 50vw); }
.hp-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  background: #14141f;
  border-radius: 20px;
  padding: 32px;
}
.hp-band-frame {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  background: #0b0b12;
  min-width: 0;
}
.hp-band-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}
.hp-hero-in {
  position: relative;
  text-align: left;
  padding: 0;
  max-width: none;
  margin: 0;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.hp-headline {
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  text-shadow: 0 1px 12px rgba(17, 17, 28, 0.6);
  overflow-wrap: break-word;
}
.hp-sub {
  color: #fff;
  font-size: 16px;
  margin: 14px auto 0;
  max-width: 640px;
  text-shadow: 0 1px 8px rgba(17, 17, 28, 0.6);
}
.hp-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(17, 17, 28, 0.8);
}

.hp-banner {
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  padding: 20px;
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.hp-banner-ic {
  background: var(--accent-soft);
  border-radius: 16px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: none;
}
.hp-banner-txt { flex: 1; min-width: 0; }
.hp-banner-txt h2 { font-size: 20px; margin: 0 0 4px; }
.hp-banner-txt p { margin: 0; }

.hp-sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hp-sec-head h2 { margin-bottom: 2px; font-size: 26px; font-weight: 800; }
.hp-sec-head p { margin: 0; }
/* Task 109: the compare-prices link wraps instead of widening a 320px
   homepage in Tamil. */
.hp-more {
  font-weight: 700;
  flex: none;
  margin-top: 5px;
  white-space: normal;
  max-width: 100%;
  min-width: 0;
}

.choose-tile .tile-ic {
  background: var(--accent-soft);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.hp-empty { text-align: center; margin-top: 12px; }

.hp-steps { counter-reset: none; }
.hp-step { align-items: flex-start; }
.hp-step.card { padding: 14px; }

.hp-sellers { margin-top: 8px; }

.choose-tile {
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.choose-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

/* Task 122 (v12): one shared dialog pattern for the location drawer,
   the search pop-up and the filter pop-up. popups.js toggles [hidden],
   traps focus, and locks scroll with body.mm-locked. */
body.mm-locked { overflow: hidden; }
.mm-pop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
}
.mm-pop[hidden] { display: none; }
.mm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 51, 0.55);
  border: 0;
  padding: 0;
  cursor: default;
}
.mm-sheet {
  position: relative;
  background: #fff;
  overflow: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}
.mm-sheet.mm-left {
  justify-self: start;
  width: min(380px, 92vw);
  height: 100%;
  border-radius: 0 20px 20px 0;
}
.mm-sheet.mm-center {
  place-self: center;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  border-radius: 20px;
}
.mm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.mm-head h2 { margin: 0; font-size: 20px; }
.mm-head p { margin: 4px 0 0; }
.mm-x { flex: none; }
.mm-loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.mm-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  margin: 14px 0 8px;
}
.linklike {
  background: none;
  border: 0;
  padding: 6px 4px;
  font: inherit;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  min-height: 44px;
}
.mm-search-row { display: flex; gap: 10px; align-items: center; }
.mm-search-row input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.mm-search-row input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.mm-mic {
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
}
.mm-voice {
  margin-top: 12px;
}
.mm-pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 12px;
}
.pop-circle {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  min-height: 44px;
}
.pop-circle img,
.pop-circle .nophoto {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  padding: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
}
.pop-circle .nophoto {
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-ink);
}
.mm-live-list { display: grid; gap: 2px; }
.mm-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 8px;
  min-height: 44px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.mm-live-row:hover { background: var(--accent-soft); }
.mm-f-group {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}
.mm-f-group legend {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}
.mm-f-group input { accent-color: var(--accent); }
.mm-actions { display: flex; gap: 10px; margin: 4px 0 0; }
.mm-actions .pill { flex: 1; justify-content: center; }
/* Phones: every pop-up is a full-height sheet. */
@media (max-width: 600px) {
  .mm-sheet.mm-center {
    place-self: stretch;
    width: auto;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }
  .mm-loc-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .hp-band { grid-template-columns: 1fr; padding: 24px 20px; }
  .hp-hero-in { grid-column: 1; grid-row: 1; text-align: center; }
  .hp-hero-in .hero-cta { justify-content: center; }
  .hp-band-frame { grid-column: 1; grid-row: 2; width: 100%; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .hp-headline { font-size: 30px; }
  .hp-banner { flex-direction: column; text-align: center; }
}

/* ---- Task 150: phone polish (≤700px). Laptop look unchanged. ---- */
@media (max-width: 700px) {
  /* Seller chrome: one 56px header row (mark, one status pill with
     ellipsis, sound, profile). The status strip hides — the pill
     carries the key state — and its language row moves into the
     profile menu + Settings. 56 + ~60 action bar + ~66 bottom nav
     stays within 25% of a 740px screen. */
  body.is-seller .ann { display: none; }
  body.is-seller .hdr {
    height: 56px;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 8px;
  }
  body.is-seller .hdr .brand-logo { display: none; }
  body.is-seller .hdr .brand-mark { display: block; }
  /* Compact bottom nav: tighter paddings, 44px rows, smaller mic
     tile. Labels keep wrapping at word boundaries (Tasks 109-113). */
  .bnav { padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .bnav a { min-height: 44px; padding: 0 2px; gap: 2px; }
  .bnav .mic span {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-width: 3px;
  }
  .bnav .mic .obj { width: 22px; height: 22px; }
  /* Sticky bars dock directly above the bottom nav (no 8px gap). */
  body:has(.bnav) .float,
  body:has(.bnav) .sticky-bar { bottom: var(--bnav-h); }
  /* Tap targets ≥ 44px: language options, back links, AI session
     chips. (Chips, pills and linklikes are 44px+ already.) */
  .lang a, .lang button, .lang b {
    min-height: 44px;
    min-width: 44px;
    font-size: 12px;
  }
  .back-link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .ai-group-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  /* Task 154: "All orders" link gets a 44px tap area on phones. */
  .grp-more .hp-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* No text below 12px on phones (badges + laptop rails excluded). */
  .land-photo figcaption { font-size: 12px; }
  /* Task 154: seller header status pill text floors at 12px. */
  body.is-seller .hdr .seller-status { font-size: 12px; }
  /* iOS focuses zoom when inputs are under 16px: floor every form
     control at 16px on phones without shrinking larger text. */
  input, select, textarea { font-size: max(16px, 1em); }
}
