/* One site, two feels. Default = the phone app (app bar, swipe cards, rows, bottom tabs).
   At 900px and wider = the website (top menu, search band, tables, side column, footer).
   The one loud element is the price itself; everything around it stays quiet. */
/* ink on white, yellow only as a highlighter (spec 2026-11-12, #63) */
:root{
  --ink:#14232a; --muted:#56676e; --paper:#ffffff; --card:#ffffff; --tint:#f7f7f4;
  --line:#e3eaec; --line-strong:#c9d6da; --control-line:#76888f;  /* control-line: the edge of a field, 3:1 */
  --yellow:#ffe34d; --yellow-pale:#fff6c9; --yellow-line:#e0c84a;  /* highlighter only: never a band or a big button, never text on white */
  --up:#b42318; --dn:#067647;   /* meanings: red up, green down; yellow and jute are never on a number */
  --jute:#c29657;       /* jute bag brown (#24), the logo's sack: accents only, never behind text or as a ring */
  --jute-bg:#ede3cc;    /* pale jute: notes, warnings, group chips */
  --jute-ink:#7a5524;   /* dark jute text on --jute-bg (5.2:1) */
  --radius:16px;
  --wrap:1140px;      /* content width on desktop; grows on big screens */
  color-scheme:light;
}

/* tokens (#39): five text sizes from Open Props, and nothing else. display = the one big price; title = the page
   title; section = a section heading; body = what you read; meta = dates, sources, units, notes */
:root{--fs-display:var(--font-size-6);--fs-title:var(--font-size-4);--fs-section:var(--font-size-3);--fs-body:1.0625rem;--fs-meta:var(--font-size-1)}
@media (min-width:900px){:root{--fs-title:var(--font-size-5)}}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:var(--fs-body)/1.55 system-ui,"Noto Sans Bengali","Hind Siliguri",sans-serif;
  padding-bottom:72px;-webkit-tap-highlight-color:transparent}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:4px}
main{max-width:720px;margin:0 auto;padding:12px 16px 24px}
h1{font-size:var(--fs-title);line-height:1.25;margin:4px 0 12px}
h1 small,h2 small,h3 small{font-weight:400;color:var(--muted);font-size:var(--fs-meta)}
h2{font-size:var(--fs-meta);margin:22px 0 8px}
h3{font-size:var(--fs-body);margin:16px 0 6px}
.up{color:var(--up)}.dn{color:var(--dn)}.fl{color:var(--muted)}
.src,.aka{font-size:var(--fs-meta);color:var(--muted)}
.num{text-align:right;font-variant-numeric:tabular-nums}

/* ---------- header: app bar on phones ---------- */
.top{position:sticky;top:0;z-index:5;background:var(--paper);color:var(--ink);padding:10px 16px 8px;border-bottom:1px solid var(--line)}
.top .bar{display:flex;align-items:center;gap:12px}
.brand{font-weight:700;font-size:var(--fs-section);letter-spacing:-.01em;text-decoration:none}
.topnav,.mylist{display:none}
.top .fr{font-size:var(--fs-meta);color:var(--muted);margin-top:2px}
.stale{background:var(--jute-bg);color:var(--jute-ink);text-align:center;font-size:var(--fs-meta);padding:6px 12px;margin:0}
.envbar{background:#b42318;color:#fff;text-align:center;font:600 .875rem/1.4 ui-monospace,monospace;padding:4px 12px}
@media print{.envbar{display:none}}

/* ---------- home ---------- */
.lede{margin:0 0 10px;color:var(--muted);font-size:var(--fs-meta)}.lede .en{display:none}
.searchbox{position:relative}
.search{width:100%;font:inherit;border:1.5px solid var(--ink);border-radius:24px;padding:11px 16px;background:var(--card);color:var(--ink)}
.results{position:absolute;left:0;right:0;top:100%;z-index:4;background:var(--card);border-radius:12px;box-shadow:0 8px 24px rgba(20,35,42,.14);overflow:hidden}
.results:empty{display:none}
.results a{display:block;padding:10px 14px;border-bottom:1px solid var(--line);text-decoration:none}
.results a small{color:var(--muted)}
.cards{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 8px;margin:0 -16px;padding-left:16px;scrollbar-width:none}
.cards::-webkit-scrollbar{display:none}
.staple.card{position:relative;flex:0 0 150px;scroll-snap-align:start;display:flex;flex-direction:column;gap:1px;
  background:var(--card);border-radius:var(--radius);padding:12px;text-decoration:none;box-shadow:0 1px 2px rgba(27,31,28,.06),0 0 0 1px var(--line)}
.staple .n{font-weight:600;font-size:var(--fs-meta)}
.staple .p{font-size:var(--fs-section);font-weight:800;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.staple .p small{font-weight:400;font-size:var(--fs-meta)}
.staple .w{font-size:var(--fs-meta);color:var(--muted)}
.staple svg{width:100%;height:22px;margin-top:6px}
.chk{position:absolute;top:4px;right:4px;padding:6px}
.chk input,td.staple input{width:20px;height:20px;accent-color:var(--ink)}
table.staples{display:none}
.more{display:block;margin-top:10px;color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:6px}

/* rows: list items on phones, plain lines on desktop */
.rows{display:flex;flex-direction:column;gap:8px}
.row{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:14px;padding:12px 14px;text-decoration:none;
  box-shadow:0 0 0 1px var(--line);min-height:56px}
.row .m{flex:1;min-width:0}.row .m b{display:block}.row .m small{color:var(--muted);font-size:var(--fs-meta)}
.row .v{text-align:right;font-variant-numeric:tabular-nums}.row .v b,.row .v span{display:block}

/* buttons */
.btn{display:block;width:100%;text-align:center;background:var(--ink);color:#fff;border:0;border-radius:12px;padding:13px;
  font:inherit;font-weight:700;margin-top:12px;text-decoration:none;cursor:pointer}
.btn:disabled{opacity:.45}
.btn.ghost{background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong)}

/* ---------- commodity page ---------- */
.crumb{font-size:var(--fs-meta);color:var(--muted)}.crumb a{text-decoration:none}
.itemgrid{display:flex;flex-direction:column;gap:12px}
.leftcol{display:contents}
.answer .lab{display:block;font-size:var(--fs-meta);color:var(--muted)}
.answer .ctx{display:block;margin-top:.15rem;font-size:var(--fs-meta);color:var(--muted)}  /* #24 R2: the cheapest bazar under the Dhaka price */
.answer .tags{display:flex;flex-wrap:wrap;gap:var(--size-2);margin-top:var(--size-2)}.answer .tags .tag{margin:0}
.cheap [data-add]{width:100%;margin:.75rem 0 0;background:var(--ink);color:#fff}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.itemgrid .where h2{margin:0 0 .25rem;font-size:var(--fs-section)}.itemgrid .where .allb{display:flex;align-items:center;min-height:2.75rem;color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:6px}  /* #24 R7 */
.card.evlist:empty{display:none}.card.evlist h3{margin-top:0}
.itemgrid .card.evlist,.itemgrid .markets{order:1}  /* phones: কেন বদলেছে after the months card; desktop: under the chart */
.year:empty{display:none}
.price{font-size:var(--fs-price);font-weight:700;color:var(--ink);letter-spacing:-.03em;line-height:1.2;font-variant-numeric:tabular-nums}  /* the display role at the item page's size: 44px phone, 56px desktop (#63 mockup) */
.per{font-size:var(--fs-body);color:var(--muted);margin-left:2px}
.ties{display:block;color:var(--muted);margin-top:2px}
.tag.up{background:var(--jute-bg);color:var(--jute-ink)}
.card{background:var(--card);border-radius:var(--radius-3);padding:12px;box-shadow:0 0 0 1px var(--line)}
.rng,.vsel,.fsel,.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:2px 0 8px}
.rng button,.vsel button,.fsel button,.tabs button{font:inherit;font-size:var(--fs-meta);border:0;border-radius:999px;padding:5px 12px;background:var(--paper);color:var(--ink);cursor:pointer;box-shadow:inset 0 0 0 1px var(--line)}
.vsel button,.fsel button{font-size:var(--fs-meta)}  /* type names are words to read: the 16px floor */
.vsel button.on,.fsel button.on,.tabs button.on{background:var(--yellow-pale);color:var(--ink);box-shadow:inset 0 0 0 1px var(--yellow-line);font-weight:600}  /* chips: pale yellow + weight (#63) */
#win{display:inline-flex;flex-wrap:nowrap;gap:4px;padding:4px;border-radius:14px;background:var(--tint)}  /* the movers' spans: a segmented control */
#win button{background:transparent;box-shadow:none;border-radius:10px;color:var(--muted)}
#win button.on{background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 1px var(--yellow-line);font-weight:600}
svg.chart{width:100%;height:auto;display:block;touch-action:pan-y;cursor:crosshair}
svg .ln{fill:none;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}svg .end{stroke:var(--card);stroke-width:1.5}svg .end.one{fill:var(--yellow);stroke:var(--ink);stroke-width:2}
svg .cross{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}svg .dot{stroke:var(--card);stroke-width:2}
.chartbox{position:relative}
.tip{position:absolute;z-index:4;min-width:170px;max-width:260px;background:var(--card);color:var(--ink);border-radius:12px;padding:8px 10px;font-size:var(--fs-meta);line-height:1.5;box-shadow:0 8px 24px rgba(27,31,28,.18),0 0 0 1px var(--line);pointer-events:none}
.tip b{display:block;font-size:var(--fs-meta);margin-bottom:2px}.tip div{display:flex;align-items:center;gap:6px}.tip div span{margin-left:auto;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.tip i{width:10px;height:3px;border-radius:2px;flex:none}.tip small{font-weight:400;color:var(--muted)}.tip .ev{color:var(--jute-ink);font-weight:600;margin-top:2px}
svg .grid{stroke:var(--line)}svg .zero{stroke:var(--muted);stroke-dasharray:3 3}svg .ax{font-size:var(--fs-meta);fill:var(--muted)}
.lg{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--fs-meta);margin-top:6px}
.lg i,.dot{display:inline-block;width:12px;height:3px;vertical-align:middle;margin-right:5px;border-radius:2px}
.markets summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:.5rem;min-height:2.75rem}
.markets summary::-webkit-details-marker{display:none}.markets summary::after{content:"▾";color:var(--ink);font-size:var(--fs-section)}.markets[open] summary::after{content:"▴"}
.markets summary h2{margin:0;font-size:var(--fs-section);color:var(--ink)}.markets[open] summary{margin-bottom:.5rem}
.note{font-size:var(--fs-meta);color:var(--muted);margin:4px 2px 0}
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:12px 0}

/* tables */
table.mk,table.b,table.staples{width:100%;border-collapse:collapse;font-size:var(--fs-meta);background:var(--card);border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}
table th{font-size:var(--fs-meta);color:var(--muted);font-weight:600;text-align:right;padding:8px;border-bottom:1px solid var(--line)}
table td{padding:9px 8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
table tr:last-child td{border-bottom:0}
svg .evb{fill:var(--jute-bg)}svg .evl{stroke:var(--jute-ink);stroke-dasharray:2 2;opacity:.7}svg .evt{font-size:var(--fs-meta);fill:var(--jute-ink)}svg .evp{stroke:var(--muted);stroke-width:1}svg .evc{fill:var(--ink)}svg .evn{font-size:var(--fs-meta);font-weight:700;fill:var(--paper)}
.evlist h3{margin:1rem 0 .25rem;font-size:var(--fs-section)}.evlist ol{list-style:none;padding:0;margin:0}
.evlist .ev{display:grid;grid-template-columns:1.5rem minmax(0,1fr) auto;gap:.5rem .75rem;align-items:start;padding:.65rem 0;border-top:1px solid var(--line);font-size:var(--fs-body)}
.evlist .ev .et strong{font-weight:600}.evlist .ev .ec{font-weight:600;white-space:nowrap;align-self:center}.evlist .ev .ec.up{color:var(--up)}.evlist .ev .ec.dn{color:var(--dn)}.evlist .ev .ec.fl{color:var(--muted);font-weight:400}
.evlist .ev b{width:1.6rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:50%;background:var(--ink);color:var(--paper);font-size:var(--fs-meta);margin-top:.15rem}
.evlist .ev i{width:1.25rem;height:1.25rem;margin-top:.15rem;border-radius:.25rem}.evlist .ev i.rb{background:var(--jute-bg)}.evlist .ev i.el{border-left:2px dashed var(--jute-ink);width:0;margin-left:.6rem;border-radius:0}
.evlist summary{cursor:pointer;color:var(--ink);font-weight:600;min-height:2.75rem;display:flex;align-items:center}
.evlist .ev small{display:block;color:var(--muted);font-size:var(--fs-meta)}.evlist .ev .up{color:var(--up);font-weight:700}.evlist .ev .dn{color:var(--dn);font-weight:700}
.year h2{margin:0 0 .25rem}.mhead{font-size:var(--fs-section);font-weight:700;margin:.25rem 0 .5rem}
/* 12 bars from a dashed "usual" line: one 96px-tall target, the pointer's column picks the month (readout under it) */
/* the months (#72 mockup): twelve tiles, the letter on each, this month yellow; a mark at the top = dearer, bottom = cheaper */
.mbars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;height:2.75rem;touch-action:pan-y;cursor:crosshair}
.mbars span{position:relative;border-radius:10px;background:var(--tint)}
.mbars i{position:absolute;left:30%;right:30%;height:3px;border-radius:2px}.mbars i.up{top:4px;background:var(--up)}.mbars i.dn{bottom:4px;background:var(--dn)}
.mbars .now{background:var(--yellow)!important}
.mlab{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;height:2.75rem;margin-top:-2.75rem;pointer-events:none;
  text-align:center;font-size:var(--fs-meta);line-height:2.75rem;color:var(--ink)}.mlab .now{font-weight:700}
.mlab span{white-space:nowrap}
@media (max-width:389px){.mbars,.mlab{gap:2px}.mlab{height:auto;margin-top:var(--size-1);line-height:1.6}}  /* narrow phones: জুন/জুল don't fit on a tile, so the letters go under the strip */
.mread{min-height:1.5em;margin:.25rem 0 .5rem;font-size:var(--fs-meta)}.occ{margin:.35rem 0;font-size:var(--fs-meta)}
table th:first-child,table td:first-child{text-align:left;white-space:normal}
table td small{display:block;color:var(--muted);font-size:var(--fs-meta)}
table.b{font-size:var(--fs-meta)}table.b td:first-child{min-width:11rem}table.b tr{cursor:pointer}
table.b th[data-s]{cursor:pointer}table.b th.on{color:var(--ink)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.row2 select,.row2 input{font:inherit;padding:9px;border:1px solid var(--control-line);border-radius:12px;background:var(--card);color:var(--ink);min-width:0}
.warn{background:var(--jute-bg);color:var(--jute-ink);border-radius:12px;padding:9px 12px;font-size:var(--fs-meta);margin-top:10px}

/* inflation, fuel, list */
.hero.card .big,.card .big{font-size:var(--fs-body);margin:0 0 4px}.card .en{font-size:var(--fs-meta);color:var(--muted);margin:0}
.bars{margin-top:10px}.bar{display:flex;align-items:center;gap:8px;font-size:var(--fs-meta);margin:6px 0}
.bar .l{width:150px}.bar .t{flex:1;background:var(--paper);border-radius:4px;height:14px;position:relative;box-shadow:inset 0 0 0 1px var(--line)}
.bar .t i{position:absolute;inset:0 auto 0 0;border-radius:4px}.bar .bu{background:var(--up)}.bar .bd{background:var(--dn)}.bar .bc{background:var(--muted)}
.drv{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line)}.drv:last-child{border:0}
.best{background:var(--yellow-pale);border-radius:6px;padding:0 6px}
/* fuel (#63): one big price with the changes in words beside it, the step chart, then কবে কত বদলেছে as rows */
.fview{display:flex;flex-direction:column}.fview[hidden]{display:none}.fmain{border-top:1px solid var(--line);padding-top:22px;margin-top:var(--size-3)}
.fhead{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--size-2) var(--size-6)}.fpair{display:grid;gap:var(--size-5);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))}
.fp{display:flex;flex-direction:column}.fnow .n{font-size:var(--fs-meta);color:var(--muted)}
.fnow .p{font-size:var(--font-size-7);font-weight:700;letter-spacing:-.03em;line-height:1.2;font-variant-numeric:tabular-nums}
.fd{display:flex;flex-direction:column;margin-bottom:var(--size-2)}.fnow .w{font-size:var(--fs-meta);color:var(--muted);margin:var(--size-2) 0 0}
.fnow .up,.fnow .dn,.fchg .up,.fchg .dn{font-weight:600;white-space:nowrap}
.fview .warn,.fview .fmain>p{font-size:var(--fs-meta)}
svg.step{width:100%;height:auto;display:block;margin:.75rem 0}svg.step .ln{stroke:var(--ink)}svg .stp{fill:var(--ink)}
.fview .evlist{border-top:1px solid var(--line);padding-top:22px;margin-top:var(--size-5)}.fview .evlist h2{margin:0 0 var(--size-2);font-size:var(--fs-section)}
.fview .evlist h3{margin:var(--size-6) 0 var(--size-2);font-size:var(--fs-body)}
.evlist .fchg{display:block;padding:11px 0;border-top:0;border-bottom:1px solid var(--line);font-size:var(--fs-body)}
.fchg .fh{display:flex;justify-content:space-between;align-items:center;gap:12px}.fchg .fh>span{display:flex;flex-direction:column;min-width:0}
.fchg .fh small{font-size:var(--fs-meta);color:var(--muted);font-variant-numeric:tabular-nums}
.fchg q{font-style:italic}.fchg small{display:block;color:var(--muted);font-size:var(--fs-meta)}.fchg a{color:var(--ink);overflow-wrap:anywhere}
.fmore summary{cursor:pointer;width:max-content;font-weight:600;min-height:2.75rem;display:flex;align-items:center;list-style:none;text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:6px}
.fmore summary::-webkit-details-marker{display:none}.fmore[open] summary{display:none}
.fpage>.fold{margin-top:var(--size-6);border-bottom:1px solid var(--line)}
@media (min-width:900px){  /* desktop (#63 mockup): the price and chart in one panel, কবে কত বদলেছে in a panel beside it */
  .fview:not([hidden]){display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:var(--size-7);align-items:start}
  .fmain,.fview .evlist{margin:var(--size-3) 0 0;padding:24px 26px;border:1px solid var(--line);border-radius:20px}
  .fpage>.fold{border:0;max-width:46rem}
}
.lrow{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.qty{display:flex;align-items:center;gap:10px}
.qty button{font:inherit;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer}
details summary{cursor:pointer;font-weight:600}
ul.plain{padding-left:18px}
.links{display:grid;gap:8px;margin-top:14px}.links small{display:block;color:var(--muted);font-size:var(--fs-meta)}

/* ---------- bottom tabs (phones) ---------- */
.nav{position:fixed;bottom:0;left:0;right:0;z-index:6;display:flex;background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tab{flex:1;text-align:center;padding:5px 0 7px;margin:4px 3px;border-radius:12px;font-size:var(--fs-meta);color:var(--muted);text-decoration:none;min-height:56px}
.ic{width:1.15em;height:1.15em;vertical-align:-.2em;flex:none}.tab .ic{display:block;width:1.5rem;height:1.5rem;margin:0 auto 2px}
.tab.on{background:var(--yellow-pale);color:var(--ink);font-weight:700}
.tab{position:relative}
.tab .badge{position:absolute;top:4px;left:calc(50% + 6px);min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--yellow);color:var(--ink);font-size:var(--fs-meta);font-weight:700;line-height:20px;text-align:center}  /* the bag's count (#37): a yellow pill, never red */
.tab .badge[hidden]{display:none}
.foot{display:none}

/* ================= website: wide screens ================= */
@media (min-width:900px){
  body{padding-bottom:0}
  .nav{display:none}
  main{max-width:var(--wrap);padding:0 32px 40px}
  .top{position:static;background:var(--card);color:var(--ink);border-bottom:1px solid var(--line);padding:0}
  .top .bar{max-width:var(--wrap);margin:0 auto;height:60px;padding:0 32px}  /* #24: one left edge with main and the footer */
  .brand{color:var(--ink);font-size:var(--fs-section);margin-right:18px}
  .topnav{display:flex;gap:4px;align-self:stretch}
  .topnav a{display:flex;align-items:center;padding:0 12px;text-decoration:none;color:var(--muted);font-weight:500;border-bottom:2px solid transparent}
  .topnav a:hover{color:var(--ink)}
  .topnav a.on{color:var(--ink);font-weight:700;border-bottom-color:transparent}
  .mylist{display:block;margin-left:10px;text-decoration:none;font-weight:600;color:#fff;background:var(--ink);min-height:2.75rem;padding:0 18px;border-radius:12px}
  .top .fr{max-width:var(--wrap);margin:0 auto;padding:4px 32px 8px;font-size:var(--fs-meta);color:var(--muted);opacity:1}

  /* home: a flat search band, then the table and a side column */
  .lede{font-size:var(--fs-meta);max-width:60ch}.lede .en{display:inline;color:var(--muted)}
  .searchbox{max-width:640px}
  .search{border-radius:12px;padding:13px 18px;font-size:var(--fs-meta)}
  .home{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:40px;margin-top:8px}
  .cards{display:none}
  table.staples{display:table}
  table.staples td{padding:11px 10px}
  table.staples td:first-child a{font-weight:600;text-decoration:none}
  table.staples td:first-child a:hover{text-decoration:underline}
  table.staples td small{display:inline}
  td.trend svg{width:90px;height:22px}
  td.staple{text-align:center}
  #cmp{width:auto;display:inline-block;padding:10px 18px;border-radius:10px}
  .more{display:inline-block;margin-left:16px}
  .side .rows{gap:0}
  .side .row{background:none;box-shadow:none;border-radius:0;border-bottom:1px solid var(--line);padding:10px 0;min-height:0}
  .side .row:hover .m b{text-decoration:underline}

  /* item page: chart left; cheapest, months and tables right */
  main > h1{font-size:var(--fs-title);margin:6px 0 16px}
  .crumb{margin-top:16px}
  .itemgrid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(400px,1fr);grid-template-areas:"cheap cheap" "chart where" "chart year" "chart markets";
    gap:16px 28px;align-items:start}
  .itemgrid .cheap{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0 28px;padding:16px 20px}  /* #24: price · সামনে সাধারণত · + */
  .itemgrid .cheap .answer{grid-column:1;grid-row:1}.itemgrid .cheap .ahead-slot{grid-column:2;grid-row:1}.itemgrid .cheap [data-add]{grid-column:3;grid-row:1;width:auto;margin:0;padding:0 1.5rem}
  .itemgrid .cheap .ahead-card{margin:0;padding:0 0 0 28px;border-top:0;border-left:1px solid var(--line)}
  .itemgrid .cheap .community{grid-column:1/-1}
  .leftcol{grid-area:chart;display:flex;flex-direction:column;gap:16px}
  .chartbox{padding:0}
  .itemgrid .cheap{grid-area:cheap}.itemgrid .where{grid-area:where}.year{grid-area:year}
  .markets{grid-area:markets}

  /* footer */
  .foot{display:grid;grid-template-columns:2fr 3fr 1.5fr;gap:24px;max-width:var(--wrap);margin:24px auto 0;padding:20px 32px 28px;
    border-top:1px solid var(--line);font-size:var(--fs-meta);color:var(--muted)}
  .foot a{display:block;color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:6px;margin-bottom:4px;width:fit-content}
  .foot b{color:var(--ink)}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* big screens: use the width, and scale the type a little */
@media (min-width:1600px){:root{--wrap:1360px;--fs-body:1.125rem}}
@media (min-width:2200px){:root{--wrap:1560px;--fs-body:1.1875rem;--fs-display:2.75rem}}

.chg{display:block;font-size:var(--fs-meta);margin:2px 0}
.sub{font-size:var(--fs-meta);margin:14px 0 4px}
.bk{padding:8px 0;border-bottom:1px solid var(--line)}.bk small{color:var(--muted)}
.bk .pr{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
.bk .pr span{font-size:var(--fs-meta);padding:3px 10px;border-radius:12px;background:var(--paper);box-shadow:0 0 0 1px var(--line)}
.bk .pr span.best{background:var(--yellow-pale);color:var(--ink);font-weight:600;box-shadow:0 0 0 1px var(--ink)}
#qk button{font-size:var(--fs-meta);padding:6px 12px}
#cost .rng{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#cost .rng button{padding:5px 0;white-space:nowrap;min-width:0;text-align:center}
@media (min-width:600px){#cost .rng{grid-template-columns:repeat(6,1fr)}}

/* ---------- bazar comparison (spec 4): one component on item page, board and list ---------- */
.cmp .one{font-size:var(--fs-section);margin:.25rem 0}
.cmp .ref{border-top:1.5px dashed var(--line);padding-top:.5rem;color:var(--muted)}
.cmp .old{color:var(--muted);opacity:.7;padding-left:1.1rem}
.cmp .save{font-weight:600;font-size:var(--fs-body)}

/* ---------- shopper rules (spec 2): readable, tappable, nothing sideways ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
.src,.aka,.note,.lg,.evlist,table td small,.crumb{font-size:var(--fs-meta)}   /* small print never below 16px (item page; spec 2) */
h3 small,.markets small{font-size:var(--fs-meta)}
.staple .p{font-size:var(--fs-section)}   /* prices at least 22px; the item page's .price is already 2.375rem */
.rng button,.vsel button,.fsel button,.tabs button,.btn,.qty button{min-height:3rem;min-width:3rem}
.rng,.vsel,.fsel,.tabs{display:flex;flex-wrap:wrap;gap:.5rem}
img,svg,table{max-width:100%}
/* the sticky add button reserves its own height, so it never sits on the chart legend at the end of the page */

/* ---------- home (spec 2026-10-19), phone first: search in the header's colour, my list card, the week's moves and the
   government note, two rows of today's prices, the questions ---------- */
.hsearch{position:relative;z-index:3;margin:.5rem 0 1.25rem;color:var(--ink)}
/* the band runs edge to edge as a layer behind it: nothing is clipped, so the results list can hang below */
html,body{overflow-x:clip}  /* never a sideways scroll */
.hhead{margin:0 0 .9rem;font-size:var(--fs-title);font-weight:700;line-height:1.3;letter-spacing:-.02em;color:var(--ink)}  /* the home headline (#63) */
.hl{background:linear-gradient(transparent 62%,var(--yellow) 62%);padding:0 .1em}  /* the highlighter: one phrase per page */
.hints{display:none}
.hsearch .sq{display:flex;gap:.35rem;background:var(--card);border-radius:14px;padding:5px;box-shadow:inset 0 0 0 1.5px var(--ink)}
.hsearch .search{flex:1;min-width:0;border:0;border-radius:10px;padding:.55rem .6rem;background:transparent}
.hsearch .sq{align-items:center}.sq .sqi{width:1.25rem;height:1.25rem;margin-left:.5rem;color:var(--muted)}  /* the mockup's magnifier (#72) */
.hsearch .search:focus-visible{outline:0}  /* the ring goes round the whole field */
.since{background:var(--jute-bg);color:var(--ink);border-radius:.6rem;padding:.35rem .6rem;margin:.2rem 0 .4rem;font-size:var(--fs-meta)}
#aheadc h3{margin:.75rem 0 .25rem;font-size:var(--fs-body)}#aheadc h3:first-child{margin-top:0}#aheadc h3 small{color:var(--muted);font-weight:400}
#aheadc .arow{display:flex;justify-content:space-between;gap:.75rem;padding:.4rem 0;border-top:1px solid var(--line)}#aheadc .arow b{white-space:nowrap}
#aheadc .up{color:var(--up)}#aheadc .dn{color:var(--dn)}#aheadc .amon{margin:.25rem 0 .5rem}
.ahead-card{margin-top:.9rem;padding-top:.75rem;border-top:1px solid var(--line)}.ahead-card p{margin:.3rem 0}
.atag{display:inline-block;background:var(--jute-bg);color:var(--jute-ink);border-radius:999px;padding:.1rem .65rem;font-size:var(--fs-meta);margin-bottom:.25rem}
.ahead-card .atip{background:var(--yellow-pale);border-radius:.6rem;padding:.5rem .75rem;margin:.6rem 0 0}
.mvc h3{margin:.3rem 0 .1rem;font-size:var(--fs-meta)}.mvc h3.dn{color:var(--dn)}.mvc h3.up{color:var(--up)}
.mvc a{display:flex;justify-content:space-between;gap:.5rem;min-height:2.75rem;align-items:center;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.mvc a:last-child{border-bottom:0}
/* ---------- home is the board (#37): the week's strip, the bag card, every item by group ---------- */
.strip h2{margin:0 0 .5rem;font-size:var(--fs-body);font-weight:700;color:var(--ink)}
.strip:has(#moves:empty){display:none}
.hstrip{display:flex;gap:.5rem;overflow-x:auto;margin:0 -16px;padding:0 16px 2px;scrollbar-width:none;overscroll-behavior-x:contain}
.hstrip::-webkit-scrollbar{display:none}
.mc{flex:none;display:flex;flex-direction:column;justify-content:center;min-height:3.5rem;padding:.35rem .85rem;border-radius:12px;background:var(--card);border:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:var(--fs-meta);line-height:1.3}
.mc span{font-weight:600}  /* the strip (owner, 2026-11-13): a bold name over the change in red or green */
.mc b{font-variant-numeric:tabular-nums}.hstrip .mv{margin:.35rem 0;font-size:var(--fs-meta)}
.bagc{margin-top:1rem;background:var(--card);border-radius:var(--radius);box-shadow:0 0 0 1.5px var(--jute);padding:1rem 1.1rem}
.bagc .bh{margin:0;font-size:var(--fs-section)}.bagc p{margin:.35rem 0 0;color:var(--muted)}
.bagc .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin-top:.75rem;max-width:34rem}
.bagc .steps div{position:relative;padding:.25rem .35rem;text-align:center;font-size:var(--fs-meta);line-height:1.35;color:var(--muted)}  /* a picture of the steps, not buttons */
.bagc .steps div+div::before{content:"›";position:absolute;left:-.45rem;top:.15rem;color:var(--muted);font-size:var(--fs-section)}
.bagc .steps b{display:block;font-size:var(--fs-meta);color:var(--ink)}
.bagc .pick{display:flex;justify-content:center;align-items:center;min-height:2.75rem;margin-top:.75rem;border-radius:.75rem;background:var(--ink);color:#fff;font-weight:700;text-decoration:none}
.hboard{margin-top:1rem}
.hsearch .bfilter{flex:none;min-height:2.75rem;border:0;border-radius:10px;background:var(--ink);color:#fff}
.hsearch .bfilter[aria-expanded="true"]{background:var(--yellow-pale);color:var(--ink);border-color:var(--yellow-line)}
.bagsum{display:flex;align-items:center;gap:.75rem;color:var(--ink);text-decoration:none;min-height:3rem}
.bagsum .ic{flex:none;width:2.5rem;height:2.5rem;border-radius:.75rem;display:grid;place-items:center;background:var(--jute-bg);color:var(--jute-ink)}
.bagsum .t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.bagsum .t small{color:var(--muted);font-size:var(--fs-meta)}
.bagsum .v{text-align:right;line-height:1.3;white-space:nowrap}.bagsum .v b{font-size:var(--fs-section);font-variant-numeric:tabular-nums}.bagsum .v small{display:block;font-size:var(--fs-meta);font-weight:600}
.fams .mine{background:var(--jute-bg);color:var(--jute-ink);border-color:var(--jute-bg);font-weight:700}.fams .mine.on{background:var(--jute-ink);color:#fff}
.brows .bgrp{grid-column:1/-1;margin:0;padding:.9rem .9rem .15rem}
/* আমার ব্যাগ (#37): the total on top, then each item with its amount and cost; empty, the starter packs */
.bagtot{background:var(--tint);border-radius:20px;padding:20px 18px}  /* #63: the tint total block */
.bagtot p{margin:0}.bagtot .l{color:var(--muted)}.bagtot .big{font-size:var(--font-size-6);font-weight:700;letter-spacing:-.03em;line-height:1.2;font-variant-numeric:tabular-nums}
.bagtot .w{margin:.25rem 0 0;font-weight:600}.bagtot .since{margin:.5rem 0 0;padding:0;background:none;color:var(--muted)}
.bagh{display:flex;justify-content:space-between;margin:1.25rem 0 .35rem;font-size:var(--fs-meta);font-weight:600;color:var(--muted)}
.qty.stp.lt{gap:0;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line-strong)}.qty.stp.lt button{border:0;background:transparent;color:var(--ink);font-size:var(--fs-section);min-width:2.75rem;min-height:2.75rem}.qty.stp.lt b{font-size:var(--fs-meta);white-space:nowrap}
.bagmore{display:flex;justify-content:center;align-items:center;min-height:3rem;margin-top:.75rem;border-radius:.9rem;border:1.5px dashed var(--ink);color:var(--ink);font-weight:700;text-decoration:none}
.bagempty{text-align:center;margin-top:1rem}.bagempty h2{font-size:var(--fs-section);margin:.75rem 0 .25rem}.bagempty p{color:var(--muted);margin:0 auto;max-width:22rem}
.bagpic{width:4.5rem;height:4.5rem;margin:0 auto;border-radius:1.4rem;display:grid;place-items:center;background:var(--jute-bg);color:var(--jute-ink)}
.pack{display:flex;align-items:center;gap:.75rem;margin-bottom:.6rem;padding:.75rem .75rem .75rem .9rem;background:var(--card);border-radius:var(--radius);box-shadow:0 0 0 1px var(--line)}
.pack.main{box-shadow:0 0 0 1.5px var(--jute)}
.pack .pk{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}.pack .pk small{color:var(--muted);font-size:var(--fs-meta)}
.pack button{font:inherit;font-weight:700;min-height:2.75rem;padding:0 1rem;border-radius:1.5rem;border:1.5px solid var(--ink);background:var(--card);color:var(--ink);cursor:pointer;white-space:nowrap}
.pack.main button{background:var(--ink);border-color:var(--ink);color:#fff}
/* a row: the item (tap: the bazars) and, beside it, + ব্যাগে or − amount + (#37) */
.brow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.brow .bin{grid-column:1/-1}
.bctl{padding:.4rem .9rem .4rem 0}  /* the same gap on the right as the name has on the left */
/* inside an item: which type, each with its price; the add button right under the choice (#37) */
.brow .bin .acts .addsel,.bsin .acts .addsel{width:100%;min-height:3rem;font:inherit;font-weight:700;border:0;border-radius:.8rem;background:var(--ink);color:#fff;cursor:pointer}
.brow .bin .acts .added,.bsin .acts .added{display:block;padding:.6rem 0;color:var(--dn);font-weight:700}
.bin .hist,.bsin .hist{display:inline-flex;align-items:center;min-height:3rem;font-weight:600}
.bctl .addt{font:inherit;font-size:var(--fs-meta);font-weight:600;min-height:2.75rem;min-width:6.5rem;padding:0 .6rem;border-radius:12px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);cursor:pointer;white-space:nowrap;position:relative}
.bctl .qty.stp,.bctl .stp{gap:0;border-radius:12px;background:var(--yellow);color:var(--ink);box-shadow:inset 0 0 0 1px var(--control-line)}  /* added (#63): a yellow stepper, the amount in ink */
.bctl .stp button{width:2.75rem;height:2.75rem;min-width:2.75rem;min-height:2.75rem;border:0;background:transparent;color:var(--ink);font-size:var(--fs-section)}
.bctl .stp b{font-size:var(--fs-meta);white-space:nowrap}
.bgrp{margin:1.25rem 0 .25rem;font-size:var(--fs-meta);color:var(--muted)}
.brow-l{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.75rem;padding:.6rem 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.brow-l .p{margin-left:auto;white-space:nowrap}.brow-l .p b{font-variant-numeric:tabular-nums}.brow-l .p small{color:var(--muted)}
.brow-l .w{flex-basis:100%;text-align:right;font-size:var(--fs-meta);font-weight:600}
.faq{margin-top:2rem}.faq h2{font-size:var(--fs-section)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:3rem;padding:.4rem 0;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;font-size:var(--fs-section);color:var(--ink)}.faq details[open] summary::after{content:"−"}
.faq h3{font-size:var(--fs-body);margin:0}.faq p{margin:0 0 .8rem;color:var(--muted)}
.fams{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0 .3rem}
.fams button,.fams a{font:inherit;min-height:3rem;padding:.5rem .75rem;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;cursor:pointer}
.fams button,.fams a{flex:none;white-space:nowrap}  /* wrap to a new line, never squeeze a label (home and board) */
.fams .on{background:var(--yellow-pale);color:var(--ink);border-color:var(--yellow-line);font-weight:600}
.fams .tog{background:transparent;box-shadow:none;color:var(--ink);font-weight:600;padding-inline:.4rem}
.fams:not(.open) .x{display:none}
@media (min-width:900px){.fams:not(.open) .x,.fams .x{display:inline-flex}.fams .tog{display:none}}
.toast{position:fixed;left:50%;bottom:160px;transform:translateX(-50%);z-index:7;width:max-content;max-width:calc(100% - 32px);background:var(--ink);color:var(--paper);border-radius:.8rem;padding:.5rem 1rem;font-size:var(--fs-meta);opacity:0;pointer-events:none;transition:opacity .2s}
.toast.on{opacity:1;pointer-events:auto}
.toast a{color:var(--yellow);font-weight:700;margin-left:.5rem;padding:.25rem 0;display:inline-block}
@media (min-width:900px){.toast{bottom:100px}}
@media (min-width:900px){.home2{max-width:var(--wrap);margin:0 auto}}
.cmp .tag{display:inline-block;font-size:var(--fs-meta);font-weight:600;color:var(--jute-ink);background:var(--jute-bg);border-radius:var(--radius-2);padding:0 var(--size-2);margin-left:var(--size-1);white-space:nowrap}
.cmp .note{font-size:var(--fs-meta);color:var(--muted)}

/* ---------- board (spec 5): pickers, rows, the comparison opened in place ---------- */
#bfams:not(.open) .x{display:none}
@media (min-width:900px){#bfams:not(.open) .x{display:inline-flex}#bfams .tog{display:none}}
.brows{display:flex;flex-direction:column;gap:.5rem;margin-top:.5rem}
.brow{background:var(--card);border-radius:var(--radius);box-shadow:0 0 0 1px var(--line);scroll-margin-top:calc(var(--toph,3.25rem) + var(--qbarh,0px) + var(--famsh,4rem) + .5rem)}  /* clear of the top bar and the pinned chips */
.selects{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.5rem 0}.selects[hidden]{display:none}
/* #24 board: search and ফিল্টার on one line, the chips pinned under the top bar, a sort line, one-line rows */
.btools{display:flex;gap:.5rem;align-items:stretch}.btools .searchbox{flex:1;min-width:0}
.bfilter{font:inherit;font-weight:600;min-height:3rem;padding:0 1rem;border-radius:12px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);cursor:pointer}
.bfilter[aria-expanded="true"]{background:var(--yellow-pale);color:var(--ink);border-color:var(--yellow-line)}
#bfams{position:sticky;top:calc(var(--toph,3.25rem) + var(--qbarh,0px));z-index:3;background:var(--paper);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:.4rem -16px 0;padding:.4rem 16px}
#bfams .x,#bfams:not(.open) .x{display:inline-flex}#bfams .tog{display:none}  /* every group in the one scrolling row */
.bsort{margin:.4rem 0 0;font-weight:600}
.selects label{display:flex;flex-direction:column;gap:.15rem;font-size:var(--fs-meta);color:var(--muted);flex:1 1 10rem}
.selects select{font:inherit;color:var(--ink);background:var(--card);min-height:3rem;border-radius:.8rem;border:1.5px solid var(--ink);padding:0 .75rem}
.brow .bh{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"n p w";column-gap:.6rem;align-items:center;text-align:left;font:inherit;color:inherit;background:none;border:0;padding:.5rem .9rem;min-height:3rem;cursor:pointer}
.brow .bh .w{grid-area:w;font-weight:700;white-space:nowrap;min-width:3.5rem;text-align:right}.brow .bh .w.up{color:var(--up)}.brow .bh .w.dn{color:var(--dn)}

.brow .bh .n{grid-area:n;display:flex;align-items:center;min-width:0;font-size:var(--fs-body);white-space:nowrap}.brow .bh .n .nt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ip{width:44px;height:44px;flex:none;margin-right:.6rem}  /* the drawn picture before every item's name (spec 2026-11-16): 44px, centred on a name of one or two lines */
.brow .bh .p small{display:inline-block}  /* /কেজি may drop under a long price instead of pushing the page sideways */
.brow .bh .p{grid-area:p;font-weight:800;font-size:var(--fs-body);font-variant-numeric:tabular-nums;text-align:right}.brow .bh .p .r{white-space:nowrap}.brow .bh .p small{font-weight:400;font-size:var(--fs-meta);color:var(--muted)}
.brow.on{box-shadow:0 0 0 2px var(--ink)}
.bsheet .acts{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between;margin-top:.5rem}
.bsheet .acts a{font-weight:600;min-height:3rem;display:inline-flex;align-items:center}
.bsheet .acts button{font:inherit;font-weight:600;min-height:3rem;padding:0 1rem;border-radius:.8rem;border:0;background:var(--yellow-pale);color:var(--ink);cursor:pointer}
.bsheet .acts .added{color:var(--dn);font-weight:600}
.brows .empty{font-size:var(--fs-section);color:var(--muted);margin:0;padding:1rem .9rem}

/* ---------- item page answer card (spec 6) ---------- */
.tag.dn{background:var(--yellow-pale);color:var(--dn)}.tag.fl{background:var(--yellow-pale)}.tag.amber{background:var(--jute-bg);color:var(--jute-ink)}
.answer .tag{margin:0;padding:var(--size-1) var(--size-2)}.lastyear{margin:.5rem 0 0;font-size:var(--fs-body)}

/* ---------- item page trend (spec 6 item 3) ---------- */
svg .band{fill:var(--line);opacity:.8}  /* the usual range: grey, never a yellow surface (#63) */svg .ext{fill:var(--ink)}svg .extl{font-size:var(--fs-meta);fill:var(--ink)}
.trend{font-size:var(--fs-body);margin:.25rem 0 .5rem}
.chartbox .rng button{min-height:3rem;min-width:3rem;font-size:var(--fs-meta)}#allm{margin-top:.5rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0}.chips button{font:inherit;min-height:3rem;padding:.4rem .9rem;border-radius:1.5rem;border:0;background:var(--yellow-pale);color:var(--ink);cursor:pointer}
.chartbox .searchbox{margin-top:.5rem}

/* ---------- share cards (spec 8.5) ---------- */
.scard{margin:0 0 1.25rem;background:var(--card);border-radius:var(--radius);box-shadow:0 0 0 1px var(--line);padding:.75rem}
.scard canvas{display:block;width:100%;height:auto;border-radius:.5rem}
.scard .share{width:100%;min-height:3rem;margin-top:.6rem;font-size:var(--fs-body)}
.scard .pick{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:.6rem;font-size:var(--fs-body)}.scard select{font:inherit;min-height:3rem;padding:0 .6rem}
.scard .none{font-size:var(--fs-body);color:var(--muted)}
.cardsize{max-width:22rem;margin:0 0 1rem}.cardsize button{min-height:3rem;font-size:var(--fs-body)}  /* spec 2026-11-30: Feed / Story */

/* ---------- logo (rice sack, see web/site/logo.svg) and the Kriyonix credit ---------- */
.brand{display:inline-flex;align-items:center;gap:.45rem;color:var(--ink)}
.brand .nm{background:linear-gradient(transparent 62%,var(--yellow) 62%);padding:0 .2em}  /* the name sits on the highlighter stroke */.brand img{height:2.25rem;width:2.25rem}
@media (max-width:899px){.foot{display:block;padding:.5rem 1rem 1rem;color:var(--muted)}.foot>div:not(.kx){display:none}}  /* phones: only the credit; the tab bar has the rest */
.foot .kx{grid-column:1/-1;display:flex;align-items:center;gap:.35rem}.foot .kx svg{width:1rem;height:1rem}.foot .kx a{font-weight:700;color:var(--ink)}

/* ---------- home at every size (spec 2026-10-19): tablet 3 across, desktop a search band and two columns ---------- */
h1{color:var(--ink)}.hsearch h1{color:inherit}
.hsearch .sq:focus-within{outline:2px solid var(--ink);outline-offset:2px}
@media (min-width:900px){
  .hhero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:3.5rem;align-items:center;padding:2rem 0;margin-bottom:1.5rem;border-bottom:1px solid var(--line)}  /* #72: the two columns centred on each other, a hairline before the board (mockup) */
  .hsearch{margin:0;color:var(--ink)}
  .hhead{font-size:var(--fs-display);margin-bottom:1.25rem;text-wrap:balance}
  .hints{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:1rem 0 0;color:var(--muted)}
  .hints a{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 .9rem;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none}
  .hints a:hover{border-color:var(--line-strong)}
  .hsearch .searchbox{max-width:none;margin:0;text-align:left}  /* #24: the band stays under 140px */
  .hsearch .sq{padding:6px;border-radius:16px}
  .hsearch .search{font-size:var(--fs-section);padding:.75rem 1rem}
  .fams button,.fams a{padding:.4rem .7rem}
  .faq{columns:2;column-gap:40px}.faq h2{column-span:all}.faq details{break-inside:avoid}
}

/* ---------- board item (spec 2026-10-19 part 1): a sheet from the bottom on phones, a panel beside the list on desktop ---------- */
.bsheet{border:0;padding:0;background:var(--card);color:var(--ink);max-width:none}
@media (max-width:899px){.bsheet{display:none}}
/* #24, #37: one list at every width, so 80-odd rows read as one board, not a pile of cards */
.brows{gap:0;background:var(--card);border-radius:var(--radius);box-shadow:0 0 0 1px var(--line);overflow:hidden}
.brow{background:none;border-radius:0;box-shadow:none}.brow+.brow{border-top:1px solid var(--line)}.brow.on,.brow.open{border-radius:var(--radius)}
.brows .bgrp{border-top:1px solid var(--line)}.brows .bgrp:first-child{border-top:0}
.brows .bgrp+.brow{border-top:0}
.bsin{padding:.4rem 1.1rem 1.25rem}
.bshd{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.4rem}
.bshd h2{margin:0;font-size:var(--fs-section)}
.bx{flex:none;width:2.75rem;height:2.75rem;border:0;border-radius:50%;background:var(--yellow-pale);color:var(--ink);font:inherit;font-size:var(--fs-section);cursor:pointer}
.bl{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.6rem 0;border-top:1px solid var(--line)}
.bl small.bd{display:block;font-weight:400}.bl>span:first-child{font-weight:600;min-width:0}.bl>span:last-child small{display:block}
.bl b{font-variant-numeric:tabular-nums;white-space:nowrap}.bl small{display:inline-block;color:var(--muted);font-size:var(--fs-meta)}.bl>span:last-child{text-align:right}
.bl.lo{color:var(--ink);font-weight:700;background:var(--yellow-pale);border:0;border-radius:.6rem;padding:.45rem .5rem;margin:.15rem -.5rem}  /* the cheapest: pale yellow, as the bag's (#63; green means a price fell) */
.bl.lo b{color:var(--ink)}.bl small.up{color:var(--up)}.bl small.dn{color:var(--dn)}
.bsheet .ref,.bsheet .wk,.bsheet .old{color:var(--muted)}.bsheet .old{opacity:.8;padding-left:1.1rem}.bsheet .save{font-weight:600}
/* phones: the item opens in its own row, short (owner, 2026-10-19: option B) */
.brow.open{box-shadow:0 0 0 2px var(--ink)}
.brow .bin{margin:0 .9rem .75rem;padding-top:.4rem;border-top:1px solid var(--line)}
.bin .bl{padding:.3rem 0}.bin .bl.lo{padding:.3rem .5rem}.bin .vsel{margin:.1rem 0 .3rem}.bin p{margin:.35rem 0}.bin .acts{margin-top:.25rem}
.brow .bin .acts{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between;margin-top:.5rem}
.brow .bin .acts a{font-weight:600;min-height:3rem;display:inline-flex;align-items:center}
.brow .bin .acts button{font:inherit;font-weight:600;min-height:3rem;padding:0 1rem;border-radius:.8rem;border:0;background:var(--yellow-pale);color:var(--ink);cursor:pointer}
.brow .bin .acts .added{color:var(--dn);font-weight:600}
.bin .ref,.bin .wk,.bin .old{color:var(--muted)}.bin .old{opacity:.8;padding-left:1.1rem}.bin .save{font-weight:600}
@media (min-width:900px){
  /* always two sides (owner, 2026-10-19): the list never changes shape; the right side is the week's moves or the open item */
  #bfams{position:static;margin:.4rem 0 0;padding:.4rem 0;flex-wrap:wrap}  /* pinned on phones only: on desktop it would cover the item panel */
}
.mvr{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;padding:.55rem 0;border-top:1px solid var(--line);text-decoration:none;min-height:2.75rem}
.mvr small{display:block;color:var(--muted);font-size:var(--fs-meta)}.mvr b{white-space:nowrap}
/* very narrow rows (a 320px phone with large text): the price goes under the name, so a name never breaks mid-word */
.brow{container-type:inline-size}
@container (max-width:18rem){.brow .bh{grid-template-columns:minmax(0,1fr);grid-template-areas:"n" "p" "t" "s"}.brow .bh .p{text-align:left}}

/* the inflation page (plan 2026-10-20-inflation-page; #63): the bag's two figures and chart, the ৳1,000 bags, the rises as
   bars; each a section under a hairline, the notes and sources in one উৎস ও পদ্ধতি row */
.lede:has(+ #infl){font-size:var(--fs-meta)}
.icard{border-top:1px solid var(--line);padding:22px 0 var(--size-6)}.icard h2{margin:0 0 var(--size-3);font-size:var(--fs-section)}
.icard p{margin:.25rem 0}.icard p.big{font-size:var(--fs-body);font-weight:700}
.icard .note,.icard .src,.bbs .note,#inflsrc .note,#inflsrc .src{font-size:var(--fs-meta);color:var(--muted)}
#inflsrc h3{font-size:var(--fs-body);margin:var(--size-3) 0 0}#inflsrc h3:first-child{margin-top:0}
.infig{display:flex;align-items:flex-end;flex-wrap:wrap;gap:var(--size-2) var(--size-6)}.infig p{display:flex;flex-direction:column;margin:0}
.infig small{color:var(--muted)}.infig b{font-size:var(--font-size-5);font-weight:700;color:var(--muted);letter-spacing:-.02em;line-height:1.2;font-variant-numeric:tabular-nums}
.infig .now b{font-size:var(--font-size-6);color:var(--ink);letter-spacing:-.03em}
.icard .wk{margin:var(--size-2) 0 0;font-weight:600}.icard .wk .hl{color:var(--ink)}
.icard .share{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:auto;min-height:3rem;padding:0 1.25rem;margin-top:var(--size-3);font-size:var(--fs-body)}
.icard .pick{display:flex;margin-bottom:var(--size-3)}.icard select{font:inherit;min-height:3rem;padding:0 .6rem;max-width:100%}
ol.rise{list-style:none;padding:0;margin:0}
ol.rise a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:baseline;padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
ol.rise .l{font-weight:600}ol.rise .pct{white-space:nowrap;font-weight:600}
ol.rise .t{grid-column:1/-1;position:relative;height:8px;border-radius:999px;background:var(--tint)}
ol.rise .t i{position:absolute;inset:0 auto 0 0;border-radius:999px}ol.rise .bu{background:var(--up)}ol.rise .bd{background:var(--dn)}
ol.rise .pr{grid-column:1/-1;color:var(--muted);font-size:var(--fs-meta);font-variant-numeric:tabular-nums}
ol.rise .up,.icard .up{color:var(--up)}ol.rise .dn,.icard .dn{color:var(--dn)}
.icard .allrise{display:flex;width:max-content;align-items:center;min-height:2.75rem;margin-top:var(--size-2)}
@media (max-width:899px){.icard:not(.all) ol.rise li:nth-child(n+6){display:none}}  /* five on phones, then সব ১১টি পণ্য দেখুন */
@media (min-width:900px){.icard .allrise{display:none}}
/* the ৳1,000 bags: still affordable = yellow tiles, the lost ones a dashed outline (#63) */
.thou{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--size-2);margin:var(--size-3) 0 0;max-width:24rem}
.thou span{display:grid;place-items:center;height:2.75rem;border-radius:12px;background:var(--yellow);color:var(--ink)}
.thou .lost{background:none;border:1.5px dashed var(--line-strong);color:var(--line-strong)}
.folds{margin-top:var(--size-3)}.folds>.fold:last-child{border-bottom:1px solid var(--line)}
#infl .empty{font-size:var(--fs-meta);padding:.75rem}
@media (min-width:900px){  /* desktop (#63 mockup): the bag and the ৳1,000 bags on the left, the rises beside them; each a panel */
  #infl{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:auto 1fr;gap:var(--size-5) var(--size-7);align-items:start}
  #infl .icard{margin:0;padding:24px 26px;border:1px solid var(--line);border-radius:20px}
  #infl [data-card=rise]{grid-column:2;grid-row:1/3}#infl [data-card=thousand]{grid-column:1}
  .folds{max-width:46rem;margin-top:var(--size-7)}
}

/* research page (plan 2026-10-21-research-page; #63): the index, three rises and three falls, the group heat map, the
   table; sections under a hairline on phones, panels on desktop; the ticker only on desktop, in ink */
:root{--hu1:#fdeeec;--hu2:#fbd5d0;--hu3:#f6b3aa;--hu4:#f08f83;--hd1:#e9f6ee;--hd2:#c9ead6;--hd3:#a3dbb9;--hd4:#7cc99c}
#research h2{font-size:var(--fs-section);margin:0 0 var(--size-3)}#research .rng button,#research .tabs button{font-size:var(--fs-meta);min-height:44px}
.ticker{overflow:hidden;background:var(--ink);color:#fff;border-radius:12px;margin-bottom:var(--size-5);font-size:var(--fs-meta)}
.ticker .tk{display:flex;width:max-content;white-space:nowrap;animation:tick 70s linear infinite}
.ticker .tk span{padding:9px 6px 9px 12px}.ticker a{color:inherit;text-decoration:none}
.ticker:hover .tk,.ticker:focus-within .tk,.ticker:focus .tk{animation-play-state:paused}
@keyframes tick{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker{overflow-x:auto}.ticker .tk{animation:none}}
@media (max-width:899px){.ticker{display:none}}
.rsec{border-top:1px solid var(--line);padding:22px 0 var(--size-6)}
.ovw{display:grid}.rhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--size-2) var(--size-3);margin-bottom:var(--size-3)}
#research .rhead h2{margin:0}.mvs .tabs{margin:0}
.ixc .big{font-size:var(--font-size-7);font-weight:700;letter-spacing:-.03em;line-height:1.2;font-variant-numeric:tabular-nums;margin:var(--size-2) 0}
.ixc .big span{font-size:var(--fs-body);font-weight:600;letter-spacing:0}
.mvc h3{margin:var(--size-3) 0 0;font-size:var(--fs-meta)}.mvc h3.up{color:var(--up)}.mvc h3.dn{color:var(--dn)}
.mvc ol{list-style:none;margin:0;padding:0}.mvc li+li{border-top:1px solid var(--line)}
.mvc li a{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:8px 0;text-decoration:none;color:var(--ink);font-weight:600}
.mvc li small{display:block;color:var(--muted);font-size:var(--fs-meta);font-weight:400}.mvc li b{white-space:nowrap}.mvc b.up{color:var(--up)}.mvc b.dn{color:var(--dn)}
@media (max-width:899px){.mvc li:nth-child(n+4){display:none}}  /* three rises and three falls on phones */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tiles button{font:inherit;font-size:var(--fs-meta);font-weight:600;border:0;border-radius:12px;padding:8px 6px;min-height:44px;color:var(--ink);cursor:pointer;background:var(--tint);box-shadow:none}
.tiles b,.tiles small{display:block;font-variant-numeric:tabular-nums}.tiles small{font-size:var(--fs-meta);font-weight:400;color:var(--ink);opacity:.85}
.tiles [class^=hu] b{color:var(--up)}.tiles [class^=hd] b{color:var(--dn)}
.hu1{background:var(--hu1)!important}.hu2{background:var(--hu2)!important}.hu3{background:var(--hu3)!important}.hu4{background:var(--hu4)!important}
.hd1{background:var(--hd1)!important}.hd2{background:var(--hd2)!important}.hd3{background:var(--hd3)!important}.hd4{background:var(--hd4)!important}
#research .scroll{background:var(--card)}
table.b td small{display:block}.rgc{white-space:nowrap}.rgc small{color:var(--muted);font-size:var(--fs-meta)}
.rg{position:relative;display:inline-block;width:64px;height:6px;margin:0 4px;vertical-align:middle;background:var(--line);border-radius:3px}
.rg i{position:absolute;top:-4px;width:4px;height:14px;margin-left:-2px;background:var(--ink);border-radius:2px}
svg.spark polyline{fill:none;stroke-width:1.6;stroke-linejoin:round}svg.spark.up polyline{stroke:var(--up)}svg.spark.dn polyline{stroke:var(--dn)}svg.spark.fl polyline{stroke:var(--muted)}
.method p{font-size:var(--fs-meta)}.method .btn{display:flex;align-items:center;justify-content:center;gap:.35rem;width:auto;margin-top:8px;padding:0 1.25rem;min-height:3rem}
#research+.folds{margin-top:0}.folds>.fold:last-child{border-bottom:1px solid var(--line)}
@media (min-width:900px){  /* desktop (#63 mockup): the index beside the movers, the heat map and the table each a panel */
  .ovw{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--size-5);align-items:start}
  .rsec{margin-bottom:var(--size-5);padding:24px 26px;border:1px solid var(--line);border-radius:20px}.ovw .rsec{margin:0 0 var(--size-5)}
  .mvs{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--size-6);align-items:start}.mvs .rhead,.mvs .mvsrc{grid-column:1/-1}
  .tiles{grid-template-columns:repeat(7,minmax(0,1fr))}
  #research+.folds{max-width:46rem}#research+.folds>.fold.method{border:0;padding:0;margin-top:var(--size-5)}
}
/* 44px tap targets for the short links (plan 2026-10-21-leftovers) */
.brand{min-height:44px}.foot .kx a{display:inline-flex;align-items:center;min-height:44px;margin:0}.lrow a{display:inline-flex;align-items:center;min-height:44px}
small{font-size:var(--fs-meta)}  /* the browser's "smaller" is under the 16px floor */
@media (max-width:899px){.top .fr .upd{display:none}}  /* phones: the prices' dates fit one line; the build time is on desktop */
/* desktop: share buttons as wide as their words, not the card (owner's screenshot, 2026-10-21) */
@media (min-width:900px){.scard .share{width:auto;min-width:12rem;padding:0 1.5rem}}
.fams .fuel{display:inline-flex;align-items:center;gap:.35rem}.rows .row .m b{display:flex;align-items:center;gap:.35rem}  /* the row's icon centred on its title; the small line stays under it */
@media (min-width:900px){.mylist{display:inline-flex;align-items:center;gap:.35rem}.mylist .badge{background:var(--yellow);color:var(--ink);min-width:22px;height:22px;padding:0 6px;border-radius:11px;font-size:var(--fs-meta);font-weight:700;line-height:22px;text-align:center}.mylist .badge[hidden]{display:none}}
svg .gapln{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:5 5}.lg .gapk i{width:20px;background:none;border-top:2px dashed var(--muted);height:0;border-radius:0}
/* #37: with + ব্যাগে beside it, the row's week change sits under the price and a long name wraps, never "ম…" */
.brow .bh{grid-template-columns:minmax(min-content,1fr) auto;grid-template-areas:"n p" "n w";row-gap:0}  /* #50: the name never narrower than its longest word; a long price drops /কেজি under it instead */
.brow .bh .n{white-space:normal}
@media (max-width:599px){.brow .bh{grid-template-columns:minmax(min-content,1fr) auto;grid-template-areas:"n p" "n w"}}  /* phones: the room goes to the name */
.brow .bh .w{font-size:var(--fs-meta);min-width:0}
/* #37: the bag is a short list: on desktop it keeps a reading width, so names, amounts and costs stay close */

/* ---------- #37: the approved prototype B (owner, 2026-11-03), carried over to the site ----------
   groups as their own cards with room between; compact word-only chips; slim outlined "+ ব্যাগে"; a teal stepper once
   in the bag; a segmented week/month switch on the bag. Text stays at the 16px floor. */
.home2 .brows{background:none;box-shadow:none;border-radius:0;overflow:visible;display:flex;flex-direction:column;gap:.75rem}
.bgroup{background:var(--card);border-radius:var(--radius);box-shadow:0 0 0 1px var(--line);overflow:hidden}
.bgroup .bgrp{display:flex;align-items:baseline;gap:.5rem;margin:0;padding:1.6rem .9rem .4rem;font-size:var(--fs-section);font-weight:800;color:var(--ink);border:0;border-bottom:2px solid var(--ink)}
.bgroup .bgrp+.brow{border-top:0}
.bgroup .brow .bh{padding:.55rem .5rem .55rem .9rem;min-height:3.6rem}
.bgroup .brow .bh .n{font-weight:600;font-size:var(--fs-body)}
.bgroup .brow .bh .p .r{font-weight:700}
.bgroup .brow .bh .w{font-weight:600}
.bgroup .bctl{padding:.5rem .75rem .5rem 0}
.bgroup .bctl .addt{min-height:2.75rem;min-width:6.25rem;padding:0 .75rem;border-radius:12px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);font-weight:600}
@media (max-width:899px){  /* phones: a bare + square; the word stays for screen readers (owner, 2026-11-11) */
  .bctl .addt,.bgroup .bctl .addt{width:2.75rem;min-width:2.75rem;padding:0;font-size:var(--fs-section);line-height:1}
  .addt .w{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.bgroup .bctl .stp{min-height:2.75rem}
.bgroup .empty{padding:1rem .9rem}
#bfams{gap:.5rem}
#bfams button{min-height:2.5rem;padding:0 1rem;border-radius:1.25rem;font-size:var(--fs-meta);box-shadow:0 0 0 1px var(--line)}
#bfams button.on{box-shadow:none}
#bfams .mine{box-shadow:none}
.seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-top:.75rem;padding:3px;border-radius:.8rem;background:color-mix(in srgb,var(--line) 70%,var(--paper))}
.seg button{font:inherit;min-height:2.75rem;border:0;border-radius:.65rem;background:transparent;color:var(--muted);cursor:pointer}
.seg button.on{background:var(--card);color:var(--ink);font-weight:700;box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 15%,transparent)}
.bgroup .brow .bh{align-items:center}.bgroup .brow .bh .n{align-self:center}
.bgroup .brow .bh .p{align-self:end;line-height:1.35}.bgroup .brow .bh .w{align-self:start;line-height:1.35}  /* price and its change read as one block, centred on the name */
/* the price and its week change, one block beside the name (#37) */
.brow .bh .pw{grid-area:p;grid-row:1/-1;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;line-height:1.35;text-align:right}
.brow .bh .pw .p,.brow .bh .pw .w{grid-area:auto;align-self:auto;min-width:0}
/* "+ ব্যাগে ▾" opens the item's section and closes it again (#37): the arrow says which */
@media (min-width:900px){main > h1:first-child,main > .crumb:first-child{margin-top:1.5rem}}  /* a page title never sits on the header */

/* ---------- the system's components (#39) ----------
   Three buttons, and a tag that isn't one: anything rounded or outlined does something when tapped. A tag (above:
   tinted fill, square-ish corners, no outline, no hover) only says something. */
.btn-main,.btn-sec{display:inline-flex;align-items:center;justify-content:center;gap:var(--size-2);min-height:2.75rem;padding:0 var(--size-5);
  min-height:3rem;border-radius:12px;font:inherit;font-size:var(--fs-body);font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s var(--ease-2)}
.btn-main{background:var(--ink);color:#fff;border:0}.btn-main:hover{background:#000}
.btn-sec{background:var(--paper);color:var(--ink);border:1px solid var(--line-strong)}.btn-sec:hover{background:var(--tint)}
.btn-text{display:inline;padding:0;border:0;background:none;font:inherit;font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:6px;cursor:pointer}
.btn-text:hover{text-decoration-color:var(--ink)}
.btn-main[hidden],.btn-sec[hidden],.btn-text[hidden]{display:none}
/* one page-title block on every page: the same space under the header, the same left edge */
.ptitle{margin:var(--size-5) 0}.ptitle h1{margin:0;font-size:var(--fs-title);line-height:1.25}
.ptitle .lede{margin:var(--size-2) 0 0;color:var(--muted)}
.w-read{max-width:46rem;margin-inline:0}  /* one left edge with the header and the title (#39) */
/* one range control on every chart (#39): the bag's week/month switch, a segmented control */
.rng,#cost .rng{display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;gap:4px;padding:4px;margin:0 0 var(--size-3);
  border-radius:14px;background:var(--tint)}
#cost .rng{display:grid}
.rng button,.chartbox .rng button,#research .rng button,#cost .rng button{font:inherit;font-size:var(--fs-meta);min-height:2.75rem;min-width:0;padding:0 var(--size-3);
  border:0;border-radius:10px;background:transparent;color:var(--muted);box-shadow:none;white-space:nowrap;cursor:pointer}
.rng button.on,.chartbox .rng button.on,#research .rng button.on,#cost .rng button.on{background:var(--paper);color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 1px var(--yellow-line)}
#cost .rng button{padding:0 var(--size-1)}
/* ---------- item page as the approved mockup (#39) ----------
   one card (the price block: the types, the price, one tag, + ব্যাগে রাখুন); everything else is a section on the page */
.itemgrid{display:flex;flex-direction:column;gap:var(--size-7)}
.itemgrid .leftcol,.itemgrid .side{display:contents}
/* the price block (#63): not boxed; the type tiles, the price, the dark full-width ব্যাগে রাখুন on phones */
.priceblock{--fs-price:2.75rem;display:flex;flex-direction:column;gap:var(--size-5);padding:0}
.priceblock .btn-main,.priceblock .btn-sec{width:100%;min-height:3.25rem;margin:0}
.types{display:flex;flex-wrap:wrap;gap:var(--size-2);margin:0}
.type{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0;max-width:100%;min-height:3.5rem;padding:6px var(--size-3);font:inherit;text-align:left;
  color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:14px;cursor:pointer;overflow-wrap:anywhere}
.type b{font-weight:600}.type small{color:var(--muted);font-size:var(--fs-meta);font-weight:400}
.type.on{border-color:var(--yellow-line);background:var(--yellow-pale);font-weight:600}.type.on small{font-weight:600}  /* chosen: both lines bold, readable without the yellow */
/* phones (#63): no boxes; each section under a hairline; then the bazars' tables and the four fold rows (56px), closed */
.itemgrid{gap:0}
.itemgrid .chartbox,.itemgrid .where,.itemgrid .ahead-slot{border-top:1px solid var(--line);padding-top:22px;margin-top:var(--size-7)}
.itemgrid .chartbox{order:1}.itemgrid .where{order:2}.itemgrid .ahead-slot{order:3}.itemgrid .markets{order:4}
.itemgrid .f-year{order:5}.itemgrid .f-ev{order:6}.itemgrid .f-cmp{order:7}.itemgrid .f-src{order:8;border-bottom:1px solid var(--line)}
.itemgrid .f-qa{order:9;border-bottom:1px solid var(--line)}.itemgrid .f-src:has(~.f-qa){border-bottom:0}  /* #75: the questions, last */
.qa h3{margin:var(--size-4) 0 var(--size-1);font-size:var(--fs-body)}.qa h3:first-child{margin-top:0}.qa p{margin:0}
.itemgrid .markets{margin-top:var(--size-7);padding:0;background:none;box-shadow:none;border-radius:0}
.fold>summary,.itemgrid .markets>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--size-3);min-height:3.5rem;margin:0;
  border-top:1px solid var(--line);font-weight:600;color:var(--ink);cursor:pointer;list-style:none}
.fold>summary::-webkit-details-marker{display:none}
.itemgrid .markets>summary h2{font-size:var(--fs-body);color:var(--ink)}.itemgrid .markets>summary::after{content:none}
.fold .chev,.itemgrid .markets .chev,.blm .chev{flex:none;width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.fold[open]>summary .chev,.itemgrid .markets[open]>summary .chev,.blm[open]>summary .chev{transform:rotate(90deg)}
.fold>:not(summary){padding-bottom:var(--size-5)}
.fold:has(.evlist:empty){display:none}  /* no events in range: no কেন বদলেছে row */
.fold>summary h2{margin:0;font:inherit;color:inherit}.fold .searchbox{margin:0}.mfor{margin:0}
.itemgrid section>h2,.itemgrid .evlist h2{margin:0 0 var(--size-3);font-size:var(--fs-section)}
.ahead-slot:empty,.evlist:empty{display:none}
.ahead-slot p{margin:var(--size-1) 0}.ahead-slot .atip{background:var(--yellow-pale);border-radius:var(--radius-2);padding:var(--size-2) var(--size-3);margin-top:var(--size-3)}
.where .allb{display:inline-flex;align-items:center;min-height:2.75rem;margin-top:var(--size-2)}

#allm{display:inline-flex;align-items:center;min-height:2.75rem}#allm[hidden]{display:none}
.searchbox[hidden]{display:none}
@media (min-width:900px){
  .itemgrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);grid-template-areas:"top top" "left side" "markets markets" "src src" "qa qa";gap:var(--size-7) var(--size-8)}
  .itemgrid .leftcol,.itemgrid .side{display:flex;flex-direction:column;gap:var(--size-7)}
  .itemgrid .leftcol{grid-area:left}.itemgrid .side{grid-area:side}.itemgrid .markets{grid-area:markets}.itemgrid .f-src{grid-area:src}.itemgrid .f-qa{grid-area:qa}
  /* desktop: the order as written (left: chart, compare, months; right: the bazars, the outlook, কেন বদলেছে); each a panel */
  .itemgrid .leftcol>*,.itemgrid .side>*{order:0}
  .itemgrid .chartbox,.itemgrid .where,.itemgrid .ahead-slot,.itemgrid .fold,.itemgrid .markets{margin:0;padding:22px 24px;border:1px solid var(--line);border-radius:20px}
  .fold[data-wide-open]>summary{min-height:0;margin:0 0 var(--size-3);border:0;font-size:var(--fs-section);font-weight:700;pointer-events:none;cursor:default}
  .fold[data-wide-open] .chev{display:none}.fold[data-wide-open]>:not(summary){padding-bottom:0}
  .itemgrid .markets>summary{border:0;min-height:2.75rem}.itemgrid .markets>summary h2{font-size:var(--fs-section)}
  .itemgrid .f-src{padding:0;border:0}.f-src>summary{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}  /* a plain source line under the page, as the mockup */
  .priceblock{grid-area:top;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"types types" "answer add" "community community";align-items:end;gap:var(--size-5) var(--size-7);padding:0}
  .priceblock .answer{grid-area:answer}.priceblock .types{grid-area:types}.priceblock .community{grid-area:community}
  .priceblock .btn-main,.priceblock .btn-sec{grid-area:add;width:auto;padding:0 var(--size-5)}
  .priceblock{--fs-price:var(--font-size-8)}
}
/* ---------- আমার ব্যাগ in two views (#39) ---------- */
.views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 var(--size-5);border-radius:14px;background:var(--tint)}
.views[hidden]{display:none}
.views a{display:flex;align-items:center;justify-content:center;min-height:2.75rem;border-radius:10px;color:var(--muted);text-decoration:none}
.views a[aria-current]{background:var(--paper);color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 1px var(--yellow-line)}
/* phones: the name, its type and price on top with the cost beside; the stepper underneath, so nothing breaks mid-number */
/* the per-bazar prices under পণ্য ধরে ধরে say something; they aren't buttons, so they look like tags (#39) */
.bk .pr span{border-radius:var(--radius-2);box-shadow:none;padding:var(--size-1) var(--size-2)}
.bk .pr span.best{box-shadow:none}
#vhisab>section+section{margin-top:var(--size-7)}
#vhisab h2{margin:0 0 var(--size-3);font-size:var(--fs-section)}
#vhisab .chartbox{padding:0}
#vhisab #whyk{margin-bottom:var(--size-2)}
.bar .t:empty{background:none;box-shadow:none}
#whyk button{white-space:normal;line-height:1.3;padding-block:var(--size-1)}  /* "(মাসে)" says the change is per month: never cut */
#ahead{scroll-margin-top:calc(var(--toph,3.25rem) + .5rem)}  /* home's old link lands on the heading, not under the bar */
/* ---------- home (#39) ---------- */
/* phones: the slim search that pins under the top bar once the big one scrolls away; fixed, so nothing below jumps */
.qbar{position:fixed;left:0;right:0;top:var(--toph,3.25rem);z-index:4;background:var(--paper);border-bottom:1px solid var(--line);padding:var(--size-2) var(--size-3)}
.qbar[hidden]{display:none}
.qbar .search{width:100%;min-height:2.75rem;border:0;border-radius:var(--radius-3);padding:0 var(--size-3);font:inherit;background:var(--card);color:var(--ink)}
@media (min-width:900px){
  .qbar{display:none!important}
  .htop{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:var(--size-5);align-items:start;margin-top:var(--size-5)}
  .htop .bagc{margin-top:0}
  /* the week's moves as a 3-column grid, so the strip is about as tall as the bag card beside it (#44) */
  .htop .hstrip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;margin:0;padding:0}
  .htop .mc{min-height:5rem;padding:var(--size-2) var(--size-3);border-radius:var(--radius-3)}
  .htop .mc b{font-size:var(--fs-body)}
  /* the groups on one line: the first few, then আরও ভাগ ▾ for the rest */
  #bfams:not(.open) .x{display:none}#bfams .tog{display:inline-flex}
}
/* ---------- the other pages (#39) ---------- */
/* More: four tiles with their line icons; a list on phones, a 2×2 grid on desktop */
.mtile{display:flex;align-items:center;gap:var(--size-3)}
.mtile .ic{width:1.4rem;height:1.4rem;flex:none;box-sizing:content-box;padding:.6rem;border-radius:12px;background:var(--tint);color:var(--ink)}
@media (min-width:900px){
  .mtiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--size-3);max-width:46rem}
  .mtile{flex-direction:column;align-items:flex-start;padding:var(--size-5)}
  .mtile .ic{width:2.25rem;height:2.25rem}
}
/* research: a 0.0% tile says nothing moved, so it looks like nothing */
.tiles .hz{background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.tiles .hz small{color:var(--muted);opacity:1}
/* share cards: small previews in a grid on desktop; one opens full size */
@media (min-width:900px){
  #cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--size-5);align-items:start}
  #cards>h2,#cards>p{grid-column:1/-1;margin:var(--size-5) 0 0}
  #cards .scard{margin:0}
  #cards .scard canvas{cursor:zoom-in}
  #cards .scard .share{width:100%;min-width:0}
}
.cardbig{border:0;border-radius:var(--radius-3);padding:var(--size-3);max-width:min(40rem,92vw);background:var(--card);box-shadow:var(--shadow-4)}
.cardbig::backdrop{background:color-mix(in srgb,var(--ink) 60%,transparent)}
.cardbig form{display:flex;justify-content:flex-end}.cardbig form button{min-height:2.75rem;min-width:2.75rem;font-size:var(--fs-section)}
.cardbig img{display:block;width:100%;height:auto;border-radius:var(--radius-2)}
/* the dropdowns look like the rest: a border, rounded, 44px, our own ▾ */
select{appearance:none;-webkit-appearance:none;font:inherit;color:var(--ink);min-height:2.75rem;border:1.5px solid var(--control-line);border-radius:var(--radius-2);
  padding:0 2.25rem 0 var(--size-3);background-color:var(--card);
  /* !important: the page-specific select rules set the background shorthand, which would drop the arrow */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314232a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right .75rem center!important;background-size:1rem!important;padding-right:2.25rem!important}
/* fuel: a reading page; its step chart is drawn 320 wide, so it stays near that size and its text near 16px (#39) */
.fmain>svg.step{max-width:24rem}
details.orig summary{cursor:pointer;color:var(--ink);font-weight:600;min-height:2.75rem;display:flex;align-items:center}
details.orig small{display:block}
details.orig summary::after{content:" ▾";margin-left:var(--size-1)}details.orig[open] summary::after{content:" ▴"}
details.orig summary::-webkit-details-marker{display:none}
/* ---------- the area chip and its menu (spec 2026-11-05) ---------- */
.area{display:inline-flex;align-items:center;gap:var(--size-1);min-height:2.75rem;padding:0 var(--size-3);border:1px solid var(--line-strong);border-radius:12px;margin-left:auto;
  background:var(--paper);color:var(--ink);font:inherit;font-weight:500;cursor:pointer;white-space:nowrap}
.area .ic{width:1.1rem;height:1.1rem}
.areamenu{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--card);color:var(--ink);border-radius:var(--radius-3) var(--radius-3) 0 0;
  box-shadow:0 -8px 30px rgb(0 0 0/.25);padding:var(--size-2) var(--size-3) calc(var(--size-3) + env(safe-area-inset-bottom));display:grid;gap:2px}
.areamenu[hidden]{display:none}
.top.areaopen{z-index:60}  /* the menu lives in the top bar: lift it over the tab bar while open */
.areamenu button{display:flex;justify-content:space-between;align-items:center;gap:var(--size-3);min-height:2.75rem;padding:0 var(--size-3);
  border:0;border-radius:var(--radius-2);background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.areamenu button[aria-checked="true"]{background:var(--tint,var(--line));font-weight:700;color:var(--ink)}
.areamenu button[aria-checked="true"] span::after{content:" ✓"}
.areamenu button[aria-disabled="true"]{color:var(--muted);cursor:default}
.areamenu small{font-size:var(--fs-meta);color:var(--muted)}
@media (min-width:900px){
  .top .bar{position:relative}
  .area{margin-left:auto}
  .brand,.topnav a,.mylist{white-space:nowrap}
  .areamenu{position:absolute;left:var(--areax,0);right:auto;bottom:auto;top:calc(100% - 4px);width:17rem;border-radius:var(--radius-3);box-shadow:0 10px 30px rgb(0 0 0/.18);padding:var(--size-2)}  /* every desktop width: a menu under the chip (was 900-1099px only) */
}
@media (min-width:900px) and (max-width:1099px){  /* the chip's room: a tighter menu so no label breaks onto two lines */
  .brand{margin-right:var(--size-2)}.area{padding:0 var(--size-2)}.topnav a{padding:0 8px}
}
/* বাং | EN beside the area chip (spec 2026-11-22): two parts, each in its own script; the current one by weight, not colour alone */
.lang{display:inline-flex;border:1px solid var(--line-strong);border-radius:12px;overflow:hidden;flex:none}
.lang a,.lang span{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;min-width:2.75rem;padding:0 var(--size-2);color:var(--ink);text-decoration:none;white-space:nowrap}
.lang a:hover{text-decoration:underline}
.lang [aria-current]{font-weight:700;background:var(--yellow-pale)}
@media (max-width:379px){  /* a 320px phone: the logo stands for the name, so the chip and the toggle fit on one line (.wl: the bar has the toggle; a class, not :has(), for older Android WebViews) */
  .bar.wl .brand .nm{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
/* English pages: the Bangla name small after the English one, for the bazar ("Onion · পেঁয়াজ", spec 2026-11-22: Voice) */
.bnn{font-weight:400;color:var(--muted)}.bnn::before{content:"· "}
/* "ঢাকার বাজার": the pages whose prices are Dhaka's whatever the area (spec 2026-11-05) */
.ptitle .tag{display:inline-block;margin:var(--size-1) 0 0;padding:0 var(--size-2);border-radius:var(--radius-2);background:var(--line);color:var(--muted);font-size:var(--fs-meta);font-weight:600}
/* types in the row (spec 2026-11-05, option A): one switch under the name; the row shows the pressed type */
.brow .tsw{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:var(--size-1);padding:0 .9rem .55rem}
.brow .tsw button{min-height:2.75rem;padding:var(--size-1) var(--size-3);border:1px solid var(--line);border-radius:var(--radius-round);background:var(--card);
  color:var(--muted);font:inherit;font-size:var(--fs-meta);line-height:1.3;white-space:normal;text-align:left;cursor:pointer}
.brow .tsw button[aria-pressed="true"]{border-color:var(--yellow-line);background:var(--yellow-pale);color:var(--ink);font-weight:600}
/* desktop home's summary row (spec 2026-11-05): the index, the week's rises, its falls; phones keep the strip and bag card */
.sumrow{display:none}
@media (min-width:900px){
  .htop{display:none!important}
  /* one panel beside the headline (#63 mockup): the rises and falls side by side, the index under them */
  .sumrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"h h" "up dn" "ix ix" "ln ln";gap:0 1.75rem;margin:0;padding:1.5rem 1.6rem;border:1px solid var(--line);border-radius:20px}
  .sumrow .card{padding:0;margin:0;border:0;box-shadow:none;background:none;border-radius:0}
  #sumup{grid-area:up}#sumdn{grid-area:dn}.sumrow .sumh{grid-area:h;margin:0 0 var(--size-2);font-size:var(--fs-body);color:var(--ink)}
  .sumrow #sumix{grid-area:ix;margin-top:1rem;padding:1rem 1.1rem;border-radius:14px;background:var(--tint);display:grid;grid-template-columns:minmax(0,1fr) 9rem;column-gap:1rem;align-items:center}
  .sumrow #sumix>*{grid-column:1}.sumrow #sumix .spark{grid-column:2;grid-row:1/4;margin:0}.sumrow #sumix .ixc{margin:0}.sumrow #sumix .ixc span{font-size:var(--fs-meta);font-weight:600}
  .sumrow .ixlink{grid-area:ln;justify-self:start;margin-top:var(--size-2)}
  .sumrow h2,.sumrow h3{margin:0 0 var(--size-2);font-size:var(--fs-meta);color:var(--muted)}
  .sumrow .big{margin:0;font-size:var(--fs-title);font-weight:800;font-variant-numeric:tabular-nums}
  .sumrow .big span{font-size:var(--fs-meta);font-weight:600}
  .sumrow .spark{display:block;width:100%;height:2.25rem;margin:var(--size-1) 0}.sumrow .spark polyline{vector-effect:non-scaling-stroke}
  .sumrow ol{list-style:none;margin:0;padding:0}
  .sumrow li a{display:flex;justify-content:space-between;align-items:center;gap:var(--size-2);min-height:2.75rem;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
  .sumrow li:first-child a{border-top:0}
  .sumrow li b{font-variant-numeric:tabular-nums;white-space:nowrap}
  .sumrow .btn-text{display:inline-flex;align-items:center;min-height:2.75rem}
}
/* the desktop board is a table (spec 2026-11-05): name (opens the item's page), today's price in the area, the week's
   change, three months, the button; the type switch under the name. Phones keep their rows (these cells hidden). */
.brow .nm,.brow .prc,.brow .wkc,.brow .spc,.bthead,.bsrc{display:none}
@media (min-width:900px){
  #board{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--size-4);align-items:end}
  #board>*{grid-column:1/-1}
  #board>#bfams{grid-column:1;grid-row:1}
  #board>#bsel{grid-column:2;grid-row:1;display:flex!important;flex-wrap:nowrap;margin:0 0 .4rem}
  #board>#bsel label{flex:none}
  #board>#bsel select{min-height:2.75rem}
  .hsearch .bfilter{display:none}
  .bmain{display:block}
  /* #72 (mockup): the type chips sit under the name; the price, week, line and button centre on the whole row */
  .brow{grid-template-columns:minmax(0,1fr) 10rem 6.5rem 6rem 9.5rem;grid-template-areas:"nm prc wkc spc ctl" "tsw prc wkc spc ctl";grid-template-rows:auto auto;column-gap:var(--size-3)}
  .brow .prc,.brow .wkc,.brow .spc,.brow .bctl{align-self:center}
  .brow:has(.tsw) .nm{padding-bottom:0}
  .bthead{display:grid;grid-template-columns:minmax(0,1fr) 10rem 6.5rem 6rem 9.5rem;column-gap:var(--size-3);padding:var(--size-2) 0 var(--size-1) .9rem;
    font-size:var(--fs-meta);color:var(--muted);font-weight:600}
  .bthead span:nth-child(2),.bthead span:nth-child(3){text-align:right}.bthead span:nth-child(4){text-align:center}
  .brow .bh,.brow .bin{display:none}
  .brow .nm{display:flex;align-items:center;grid-area:nm;padding:var(--size-2) 0 var(--size-2) .9rem;font-weight:600;color:var(--ink);text-decoration:none;min-height:2.75rem;align-content:center}
  .brow .nm:hover{color:var(--ink);text-decoration:underline}
  .brow .prc{display:block;grid-area:prc;text-align:right;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
  .brow .prc small{font-weight:400;font-size:var(--fs-meta);color:var(--muted)}
  .brow .wkc{display:block;grid-area:wkc;text-align:right;font-weight:600;font-size:var(--fs-meta);color:var(--muted);white-space:nowrap}
  .brow .wkc.up{color:var(--up)}.brow .wkc.dn{color:var(--dn)}
  .brow .spc{display:block;grid-area:spc;width:4.5rem;height:1.25rem;justify-self:center}
  .brow .spc svg{display:block;width:100%;height:100%}
  .brow .bctl{grid-area:ctl;justify-self:end}
  .brow .tsw{grid-area:tsw}
  .bsrc{display:block;margin-top:var(--size-2)}
}
/* the bag in the top bar and its drawer (spec 2026-11-05) */
.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(24rem,100vw);height:100dvh;max-height:none;max-width:none;padding:0;border:0;
  background:var(--card);color:var(--ink);box-shadow:-8px 0 30px rgb(0 0 0/.2)}
.drawer::backdrop{background:rgb(0 0 0/.35)}
.drin{height:100%;overflow:auto;padding:var(--size-4)}
.drhd{display:flex;justify-content:space-between;align-items:center;gap:var(--size-3);margin-bottom:var(--size-2)}
.drhd h2{margin:0;font-size:var(--fs-section)}
.drawer .bx{min-width:2.75rem;min-height:2.75rem;border:0;border-radius:var(--radius-round);background:var(--line);color:var(--ink);font:inherit;cursor:pointer}
.drow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--size-1) var(--size-3);align-items:center;padding:var(--size-3) 0;border-top:1px solid var(--line)}
.drow .dnm{display:flex;align-items:center;min-width:0}.drow .dt{min-width:0}.drow .dnm b{font-weight:600}.drow .dnm small{display:block;color:var(--muted);font-size:var(--fs-meta)}
.drow .dc{font-variant-numeric:tabular-nums;white-space:nowrap}
.drow .stp{grid-column:1/-1;justify-self:start;display:inline-flex;align-items:center;border-radius:12px;background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong)}  /* in the bag: outlined, as the bag page */
.drow .stp button{width:2.75rem;height:2.75rem;border:0;background:transparent;color:var(--ink);font:inherit;font-size:var(--fs-section);cursor:pointer}
.drow .stp b{font-size:var(--fs-meta);white-space:nowrap}
.dtot{display:flex;justify-content:space-between;align-items:baseline;padding:var(--size-3) 0;border-top:2px solid var(--ink);font-weight:800}
.dtot small{font-weight:600;font-size:var(--fs-meta)}
.drawer .btn-text{display:inline-flex;align-items:center;min-height:2.75rem}
@media (min-width:900px) and (max-width:1099px){  /* room for the bag's total (spec 2026-11-05): তথ্যের উৎস stays in the footer */
  .topnav a[href="/about/"]{display:none}
}
svg.spark.ix polyline{stroke:var(--ink)}  /* the index's year: ink, so it never argues with the month's red or green beside it */

/* ---------- the board in the new look (#63 stage 3): no boxes, hairline rows, ink headings, the group tray ---------- */
.bgroup{background:none;border:0;box-shadow:none;border-radius:0;overflow:visible}
.bgroup .bgrp{display:flex;align-items:baseline;gap:.5rem;margin:0;padding:1.6rem 0 .4rem;font-size:var(--fs-section);font-weight:800;color:var(--ink);border:0;border-bottom:2px solid var(--ink)}  /* heading A (spec 2026-11-16): a group never reads as one more item */
.bgroup .bgrp .gc{font-size:var(--fs-meta);font-weight:400;color:var(--muted)}
.bgroup .brow{border-bottom:1px solid var(--line)}.bgroup .brow+.brow,.bgroup .bgrp+.brow{border-top:0}
.bgroup .brow .bh{padding:.55rem .5rem .55rem 0}
.bgroup .bctl{padding:.5rem 0}
/* a row's types: a 32px pill inside a 44px button (the mockup), so the tap stays easy and the row stays calm */
.brow .tsw{padding:0 0 .3rem;gap:0 .4rem}
.brow .tsw button{min-height:2.75rem;padding:0;border:0;background:var(--paper);display:inline-flex;align-items:center;color:var(--ink)}
.brow .tsw button span{display:inline-flex;align-items:center;height:2rem;padding:0 .75rem;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--muted);white-space:nowrap}
.brow .tsw button[aria-pressed="true"]{background:var(--paper);border:0;font-weight:600}
.brow .tsw button[aria-pressed="true"] span{background:var(--yellow-pale);border-color:var(--yellow-line);color:var(--ink)}
.brow .spc svg.spark polyline{stroke:var(--ink)}  /* the 3-month line: ink; the week's cell carries the direction */
.fams{gap:4px;padding:4px;border-radius:14px;background:var(--tint);width:fit-content;max-width:100%}
.fams button,.fams a{border:1px solid transparent;background:transparent;border-radius:10px;min-height:2.75rem;padding:0 .9rem}
.fams .on{background:var(--paper);color:var(--ink);border-color:var(--yellow-line);font-weight:600}
#bfams{margin:.4rem 0 0;padding:4px;gap:4px;border-radius:14px;background:var(--tint)}  /* pinned on phones: a grey tray, still one scrolling row */
#bfams button{min-height:2.75rem;padding:0 .9rem;border-radius:10px;border:1px solid transparent;background:transparent;box-shadow:none;font-size:var(--fs-meta)}
#bfams button.on{background:var(--paper);border-color:var(--yellow-line);font-weight:600}
#bfams .mine{background:var(--jute-bg);border-color:var(--jute-bg)}#bfams .mine.on{background:var(--jute-ink);border-color:var(--jute-ink);color:#fff}
.bgroup .brow .nm{padding-left:0}.bthead{padding-left:0;border-bottom:1px solid var(--ink)}  /* desktop: names start under the group heading; an ink rule under the column names */
/* the bag on home (#63 stage 3): the first-visit invite on a grey panel; once anything is in the bag, one grey bar */
.bagc{margin-top:.75rem;background:none;border:0;box-shadow:none;border-radius:0;padding:0}  /* only the bag bar now (owner, 2026-11-15: no invite card) */
.bagc:has(.bagsum){background:none;padding:0}
.bagc .steps b{color:var(--ink)}
.bagc .pick{border-radius:12px;background:var(--ink);color:#fff}
.bagsum{background:var(--tint);border-radius:16px;padding:.55rem .8rem;min-height:3.75rem}  /* tighter (#66): the first row on the first phone screen */
.bagsum .ic{width:2.75rem;height:2.75rem;border-radius:12px;background:var(--ink);color:#fff}
.bagsum .go{flex:none;color:var(--muted);font-size:var(--fs-section);line-height:1}
/* the search that pins on scroll (phones): white with a hairline under it, the field as on home; no dark bar (#63) */

.qbar .search{border:1.5px solid var(--ink);border-radius:14px}
.bagsum .nw{white-space:nowrap}  /* at 320px the line breaks between "১২টি পণ্য" and "এ সপ্তাহে", never inside one */
/* a narrow phone (320px, #50): beside the 140px stepper the name had ~20px and broke letter by letter; the price goes under it */
@container (max-width:24rem){.brow:has(.bctl .stp) .bh{grid-template-columns:minmax(0,1fr);grid-template-areas:"n" "p" "w";row-gap:.1rem}.brow:has(.bctl .stp) .bh .pw{grid-row:auto;justify-self:start;align-items:flex-start;text-align:left;padding-left:calc(44px + .6rem)}}  /* under the name, never under its picture (spec 2026-11-16) */

/* ---------- the bag page, #63 stage 5 ---------- */
.ptitle:has(.views){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--size-3)}
.ptitle .views{display:inline-grid;grid-template-columns:repeat(2,auto);margin:0}.ptitle .views[hidden]{display:none}.ptitle .views a{padding:0 18px}
.bagcols{display:flex;flex-direction:column;gap:var(--size-6)}
.bagtot .seg{max-width:22rem;margin-top:var(--size-4);background:color-mix(in srgb,var(--line) 60%,var(--tint))}
.bacts{display:flex;flex-wrap:wrap;gap:10px;margin-top:var(--size-4)}.bacts .btn-main,.bacts .btn-sec{min-height:3rem;border-radius:12px;font-weight:600;text-decoration:none}
.bacts .share{margin:0}.bacts .share[data-id="paycut"]{flex-basis:100%;order:1}  /* share and আরও পণ্য side by side; the pay-cut card under them */
.bagitems .bagh{display:block;margin:0 0 var(--size-1);color:var(--ink);font-weight:700}
.bagitems>.src{margin:var(--size-3) 0 0}
/* হিসাব */
.hsum{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;margin:0 0 var(--size-7)}
.hsum .fact{display:flex;flex-direction:column;gap:2px;min-width:0}.hsum .l{color:var(--muted)}
.hsum .v{font-size:var(--font-size-4);font-weight:700;letter-spacing:-.02em;line-height:1.25;overflow-wrap:anywhere}.hsum .v b{font-weight:700}
.hsum .big,.hsum .big+.fact:last-child{grid-column:1/-1}.hsum .big .v{font-size:var(--font-size-6);letter-spacing:-.03em}
#vhisab section,#vhisab>.fold{border-top:1px solid var(--line);padding-top:22px}
#vhisab section+section,.hcols>div+div>section:first-child,.hsum+.hcols>div>section:first-child{margin-top:var(--size-7)}
.hsum+.hcols>.hmain>section:first-child{margin-top:0}
#vhisab>.fold{margin-top:var(--size-7);padding-top:0}#vhisab>.fold>summary{border-top:0}#vhisab>.fold+.fold{margin-top:0}#vhisab>.fold:last-child{border-bottom:1px solid var(--line)}
#vhisab>.fold>summary h2{font-size:var(--fs-body);margin:0}
#why .bars{margin:0;border-top:1px solid var(--line)}
#why .bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:baseline;margin:0;padding:12px 0;border-bottom:1px solid var(--line);font-size:var(--fs-body)}
#why .bar .l{width:auto;font-weight:600}#why .bar .l small{font-weight:400;color:var(--muted);font-size:inherit}
#why .bar b{white-space:nowrap;font-weight:600}#why .bar b.up{color:var(--up)}#why .bar b.dn{color:var(--dn)}
#why .bar .t{grid-column:1/-1;height:8px;border-radius:999px;background:var(--tint);box-shadow:none}#why .bar .t i{border-radius:999px}
#why .rest{color:var(--muted);font-size:var(--fs-body);margin:var(--size-3) 0 0}#why .rest:empty,#why .miss:empty{display:none}
#totals>.src:first-child,#totals .drvs+.src{margin-top:0}#totals .src{margin:0 0 var(--size-2)}
#totals .drvs{margin:0 0 var(--size-3)}
#totals .drv{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
#totals .drv .m{flex:1 1 auto;min-width:0;font-weight:600}#totals .drv b{min-width:4rem;text-align:right;font-size:var(--font-size-2);white-space:nowrap}
#totals .drv .diff{color:var(--muted);white-space:nowrap}
#totals .drv.best{background:var(--yellow-pale);border:0;border-radius:12px;padding:12px 14px;margin:0 -8px}
#totals .drv .won{font-weight:600;white-space:nowrap}
#totals .one{margin:var(--size-2) 0 0}
#bkt[hidden]{display:none}
#bkt .tscroll{overflow-x:auto}
#bkt table.mk{min-width:36rem;font-size:var(--fs-body);background:none;box-shadow:none;border-radius:0}
#bkt th,#bkt td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:right;font-weight:400}
#bkt thead th{font-weight:600;color:var(--muted);border-bottom:1px solid var(--ink);background:none}
#bkt tbody th{text-align:left}#bkt tbody th small{color:var(--muted);font-size:inherit}
#bkt td.best{background:var(--yellow-pale);font-weight:700}
#bkt tr.sum th,#bkt tr.sum td{border-bottom:0;font-weight:700}#bkt tr.sum td{font-size:var(--font-size-2)}
@media (max-width:899px){#bkt .tscroll{display:none}}
@media (min-width:900px){
  #bkt .bks{display:none}
  .bagcols{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:32px}
  .bagitems{grid-column:1;grid-row:1}.bagtot{grid-column:2;grid-row:1;padding:26px 28px;position:sticky;top:calc(var(--toph,4rem) + 16px)}
  .bagtot .big{font-size:var(--font-size-7)}
  .hsum{display:flex;gap:0;border-top:1px solid var(--ink);border-bottom:1px solid var(--line)}
  .hsum .fact{flex:1 1 0;padding:22px 28px;border-right:1px solid var(--line)}.hsum .fact:first-child{padding-left:0}.hsum .fact:last-child{border-right:0}
  .hsum .v{font-size:var(--font-size-4)}.hsum .big .v{font-size:var(--font-size-6)}
  .hcols{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:32px}
  #vhisab section,#vhisab>.fold{margin:0;padding:24px 26px;border:1px solid var(--line);border-radius:20px}
  .hcols>div{display:flex;flex-direction:column;gap:24px}.hcols>div>section{margin:0!important}
  #vhisab>.fold{margin-top:24px}#vhisab>.fold:last-child{border-bottom:1px solid var(--line)}
  #vhisab>.fold>summary h2{font-size:var(--fs-section)}
  #vhisab>.f-src,#vhisab>.f-src:last-child{padding:0;border:0;border-radius:0;margin-top:24px}
  #vhisab>.f-src>summary{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
#bkt thead th:first-child{text-align:left}
#aheadc .atip{background:var(--tint);border-radius:12px;padding:12px 14px}  /* #63: a tint note, as the mockup */

/* sources (#63): a large opening statement with one highlighted sentence, five plain rows under an ink rule */
.ast{font-size:var(--font-size-3);font-weight:600;line-height:1.55;max-width:32em;margin:0 0 var(--size-7)}
.srcs{border-top:1px solid var(--ink)}
.srow{display:flex;flex-wrap:wrap;gap:6px 24px;padding:16px 0;border-bottom:1px solid var(--line)}
.srow p{margin:0;flex:1 1 9rem;display:flex;flex-direction:column}.srow .sw{flex:2 1 16rem;min-width:0}
.srow small{color:var(--muted);font-size:var(--fs-meta)}.srow .sw small{margin-bottom:4px}.srow .sw a{color:inherit}
.howto{margin-top:var(--size-7)}.howto h2{font-size:var(--fs-section)}.howto ul{padding-left:22px;display:flex;flex-direction:column;gap:8px}
@media (min-width:900px){.howto{padding:24px 26px;border:1px solid var(--line);border-radius:20px}.howto h2{margin-top:0}.ast{font-size:var(--font-size-4)}}
/* আরও (#63): rows with a line icon on a tint square, a title, a short line and a ›; phones only (desktop keeps its 2×2 tiles) */
@media (max-width:899px){.mtiles{gap:0}.mtiles .row{box-shadow:none;border-radius:0;border-bottom:1px solid var(--line);padding:12px 0;min-height:4.5rem}}
.mtile .go{flex:none;color:var(--muted);font-size:var(--fs-section);margin-left:auto}
@media (min-width:900px){.mtile .go{display:none}}
/* #72: the week's change sits in the price's muted line, words only (no pill) */
.answer .ctx .tag{display:inline;margin:0;padding:0;background:none;border-radius:0;font:inherit}.answer .ctx .tag.up{color:var(--up);font-weight:600}.answer .ctx .tag.dn{color:var(--dn);font-weight:600}.answer .ctx .tag.fl{color:inherit}
/* #72 (mockup): the range buttons beside the chart's heading, the then-and-now sentence bold above the chart */
.chead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--size-2) var(--size-3);margin-bottom:var(--size-2)}.chead h2{margin:0;font-size:var(--fs-section)}.chead .rng{margin:0}
.chartbox .trend{margin:0 0 var(--size-2);font-weight:600}
/* #72 (mockup): on phones a fuel change is its date and before → after; the quotes and outlet links stay on desktop and in উৎস ও পদ্ধতি */
@media (max-width:899px){.fchg .fsrcs{display:none}}
#where[hidden]{display:none}
/* #66, the mockup's first phone screen: the board's first row shows on a 390×844 phone. The tab labels sit on one line
   (16px, one line); the bag bar
   is tighter (its own rule); the first-visit invite keeps its sentence and drops the three-step picture */
@media (max-width:899px){
  .tab{white-space:nowrap;padding:4px 0 6px;min-height:3.25rem}
}
/* the bag on phones, clean (owner, 2026-11-15): no invite card; with something in the bag one quiet line between
   hairlines: a plain bag icon, আমার ব্যাগ and how many, the total and its change at the right, › */
#basket:empty{display:none}
.bagsum{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.bagsum{background:none;border-radius:0;padding:.5rem 0;min-height:3.25rem;gap:.6rem}
.bagsum .ic{width:1.5rem;height:1.5rem;border-radius:0;background:none;color:var(--ink)}
.bagsum .t{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:.4rem}.bagsum .t small::before{content:"· ";color:var(--muted)}

/* ---------- bag v2 step 1 (spec 2026-11-19): the list as a checklist ---------- */
.badd{position:relative;margin:var(--size-4) 0 var(--size-2)}
#badd{width:100%;min-height:3rem;padding:0 var(--size-3);border:1.5px solid var(--control-line);border-radius:14px;background:var(--card);color:var(--ink);font:inherit}
#baddl{display:flex;flex-direction:column}#baddl:empty{display:none}
#baddl button{display:flex;align-items:center;gap:var(--size-2);min-height:2.75rem;padding:var(--size-1) var(--size-2);border:0;border-bottom:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
#baddl .ip{width:32px;height:32px;margin:0}
.badd .hint{display:none;margin:var(--size-1) 0 0;color:var(--muted);font-size:var(--fs-meta)}
.bls{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.bgi{display:grid;grid-template-columns:44px 44px minmax(0,1fr) auto;grid-template-areas:"t p n a" "t p n c";column-gap:var(--size-2);align-items:center;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}
.bgi .tick{grid-area:t;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;color:var(--line-strong);cursor:pointer}
.bgi .tick svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bgi .tick path{stroke:transparent}
.bgi .tick[aria-pressed="true"]{color:var(--ink)}.bgi .tick[aria-pressed="true"] circle{fill:var(--ink)}.bgi .tick[aria-pressed="true"] path{stroke:var(--paper)}
.bgi .ip,.bgi .ltile{grid-area:p;margin:0}
.ltile{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--tint);color:var(--muted);font-weight:700;font-size:var(--fs-section)}
.bgi .bn{grid-area:n;display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;line-height:1.35;cursor:pointer}
.bgi .nm{font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bgi .nm .ty{font-weight:400;color:var(--muted)}
.bgi .note{color:var(--muted);font-size:var(--fs-meta);overflow-wrap:anywhere}
.bgi .ba{grid-area:a;justify-self:end;color:var(--muted);font-size:var(--fs-meta);white-space:nowrap}
.bgi .bc{grid-area:c;justify-self:end;white-space:nowrap;font-variant-numeric:tabular-nums}.bgi .bc small{color:var(--muted);font-size:var(--fs-meta)}
.bgi.on .nm{color:var(--muted)}
.bgi.sk{opacity:.5}
.ble{display:flex;flex-direction:column;gap:var(--size-2);margin:0 0 var(--size-2);padding:var(--size-3);border-radius:14px;background:var(--tint)}
.ble .erow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--size-2)}
.ble .qty.stp{display:inline-flex;align-items:center;border-radius:12px;background:var(--yellow);box-shadow:inset 0 0 0 1px var(--control-line)}
.ble .qty.stp button{width:2.75rem;height:2.75rem;border:0;background:transparent;color:var(--ink);font:inherit;font-size:var(--fs-section);cursor:pointer}
.ble .quick{display:inline-flex;flex-wrap:wrap;gap:var(--size-1)}
.ble .quick button,.ble .eskip{min-width:2.75rem;min-height:2.75rem;padding:0 var(--size-3);border:1px solid var(--line-strong);border-radius:12px;background:var(--card);color:var(--ink);font:inherit;cursor:pointer}
.ble .quick button.on,.ble .eskip.on{font-weight:700;border-color:var(--ink)}
.ble .erh{margin:0;max-width:16rem}
.ble .enote{width:100%;min-height:2.75rem;padding:0 var(--size-3);border:1px solid var(--control-line);border-radius:12px;background:var(--card);color:var(--ink);font:inherit}
.ble .eu select{min-height:2.75rem;margin-left:var(--size-2);border:1px solid var(--control-line);border-radius:12px;background:var(--card);font:inherit}
.ble .btn-text{min-height:2.75rem}.ble .erm{margin-left:auto;color:var(--muted)}
.blm{border-bottom:1px solid var(--line)}
.blm summary{display:flex;align-items:center;justify-content:space-between;gap:var(--size-2);min-height:3.5rem;cursor:pointer;list-style:none}
.blm summary::-webkit-details-marker{display:none}
.blm .mt{display:flex;flex-direction:column}.blm .mt small{color:var(--muted);font-size:var(--fs-meta)}
.blm>.btn-sec{margin:var(--size-3) 0}
.tundo{margin-left:.5rem;padding:.25rem 0;border:0;background:none;color:var(--yellow);font:inherit;font-weight:700;cursor:pointer}
@media (min-width:900px){.badd .hint{display:block}}
/* bag v2: the price sheet and the send sheet; from the bottom on phones, a centred dialog on desktop */
.sheet{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:88dvh;padding:0;border:0;border-radius:20px 20px 0 0;background:var(--paper);color:var(--ink);overflow:auto}
.sheet::backdrop{background:color-mix(in srgb,var(--ink) 45%,transparent)}
.sheet .shin{padding:var(--size-4) var(--size-4) var(--size-6)}
.sheet .shhd{display:flex;justify-content:space-between;align-items:center;gap:var(--size-3)}
.sheet .shhd h2{margin:0;font-size:var(--fs-section)}
.sheet .bx{flex:none;min-width:2.75rem;min-height:2.75rem;border:0;border-radius:var(--radius-round);background:var(--line);color:var(--ink);font:inherit;cursor:pointer}
.sheet .pbig{width:96px;height:96px;margin:var(--size-3) 0 var(--size-2)}
.sheet .pp{margin:0}.sheet .pp b{font-size:var(--fs-title)}.sheet .pp small{color:var(--muted)}
.sheet .note{color:var(--muted)}
.sheet h3{margin:var(--size-4) 0 var(--size-2);font-size:var(--fs-body)}
.sheet .bl .won{font-weight:700}
.sheet .btn-text{display:inline-flex;align-items:center;min-height:2.75rem;margin-top:var(--size-3)}
.sheet pre.wa{margin:var(--size-3) 0;padding:var(--size-3);border-radius:14px;background:var(--tint);font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
.sheet .sacts{display:flex;flex-wrap:wrap;gap:var(--size-2)}
.sheet .wa-open{display:none}
.bsend{width:100%;margin-top:var(--size-4)}
@media (min-width:900px){.sheet{inset:0;margin:auto;width:min(32rem,90vw);max-height:85vh;border-radius:20px}.sheet .wa-open{display:inline-flex}}
.sheet .fchips{display:flex;flex-direction:column;gap:var(--size-2);margin:var(--size-4) 0}
.sheet .fchips .btn-sec{justify-content:flex-start;min-height:3rem}.sheet .fchips [aria-pressed="true"]{font-weight:700;border-color:var(--ink)}
.bagtot .bfreq{display:inline-flex;align-items:center;min-height:2.75rem;margin-top:var(--size-2)}
@media (min-width:900px){  /* bag v2 desktop: each row on one line (circle, picture, name and note, amount, cost); the editor under it */
  .bgi{grid-template-columns:44px 44px minmax(0,1fr) auto minmax(7.5rem,auto);grid-template-areas:"t p n a c";column-gap:var(--size-3)}
  .bgi .ba{font-size:var(--fs-body);color:var(--ink)}.bgi .bc{text-align:right}
}
.bmback{display:inline-flex;align-items:center;min-height:2.75rem;margin-top:var(--size-2)}
