/* Mandi One: warm market palette (cream, leaf green, saffron). No external fonts or libraries. */
:root {
  --bg: #fbf6ec; --paper: #ffffff; --ink: #2a2118; --muted: #6f6556; --line: #eadfca;
  --green: #1f6f4a; --green-d: #165338; --green-l: #e3f4ea; --saffron: #e8890c; --saffron-l: #fff1d6;
  --red: #b3261e; --red-l: #fde4e1; --blue: #1e4fb3; --blue-l: #e3edff;
  --r: 14px; --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 18px rgba(60, 40, 10, .07);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); min-height: 100vh; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; } h4 { font-size: .95rem; margin: 1.2em 0 .5em; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
p { margin: 0 0 .8em; }
a { color: inherit; }
img { max-width: 100%; }
code { background: #f3ecdc; padding: 1px 6px; border-radius: 6px; font-size: .88em; }
ul, ol { padding-left: 1.2em; margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.boot { padding: 60px 20px; text-align: center; color: var(--muted); }
#view { min-width: 0; outline: none; padding-bottom: 40px; transition: opacity .15s; }
#view.loading { opacity: .55; }

/* utilities */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; } .narrow-l { max-width: 1000px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .hidden { display: none !important; }
.grow { flex: 1; min-width: 0; } .num { text-align: right; font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .wrap { flex-wrap: wrap; } .end { justify-content: flex-end; margin-top: 14px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.link { color: var(--green); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.link:hover { text-decoration: underline; }
.warn-t { color: #9a5b00; } .bad-t, .danger-t { color: var(--red) !important; } .dim { opacity: .55; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid { display: grid; gap: 0 14px; } .grid > .field, .grid > .check { margin-bottom: 12px; } .g4, .grid:has(> .scard) { gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.modal .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .span2 { grid-column: span 2; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; } .two.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sticky { position: sticky; top: 84px; }
.h1 { margin: 22px 0 14px; } .h1.tight { margin: 0; }
.eyebrow { color: var(--saffron); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 8px; }
.lead { font-size: 1.1rem; color: #4a3f31; max-width: 46ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; border: 0; }
.skip:focus { left: 8px; }
.hide-sm { }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid transparent; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; transition: transform .08s, background .15s, box-shadow .15s; min-height: 42px; }
.btn:active { transform: translateY(1px); } .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; } .btn-primary:hover:not([disabled]) { background: var(--green-d); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); } .btn-ghost:hover:not([disabled]) { background: #f6efe0; border-color: #d9c9a6; }
.btn-danger { background: var(--red); color: #fff; } .btn-light { background: #fff; color: var(--green-d); }
.btn-sm { padding: 6px 14px; font-size: .88rem; min-height: 34px; } .block { display: flex; width: 100%; margin-top: 10px; }
.icon-btn { background: none; border: 0; cursor: pointer; font-size: 1rem; color: var(--muted); padding: 8px; border-radius: 8px; } .icon-btn:hover { background: #f3ecdc; }
.linkbtn { background: none; border: 0; cursor: pointer; font: inherit; }
.field { display: block; margin-bottom: 12px; } .field > span { display: block; font-size: .85rem; font-weight: 600; color: #4a3f31; margin-bottom: 4px; }
.field.between > span { display: flex; }
.input { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 42px; }
.input:focus { border-color: var(--green); outline: 3px solid rgba(31, 111, 74, .18); outline-offset: 0; }
.input.sm { padding: 5px 8px; min-height: 34px; width: 84px; } textarea.input { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--green); }
.radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .radio input { margin-top: 4px; accent-color: var(--green); }
.card-radio { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; background: #fff; }
.card-radio:has(input:checked) { border-color: var(--green); background: var(--green-l); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; } .filters .input { flex: 1; min-width: 150px; width: auto; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; } .switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #d9cfba; border-radius: 99px; transition: .15s; } .switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--green); } .switch input:checked + span::after { transform: translateX(18px); } .switch input:focus-visible + span { outline: 3px solid var(--saffron); }
.stepper { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; align-items: center; }
.stepper button { border: 0; background: #f6efe0; width: 38px; height: 38px; font-size: 1.2rem; cursor: pointer; } .stepper button:disabled { opacity: .4; }
.stepper input, .stepper span { width: 44px; text-align: center; border: 0; font: inherit; font-weight: 700; background: transparent; }
.stepper.sm button { width: 30px; height: 30px; } .stepper.sm span { width: 30px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button, .seg label { position: relative; border: 0; background: transparent; padding: 7px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.seg .on { background: var(--green); color: #fff; } .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.starpick { display: inline-flex; flex-direction: row-reverse; gap: 2px; } .starpick input { position: absolute; opacity: 0; pointer-events: none; }
.starpick label { font-size: 1.9rem; color: #d9cfba; cursor: pointer; line-height: 1; } .starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color: #f2a33a; }
.starpick input:focus-visible + label { outline: 3px solid var(--saffron); border-radius: 4px; }
.stars { color: #e8a317; letter-spacing: 1px; }

/* cards, pills, notes */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); } .card.flat { box-shadow: none; background: #fffaf0; margin-top: 14px; }
.card > h3:first-child { margin-bottom: .7em; }
.pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f0e8d6; color: #5b5040; white-space: nowrap; text-transform: capitalize; }
.pill.ok { background: var(--green-l); color: #14532d; } .pill.warn { background: var(--saffron-l); color: #7a4a00; } .pill.bad { background: var(--red-l); color: #8a1c12; } .pill.info { background: var(--blue-l); color: #1e3a8a; }
.note { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; margin: 12px 0; background: #fff; border: 1px solid var(--line); }
.note.ok { background: var(--green-l); border-color: #b7e0c6; } .note.warn { background: var(--saffron-l); border-color: #f1d49c; } .note.info { background: var(--blue-l); border-color: #c5d6f7; } .note.bad { background: var(--red-l); border-color: #f4c2bd; } .note.big { font-size: 1.05rem; padding: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .chip { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: #f6efe0; border: 1px solid var(--line); text-decoration: none; }
.chip.good { background: var(--green-l); border-color: #b7e0c6; color: #14532d; } .chip.tick { cursor: pointer; padding: 5px 12px; } .chip.tick:has(input:checked) { background: var(--green-l); border-color: var(--green); } .chip.tick input { accent-color: var(--green); }
.badge { background: var(--saffron); color: #fff; border-radius: 99px; font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-style: normal; } .badge[hidden] { display: none; }
.ai-tag { font-size: .7rem; font-weight: 700; background: linear-gradient(90deg, #efe4ff, #ffe9c7); color: #5b2e9a; padding: 2px 8px; border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.live { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--green); } .live i { width: 9px; height: 9px; background: #2bb673; border-radius: 50%; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 182, 115, .6); } 100% { box-shadow: 0 0 0 10px rgba(43, 182, 115, 0); } }
.empty { text-align: center; padding: 48px 16px; } .empty-i { font-size: 3rem; margin-bottom: 8px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; } .tabs a { padding: 10px 16px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; } .tabs a.on { color: var(--green); border-color: var(--green); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 22px 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 14px 0; text-transform: capitalize; } .crumbs a { text-decoration: none; color: var(--green); }

/* header + shell */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--green-d); white-space: nowrap; } .logo { font-size: 1.6rem; }
.role-tag { background: var(--saffron); color: #fff; font-size: .68rem; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .08em; }
.hsearch { flex: 1; max-width: 460px; } .hsearch .input { border-radius: 999px; background: #fff; }
.pinbtn { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 6px; margin-left: auto; } .navlink { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-weight: 600; font-size: .92rem; white-space: nowrap; } .navlink:hover { background: #f3ecdc; }
.foot { border-top: 1px solid var(--line); background: #f6efe0; margin-top: 30px; padding: 26px 0 40px; } .foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; } .foot a { color: var(--green-d); }
.bottomnav { display: none; }
.dash-wrap { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 26px; padding-top: 22px; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; } .side a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; } .side a:hover { background: #f3ecdc; } .side a.on { background: var(--green); color: #fff; }
.page-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; } .page-h h1 { margin: 0; font-size: 1.6rem; } .page-h p { margin: 4px 0 0; max-width: 70ch; }

/* storefront */
.hero { background: linear-gradient(135deg, #1f6f4a 0%, #2d8a5e 55%, #e8890c 140%); color: #fff; padding: 40px 0 46px; }
.hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: center; } .hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 16ch; } .hero .lead, .hero .muted { color: #e6f4ec; } .hero .eyebrow { color: #ffd88a; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 3.4rem; text-align: center; } .hero-art span { background: rgba(255, 255, 255, .14); border-radius: 22px; padding: 14px 0; }
.pin-form { display: flex; gap: 8px; background: #fff; padding: 6px 6px 6px 16px; border-radius: 999px; max-width: 460px; margin: 18px 0 10px; align-items: center; color: var(--ink); } .pin-form .input { border: 0; min-height: 40px; outline: none; flex: 1; } .pin-form .input:focus { outline: none; }
.catrail { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: thin; } .catchip { flex: none; display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 16px; border-radius: 99px; font-weight: 600; background: hsl(var(--h) 70% 94%); border: 1px solid hsl(var(--h) 40% 85%); white-space: nowrap; } .catchip:hover { filter: brightness(.96); }
.shelf { margin: 26px 0; } .shelf-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; } .shelf-h h2 { margin: 0; } .shelf-h p { margin: 2px 0 0; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; } .rail .pcard { flex: 0 0 188px; scroll-snap-align: start; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s; } .pcard:hover { transform: translateY(-2px); }
.pimg { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: hsl(var(--h, 40) 70% 92%); text-decoration: none; overflow: hidden; } .pimg-img { width: 100%; height: 100%; object-fit: cover; } .pimg-emoji { font-size: 3.4rem; }
.off { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; z-index: 1; }
.pbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; } .pname { font-weight: 700; text-decoration: none; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .pshop { font-size: .78rem; color: var(--muted); text-decoration: none; }
.pmeta { display: flex; gap: 8px; font-size: .78rem; color: var(--muted); } .rate { color: #9a5b00; font-weight: 700; } .pbuy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 6px; }
.price { font-weight: 800; font-size: 1.05rem; } .price.big { font-size: 1.7rem; color: var(--green-d); } .mrp { color: var(--muted); font-size: .82rem; }
.scard { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; box-shadow: var(--shadow); } .scard:hover { border-color: var(--green); } .scard-top { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.semoji { font-size: 2rem; background: var(--green-l); border-radius: 14px; width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; flex: none; } .semoji.big { width: 80px; height: 80px; font-size: 3rem; }
.band { margin: 36px 0; background: var(--ink); color: #fff; border-radius: 22px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; } .band h2 { margin-bottom: 6px; } .band p { margin: 0; color: #e8dfcf; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-bottom: 20px; } .pdp-img { aspect-ratio: 1; border-radius: 22px; background: hsl(var(--h, 40) 70% 92%); display: flex; align-items: center; justify-content: center; overflow: hidden; } .pdp-img .pimg-emoji { font-size: 7rem; } .pdp-img .pimg-img { height: 100%; }
.pdp-info h1 { font-size: 1.8rem; } .pdp-price { margin: 12px 0; } .facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.storehead { display: flex; gap: 18px; align-items: flex-start; margin-top: 18px; flex-wrap: wrap; } .storehead h1 { font-size: 1.7rem; margin-bottom: 4px; }

/* cart + checkout */
.cgroup header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .cgroup footer { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.cline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f3ecdc; } .cthumb { width: 54px; height: 54px; flex: none; border-radius: 12px; background: hsl(var(--h, 40) 70% 92%); display: flex; align-items: center; justify-content: center; overflow: hidden; } .cthumb .pimg-emoji { font-size: 1.8rem; } .cthumb .pimg-img { height: 100%; } .cthumb.sm { width: 40px; height: 40px; } .cthumb.sm .pimg-emoji { font-size: 1.3rem; }
.cprice { min-width: 70px; text-align: right; }
.sum { margin: 0 0 8px; } .sum div { display: flex; justify-content: space-between; padding: 5px 0; } .sum dt { color: var(--muted); } .sum dd { margin: 0; font-weight: 600; } .sum .tot { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 1.15rem; } .sum .tot dt { color: var(--ink); font-weight: 800; } .sum .tot dd { font-weight: 800; }
.sumline { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: .92rem; } .modeblock { padding: 10px 0; border-top: 1px solid #f3ecdc; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; } .modeblock > p { flex-basis: 100%; margin: 0; } .modeblock:first-child { border-top: 0; } 

/* orders + tracking */
.ocard { display: block; text-decoration: none; } .ocard:hover { border-color: var(--green); } .opart { padding: 8px 0; border-top: 1px solid #f3ecdc; }
.steps { list-style: none; display: flex; padding: 0; margin: 16px 0 18px; counter-reset: s; } .steps li { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--muted); font-weight: 600; }
.steps li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #e5dcc7; z-index: 0; } .steps li:first-child::before { display: none; } .steps li.done::before, .steps li.cur::before { background: var(--green); }
.steps .dot { position: relative; z-index: 1; display: flex; margin: 0 auto 4px; width: 32px; height: 32px; border-radius: 50%; background: #e5dcc7; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.steps li.done .dot { background: var(--green); } .steps li.cur .dot { background: var(--saffron); box-shadow: 0 0 0 5px rgba(232, 137, 12, .22); } .steps li.cur, .steps li.done { color: var(--ink); }
.items { background: #fffaf0; border-radius: 12px; padding: 10px 14px; margin: 10px 0; display: grid; gap: 4px; }
.timeline { margin: 10px 0; } .timeline summary { cursor: pointer; font-weight: 600; color: var(--green); } .timeline ul { list-style: none; padding: 8px 0 0 12px; border-left: 2px solid var(--line); margin: 8px 0 0 6px; } .timeline li { margin-bottom: 8px; }
.ratebox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--saffron-l); border-radius: 12px; padding: 12px; margin-top: 12px; } .ratebox .input { flex: 1; min-width: 180px; width: auto; }
.order header { margin-bottom: 6px; } .order .meta { margin: 8px 0; font-size: .92rem; }

/* auth + sell */
.authwrap { display: flex; justify-content: center; padding: 36px 16px; } .authcard { width: 100%; max-width: 440px; }
.sellgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px 0; align-items: start; }
.ticks { list-style: none; padding: 0; } .ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; } .ticks li::before { content: '✓'; position: absolute; left: 0; color: #fff; background: var(--green); width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; top: 2px; }
.addr { padding: 10px 0; border-top: 1px solid #f3ecdc; }

/* dashboards */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; display: block; box-shadow: var(--shadow); } a.stat:hover { border-color: var(--green); }
.stat-l { font-size: .8rem; color: var(--muted); font-weight: 600; } .stat-v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; } .stat-s { font-size: .78rem; color: var(--muted); } .stat.hot { background: var(--saffron-l); border-color: #f1d49c; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; } .table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; background: #fbf4e4; white-space: nowrap; } .table td { padding: 10px 12px; border-top: 1px solid #f3ecdc; vertical-align: middle; }
.table th.num { text-align: right; } .card .table td:first-child { padding-left: 0; } .actions { white-space: nowrap; }
.pcell { display: flex; align-items: center; gap: 10px; }
.checks { list-style: none; padding: 0; margin: 0; } .checks li { padding: 6px 0; display: flex; gap: 10px; } .checks li.done { color: var(--muted); text-decoration: line-through; } .checks li.done span { color: var(--green); }
.planbox { background: var(--green-l); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; } .steps-text li { margin-bottom: 8px; }
.keyrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f3ecdc; flex-wrap: wrap; }
.rulelist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; } .rulelist li { background: #fffaf0; border-radius: 10px; padding: 10px 12px; }
.run details summary { cursor: pointer; font-weight: 600; color: var(--green); }
.preview { background: #fffaf0; border-radius: 12px; padding: 12px; margin-top: 12px; }
.chart { width: 100%; height: auto; display: block; } .chart .bar { fill: var(--green); } .chart .bar:hover { fill: var(--saffron); } .chart .tick { fill: var(--muted); font-size: 9px; }

/* modal + toast */
.backdrop { position: fixed; inset: 0; background: rgba(30, 20, 5, .5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 14px; animation: fade .15s; }
.modal { position: relative; background: #fff; border-radius: 18px; padding: 24px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); } .modal.wide { max-width: 760px; } .modal h3 { padding-right: 30px; }
.modal-x { position: absolute; top: 12px; right: 12px; background: #f3ecdc; border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .9rem; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; animation: rise .2s; pointer-events: auto; } .toast.bad { background: var(--red); } .toast.warn { background: #9a5b00; } .toast.out { opacity: 0; transition: opacity .4s; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

/* responsive */
@media (max-width: 900px) {
  .two, .two.even, .pdp, .sellgrid, .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-art { display: none; } .sticky { position: static; }
  .dash-wrap { grid-template-columns: minmax(0, 1fr); gap: 10px; } .side { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; } .side a { white-space: nowrap; padding: 8px 14px; background: #fff; border: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { padding-bottom: 68px; } .hide-sm { display: none !important; } .pinbtn { padding: 6px 10px; font-size: .85rem; } .top-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 8px; } .hsearch { order: 5; flex: 1 1 100%; max-width: none; } .topnav { margin-left: auto; }
  .bottomnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 0; text-decoration: none; font-size: 1.2rem; color: var(--muted); } .bottomnav a span { font-size: .68rem; font-weight: 700; } .bottomnav a.on { color: var(--green); } .bottomnav .badge { position: absolute; top: 4px; right: 28%; }
  .foot { display: none; } #toasts { bottom: 84px; } .g2 { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; } .modal .g3 { grid-template-columns: minmax(0, 1fr); } .rail .pcard { flex-basis: 156px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cline { flex-wrap: wrap; } .steps li { font-size: .68rem; } .hero { padding: 26px 0 30px; } .modal { padding: 18px; }
  .dash-wrap + .bottomnav, body:has(.dash) { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
