:root {
  --bg: #eef5fc; --bg2: #f6faff; --card: #ffffff; --card2: #e6f0fa; --line: #d8e5f2;
  --tx: #102046; --mut: #5d6f8c; --em: #15803d; --em2: #116c34; --bad: #c62828;
  --navy: #0f1f4b; --navy2: #1b2f6b; --gold: #b8892b; --gold2: #d9b45a; --goldl: #f3e3b8; --sky: #2f7fd0;
  --glass: rgba(255,255,255,.92);
  --kp: #1f6fe0; --nmc: #f5c518; --pr: #e8392b;
  --r: 20px; --sh: 0 1px 2px rgba(15,31,75,.06), 0 10px 30px -18px rgba(15,31,75,.35);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Noto Sans Malayalam', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; color: var(--tx); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.4; min-height: 100vh;
  background: radial-gradient(900px 420px at 50% -120px, #d4e7fa 0%, transparent 70%), var(--bg); background-attachment: fixed; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
input, textarea, select { font: inherit; color: var(--tx); }
a { color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 14px 100px; }
.ml { font-family: 'Noto Sans Malayalam', var(--sans); font-size: .82em; color: var(--mut); }
.mut { color: var(--mut); }
.row { display: flex; align-items: center; gap: 10px; }
.sp { flex: 1; }
.hide { display: none !important; }
.lbl { font-weight: 700; font-size: .92rem; margin: 2px 2px 8px; letter-spacing: .01em; }
.hint { font-size: .82rem; color: var(--mut); margin-top: 8px; }
.serif { font-family: var(--serif); }

/* ornaments */
.orn { display: flex; align-items: center; gap: 10px; color: var(--gold); justify-content: center; margin: 10px 0; }
.orn::before, .orn::after { content: ''; height: 1px; flex: 1; max-width: 90px; background: linear-gradient(90deg, transparent, var(--gold2)); }
.orn::after { background: linear-gradient(90deg, var(--gold2), transparent); }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 14px 0; box-shadow: var(--sh); }
.ttl { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.ttl .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); font-size: 1rem; font-family: var(--sans); }
.sub { font-size: .88rem; color: var(--mut); margin-top: 4px; }

/* invitation (login) */
.invite { position: relative; text-align: center; padding: 78px 20px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); margin-top: -30px; }
.invite::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--goldl); border-radius: 18px; pointer-events: none; }
.invite .title { font-family: var(--serif); font-size: 2.2rem; line-height: 1.05; font-weight: 800; color: var(--navy); margin-top: 6px; }
.invite .mlt { font-family: 'Noto Sans Malayalam', var(--sans); font-weight: 700; color: var(--navy2); font-size: 1.05rem; margin-top: 4px; }
.details { list-style: none; padding: 0; margin: 6px auto 4px; max-width: 320px; text-align: left; }
.details li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.details li:last-child { border-bottom: 0; }
.details .di { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); }
.details b { display: block; font-size: 1rem; color: var(--navy); }
.details span { font-size: .78rem; color: var(--mut); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.date-big { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy); }

/* app bar */
.appbar { position: sticky; top: 0; z-index: 20; margin: 0 -14px; padding: 10px 14px; background: linear-gradient(180deg, var(--navy2), var(--navy)); color: #fff; border-bottom: 3px solid var(--gold2); box-shadow: 0 6px 20px -12px rgba(15,31,75,.6); }
.appbar .in { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto; }
.appbar img.lg { width: 42px; flex: none; }
.appbar .u { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.appbar .r { font-size: .8rem; color: #c7d3f0; font-weight: 600; letter-spacing: .02em; }
.appbar .btn { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.appbar .btn:active { background: rgba(255,255,255,.22); }
.appbar .live { box-shadow: 0 0 0 4px rgba(34,197,94,.25); background: #22c55e; }

/* fields */
.field { display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 14px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(47,127,208,.12); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 11px 0; font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; }
.field input::placeholder { color: #a8b8cf; font-weight: 500; letter-spacing: 0; font-size: 1.05rem; }
.field .tag { font-weight: 800; color: var(--gold); }
.fmt { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font-size: .8rem; color: var(--mut); }
.fmt i { font-style: normal; display: inline-grid; place-items: center; min-width: 24px; height: 26px; padding: 0 6px; border: 1.5px dashed #aac0da; border-radius: 8px; font-weight: 800; color: #8aa0bd; }
.in2 { width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1.5px solid var(--line); outline: 0; font-size: 1.02rem; font-weight: 600; }
.in2:focus { border-color: var(--sky); background: #fff; }
.who { margin-top: 10px; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #e8f6ee; border: 1px solid #b5e2c6; font-weight: 700; font-size: 1.1rem; }
.linkbtn { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; font-weight: 600; }
.suggest { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 260px; overflow: auto; }
.suggest button { text-align: left; padding: 9px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: .95rem; font-weight: 600; }
.suggest button b { color: var(--sky); margin-right: 6px; }

/* segmented */
.seg { display: flex; background: var(--card2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 10px 8px; border-radius: 11px; font-weight: 700; color: var(--mut); display: flex; gap: 6px; align-items: center; justify-content: center; white-space: nowrap; font-size: .92rem; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px -3px rgba(15,31,75,.3); }
.fchips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; margin-top: 10px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchips button { flex: none; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.fchips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.fchips button .badge { margin-left: 4px; }

/* items */
.item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); margin-top: 10px; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.item.on { border-color: var(--c); box-shadow: 0 8px 22px -16px var(--c); }
.item img { width: 72px; height: 72px; border-radius: 50%; display: block; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); cursor: zoom-in; }
.item .nm { font-family: var(--serif); font-weight: 700; line-height: 1.15; font-size: 1.05rem; color: var(--navy); }
.item .ml { font-size: .76rem; line-height: 1.25; }
.item .cp { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--c); color: var(--ink); font-weight: 800; font-size: .82rem; }
.step { display: flex; align-items: center; gap: 2px; background: var(--bg2); border-radius: 14px; padding: 3px; border: 1px solid var(--line); }
.step button { width: 44px; height: 42px; border-radius: 11px; font-size: 1.5rem; font-weight: 700; display: grid; place-items: center; color: var(--navy); }
.step button:active { background: var(--card2); }
.step .plus { background: var(--c); color: var(--ink); }
.step output { min-width: 28px; text-align: center; font-size: 1.35rem; font-weight: 800; }

.sum { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.big { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.ticket { display: inline-flex; gap: 6px; align-items: center; }
.cta { width: 100%; margin-top: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, #1c9150, var(--em2)); color: #fff; font-size: 1.1rem; font-weight: 800; box-shadow: 0 10px 22px -14px var(--em); display: flex; gap: 8px; justify-content: center; align-items: center; letter-spacing: .01em; }
.cta:disabled { opacity: .45; }
.cta.ghost { background: var(--card2); box-shadow: none; color: var(--navy); }
.cta.navy { background: linear-gradient(180deg, var(--navy2), var(--navy)); box-shadow: 0 10px 22px -14px var(--navy); }
.cta.danger { background: #fdeaea; color: var(--bad); box-shadow: none; }
.closed { text-align: center; padding: 14px; border-radius: 16px; background: #fff7e0; border: 1px solid #ecd48f; color: #6b4e00; font-weight: 700; }
.status { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pill { display: inline-flex; gap: 4px; align-items: center; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .82rem; background: var(--card2); color: var(--mut); }
.pill.ok { background: #e1f4e8; color: #116c34; }
.pill.warn { background: #fff2cf; color: #6b4e00; }

/* chips + list */
.chip { --c: #888; --ink: #fff; display: inline-flex; align-items: baseline; gap: 3px; padding: 2px 9px; border-radius: 999px; background: var(--c); color: var(--ink); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.chip i { font-style: normal; font-weight: 600; opacity: .85; font-size: .78rem; margin-left: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.tot div { border-radius: 14px; padding: 9px 6px; text-align: center; background: var(--bg2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tot div::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--gold2)); }
.tot b { display: block; font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; color: var(--navy); }
.tot span { font-size: .74rem; color: var(--mut); font-weight: 700; letter-spacing: .04em; }
.list { margin-top: 6px; }
.li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 12px 4px; border-top: 1px solid var(--line); }
.li .rn { width: 52px; height: 40px; border-radius: 12px; background: var(--card2); display: grid; place-items: center; font-weight: 800; color: var(--navy2); font-size: .88rem; letter-spacing: .03em; }
.li .n { font-weight: 700; font-size: 1.08rem; }
.li.me { background: #f1ecff; border-radius: 14px; border-top-color: transparent; box-shadow: inset 4px 0 0 #7c5cd6; }
.acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.acts button, .acts a { padding: 7px 11px; border-radius: 11px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.acts .yes { background: #e1f4e8; border-color: #9fd8b4; color: #116c34; }
.acts .call { background: #e6f0fb; border-color: #b4d1f1; color: #174c95; }
.grp { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.grp h4 { margin: 0; padding: 10px 12px; background: var(--c); color: var(--ink); display: flex; align-items: center; gap: 10px; font-size: 1rem; font-family: var(--serif); }
.grp h4 img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.grp h4 b.n { font-size: 1.4rem; }
.grp .gr { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); align-items: center; background: #fff; }
.grp .gr .q { font-weight: 800; font-size: 1.15rem; }
.search { width: 100%; padding: 11px 14px; border-radius: 12px; background: var(--bg2); border: 1.5px solid var(--line); outline: 0; margin-top: 10px; }
.search:focus { border-color: var(--sky); background: #fff; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; font-size: .74rem; font-weight: 800; background: var(--card2); color: var(--navy); }

/* menu gallery */
.gal { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; margin-top: 10px; scrollbar-width: none; }
.gal img { flex: none; width: 44%; max-width: 220px; border-radius: 14px; scroll-snap-align: start; box-shadow: var(--sh); cursor: zoom-in; }
.bannerimg { width: 100%; display: block; border-radius: 14px; margin-top: 12px; }

/* net + toast */
.net { position: fixed; left: 50%; top: 10px; transform: translate(-50%, -150%); transition: transform .25s; z-index: 50; background: var(--bad); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .95rem; display: flex; gap: 8px; align-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.net .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }
body.offline .net { transform: translate(-50%, 0); }
@keyframes pulse { 50% { opacity: .2 } }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); transition: transform .25s; z-index: 90; background: var(--navy); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 14px; max-width: 90vw; text-align: center; box-shadow: 0 10px 30px rgba(15,31,75,.35); }
#toast.show { transform: translate(-50%, 0); }
#toast.bad { background: var(--bad); }
#toast.ok { background: var(--em2); }

/* modal + sheet */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(15,31,75,.82); display: grid; place-items: center; padding: 16px; }
.modal img { max-width: 100%; max-height: 92vh; border-radius: 14px; }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(15,31,75,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet > div { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }

/* pin gate */
.pingate { position: fixed; inset: 0; z-index: 80; background: radial-gradient(800px 400px at 50% 0, #d4e7fa, transparent 70%), var(--bg); display: grid; place-items: center; overflow: auto; padding: 16px; }
.pinbox { width: min(350px, 92vw); text-align: center; background: #fff; border-radius: 24px; padding: 20px; box-shadow: var(--sh); border: 1px solid var(--line); position: relative; }
.pinbox::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--goldl); border-radius: 18px; pointer-events: none; }
.pinlbl { font-weight: 800; font-size: 1.05rem; margin-top: 14px; }
.pindots { font-size: 2.4rem; letter-spacing: .3em; height: 52px; color: var(--navy); }
.pinerr { color: var(--bad); font-weight: 700; margin-bottom: 8px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.pad button { height: 58px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); font-size: 1.5rem; font-weight: 700; }
.pad button:active { background: var(--card2); }
.pad button[data-k="✓"] { background: var(--em2); color: #fff; border-color: var(--em2); }
.pinhome { display: inline-block; margin-top: 12px; color: var(--sky); font-weight: 700; text-decoration: none; position: relative; }

/* event head (pin gate) */
.evhead { display: flex; gap: 12px; align-items: center; text-align: left; position: relative; }
.evhead img { width: 72px; flex: none; }
.evt { font-family: var(--serif); font-size: 1.35rem; font-weight: 800; line-height: 1.05; color: var(--navy); }
.evs { font-weight: 700; color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.evd { font-size: .85rem; color: var(--mut); margin-top: 2px; line-height: 1.3; }

/* foot */
.foot { text-align: center; margin: 28px 0 10px; color: var(--mut); font-size: .8rem; }
.foot img { width: 52px; display: block; margin: 0 auto 6px; }

/* staff tabs (counter) */
.top { position: sticky; top: 0; z-index: 20; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin: 0 -14px; padding: 8px 14px; }
.tabs { display: flex; gap: 6px; }
.tabs button, .tabs a { flex: 1; padding: 9px 6px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); font-weight: 700; display: flex; gap: 6px; align-items: center; justify-content: center; font-size: .9rem; text-decoration: none; }
.tabs a.home { flex: 0 0 auto; padding: 9px 12px; background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs button.on .badge { background: rgba(255,255,255,.2); color: #fff; }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--em); box-shadow: 0 0 0 4px rgba(21,128,61,.2); flex: none; }
body.offline .live { background: var(--bad) !important; box-shadow: 0 0 0 4px rgba(198,40,40,.25) !important; }

/* ---- soft item colours: coloured text + tint instead of solid fills ---- */
.chip { background: color-mix(in srgb, var(--c) 11%, #fff); color: var(--tx, var(--navy)); border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); }
.chip b { font-weight: 800; }
.item .cp { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--tx, var(--navy)); border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); }
.item .nm { color: var(--tx, var(--navy)); }
.grp { border-left: 5px solid var(--c); }
.grp h4 { background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--tx); border-bottom: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.grp h4 img { box-shadow: 0 0 0 2px var(--c); }
.grp .gr.me { background: #f1ecff; box-shadow: inset 4px 0 0 #7c5cd6; }
.li .rn { width: 44px; height: 44px; border-radius: 50%; font-family: var(--serif); font-size: .95rem; background: linear-gradient(160deg, #e6eefb, #d5e3f6); color: var(--navy); }
.li { grid-template-columns: 44px 1fr; }

/* by item / by person switch — stands out */
.seg.strong { background: linear-gradient(180deg, var(--navy2), var(--navy)); padding: 5px; border-radius: 16px; }
.seg.strong button { color: #c7d3f0; }
.seg.strong button.on { background: linear-gradient(180deg, #f3d68b, var(--gold2)); color: var(--navy); box-shadow: 0 4px 12px -6px rgba(0,0,0,.4); }

/* staff actions in one line */
.acts.one { flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.acts.one::-webkit-scrollbar { display: none; }
.acts.one > * { flex: none; padding: 6px 7px; font-size: .78rem; }
.li .acts.one { margin-left: -56px; }
.acts .warn { background: #fff2cf; border-color: #ecd48f; color: #6b4e00; }

/* member: coupons to give */
.owe { margin: 12px 0 10px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(160deg, var(--navy2), var(--navy)); color: #fff; position: relative; overflow: hidden; }
.owe::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold2); }
.owe span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #c7d3f0; font-weight: 700; }
.owe b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; margin: 2px 0; }
.owe small { color: #c7d3f0; font-size: .85rem; }
.owe.done { background: linear-gradient(160deg, #1c9150, var(--em2)); }
.owe.done span, .owe.done small { color: #dff5e7; }

/* member: coupons given / to give */
.owe2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 10px; }
.owe2 .ob { border-radius: 18px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); }
.owe2 .ob span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--mut); }
.owe2 .ob b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; margin: 2px 0; color: var(--navy); }
.owe2 .ob small { font-size: .8rem; color: var(--mut); }
.owe2 .ob.given, .owe2 .ob.done { background: #e9f7ef; border-color: #b5e2c6; }
.owe2 .ob.given b, .owe2 .ob.done b { color: #116c34; }
.owe2 .ob.due { background: linear-gradient(160deg, var(--navy2), var(--navy)); border: 0; }
.owe2 .ob.due span, .owe2 .ob.due small { color: #c7d3f0; }
.owe2 .ob.due b { color: #fff; }

/* one-line chip row */
.chips1 { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips1::-webkit-scrollbar { display: none; }
.chips1 .chip { flex: none; font-size: .8rem; padding: 2px 8px; }

/* ---- older Safari / Firefox: no color-mix() → simple light fallbacks ---- */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .chip, .item .cp, .owe2 .ob, .ic3 .cpb { background: #f4f8fd; border-color: var(--c); }
  .grp h4 { background: #f4f8fd; }
  .stats .st, .ls > div, .bigchip, .it { background: #f8fbff; border-color: var(--c); }
  .ls .bar { border-color: var(--line); }
}

/* ---- item cards: never overflow on narrow phones ---- */
.item { padding: 12px 14px 12px 16px; }
.item > div { min-width: 0; }                                  /* let the text column shrink instead of pushing out */
.item .nm { overflow-wrap: anywhere; padding-right: 2px; }
.item .ml { display: block; margin-top: 5px; }                 /* space between English and Malayalam names */
.item .row { flex-wrap: wrap; row-gap: 8px; margin-top: 10px !important; }
.item .row .step { margin-left: auto; }
@media (max-width: 400px) {
  .item { grid-template-columns: 58px 1fr; gap: 10px; }
  .item img { width: 58px; height: 58px; }
  .item .nm { font-size: .98rem; }
  .step button { width: 40px; height: 40px; }
  .step output { min-width: 24px; }
}

/* "You" marker — violet, so it never looks like an item colour (blue / yellow / red) */
.you { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #7c5cd6; color: #fff; font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Section titles: emerald from the Harvest logo, with a gold underline */
.ttl { color: #0f6b46; }
.ttl .ic { background: #e3f4ea; }
.card > .ttl::after, .card > .lshead::after { content: ''; display: none; }
.card > .ttl, .card > button.ttl { padding-bottom: 8px; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--gold2), transparent 60%) 1; }

/* Item card: coupons chip and − / + stepper always on one line */
.item .row { flex-wrap: nowrap !important; gap: 8px; }
.item .cp { font-size: .78rem; padding: 2px 8px; flex: none; }
.item .row .step { flex: none; }
@media (max-width: 430px) {
  .item { grid-template-columns: 56px 1fr; gap: 10px; padding: 12px 12px 12px 14px; }
  .item img { width: 56px; height: 56px; }
  .step button { width: 35px; height: 40px; font-size: 1.3rem; }
  .item .row { gap: 6px; }
  .item .cp { font-size: .74rem; padding: 2px 7px; }
  .step output { min-width: 22px; font-size: 1.2rem; }
}
@media (max-width: 360px) { .item .cpw { display: none; } }

/* "+ Palappam" note next to each dish name in the pre-order form */
.item .pal { display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 800; color: #116c34; background: #e1f4e8; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; white-space: nowrap; }
