:root{--g:#1F6F43;--bg:#F7F4EE;--ink:#1C1C1C;--warn:#865B00;--warnbg:#FBEEDB;--mut:#5F5A50;--soft:#E3F1E7;--red:#B3261E}
*{box-sizing:border-box}
body{margin:0;font:17px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);padding-bottom:0}
noscript p{padding:16px}   /* PM 5:52 via main: 16px page padding + standard body text, CSS only */
header{display:flex;align-items:center}   /* layout only; colour, height and padding come from the theme line */
#back[hidden]{display:none}
header h1{margin:0;flex:1}   /* layout only; the theme line sets the Kalam title */
.gear{background:none;border:0;color:#fff;padding:6px;min-width:44px;min-height:44px}
.gear[hidden]{display:none}
main{padding:16px 16px calc(170px + env(safe-area-inset-bottom));max-width:640px;margin:0 auto}
body[data-tab=chat] main{padding-bottom:calc(190px + env(safe-area-inset-bottom))}
nav{padding-bottom:env(safe-area-inset-bottom);position:fixed;bottom:var(--kb,0px);left:0;right:0;display:flex;background:var(--t-panel);border-top:1px solid var(--t-line);z-index:5}
nav button{flex:1;min-height:60px;border:0;background:none;font:inherit;font-size:16px;color:var(--mut)}
nav button.on{color:var(--g);font-weight:700;box-shadow:inset 0 3px 0 var(--g)}
.hidden{display:none!important}
.big{display:block;width:100%;min-height:58px;border:0;border-radius:18px;background:var(--g);color:#fff;font:inherit;font-weight:700;font-size:17px;margin:12px 0}
.big.alt{background:var(--soft);color:var(--g)}.big.ghost{background:var(--t-panel);color:var(--g)}
.chips{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0 8px}
.chips .chipb.plus{margin-left:auto}   /* KNOWN-23: + New chip flush to the content right edge (348 at 360) */
.chipb{flex:none;min-height:48px;padding:0 16px;border:0;border-radius:99px;background:var(--t-panel);color:var(--ink);font:inherit;font-weight:700}
.chipb.on{background:var(--g);color:#fff}.chipb.plus{color:var(--g)}.chipb.sm{font-weight:500;color:var(--g);min-height:44px}
.list{background:var(--t-panel);border-radius:18px;padding:4px 16px;margin:10px 0}
.irow{display:flex;align-items:center;gap:12px;min-height:64px;border-bottom:1px solid #eee8dc}.irow .fav-star{align-items:center}   /* the star glyph sits centred in its 44px box on every row */.irow:last-child{border-bottom:0}
.irow.plain{min-height:56px}
.nm{font-size:17px;font-weight:700}.nm.tap{cursor:text}
.sub{font-size:13px;color:var(--mut)}
.right{margin-left:auto;color:var(--mut);font-size:15px;text-align:right}
.th{width:44px;height:44px;border-radius:12px;object-fit:cover;flex:none;background:#ebe6da}
.tag{background:#FBEEDB;color:#865B00;font-size:13px;font-weight:700;padding:5px 10px;border-radius:99px;white-space:nowrap}
.x{width:48px;height:48px;border:0;background:none;color:var(--mut);font-size:22px;line-height:1}
.textlink{display:block;margin:10px auto;background:none;border:0;color:var(--g);font:inherit;font-weight:700;min-height:48px}
.addform input{margin-top:8px}
.addline{margin:8px 0 0;font-size:14px;font-weight:400;color:var(--t-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}   /* inline add feedback under the name field: grey, at most two lines then ellipsis */
.cc-input+.addline{margin-top:4px}   /* the cook input's own 4px bottom margin plus this makes the line sit 8px under the field */
.addline.hidden{display:none}
.addline.dym{display:block;-webkit-line-clamp:unset;overflow:visible;color:var(--t-ink)}   /* the did-you-mean card is interactive: the plain feedback line clamps to two lines, the card must not */
.wcard{background:var(--warnbg);border-left:4px solid var(--warn);border-radius:var(--t-r-card);padding:12px;flex:1;min-width:0;box-sizing:border-box}   /* the confirm card: warn bar + warn ground */
.wc-q{font-size:var(--t-fs-head);line-height:1.35;color:var(--t-ink);overflow-wrap:anywhere}
.wc-gl{display:inline-block;margin-right:6px;vertical-align:-3px}.wc-glyph{width:18px;height:18px;display:block}.wc-glyph .wg-t{fill:var(--warn);stroke:var(--warn);stroke-width:2;stroke-linejoin:round}.wc-glyph .wg-b{fill:none;stroke:var(--warnbg);stroke-width:2;stroke-linecap:round}   /* filled warning glyph at the start of the sentence */
.wc-chip{display:inline-block;border:1px solid var(--warn);border-radius:var(--t-r-chip);color:var(--warn);font-size:11px;font-weight:700;line-height:1.1;padding:3px 8px;margin-bottom:8px}   /* card-scoped ring chip; the global .aitag is untouched */
.wc-note{font-size:var(--t-fs-sec);color:var(--mut);margin-top:6px}
.wc-btns{display:flex;gap:8px;margin-top:12px}
.wcard .cp-btn{flex:1;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;background:var(--t-surface);border-color:var(--t-good);color:var(--t-good);font-weight:700}   /* No outlined, Yes filled, same 44px in every state */
.wcard .cp-btn.cp-nope{border-color:var(--t-good);color:var(--t-good)}.wcard .cp-btn.cp-yes{background:var(--t-good);color:var(--t-on-app)}   /* beats the shared No red inside this card */
.wcard .cp-btn:disabled{cursor:default}.wcard .cp-yes:disabled{opacity:1}.wcard[aria-busy=true] .cp-nope{opacity:.45}
.wc-spin{flex:none;width:16px;height:16px;margin-right:8px;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:kbspin .8s linear infinite}@media (prefers-reduced-motion:reduce){.wc-spin{animation:none}}   /* static under reduced motion */
body[data-tab] .irow.dymrow{height:auto;padding-top:8px;padding-bottom:8px}   /* a row holding the card grows to fit it; the review list's fixed row height would crop it */   /* the card reuses the row confirm panel's No/Yes button pair (44px) */
.dup-ol{outline:1px dotted var(--t-muted);outline-offset:2px}   /* the existing row is dotted-outlined while the already-have line shows */
input,select{font:inherit;width:100%;min-height:52px;padding:0 16px;border:0;border-radius:16px;background:var(--t-panel);color:var(--ink)}
input[type=checkbox]{width:22px;height:22px;min-height:0}
.search{margin:12px 0}
.strip{display:flex;justify-content:space-between;width:100%;min-height:56px;align-items:center;padding:0 18px;border:0;border-radius:16px;background:var(--soft);color:var(--g);font:inherit;font-weight:700}
.rc{background:var(--t-panel);border-radius:18px;padding:16px;margin:12px 0}.big2{font-size:22px;font-weight:800}
img.ev{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:14px;margin:10px 0 6px}
.lb{position:fixed;inset:0;background:#000d;z-index:20;display:flex;align-items:center;justify-content:center;padding:10px}.lb img{max-width:100%;max-height:100%;border-radius:8px}
.ghead{display:flex;justify-content:space-between;margin:20px 4px 0;font-weight:700;color:var(--mut)}.ghead .old{color:var(--warn)}
.empty{color:var(--mut);text-align:center;padding:20px 8px}
.sec{font-weight:800;margin:20px 4px 0}.sec.ok{color:var(--g)}.sec.bad{color:var(--warn)}
.mk{font-size:22px;font-weight:800;width:28px;text-align:center}.mk.ok{color:var(--g)}.mk.bad{color:var(--warn)}
.sticky{position:fixed;left:20px;right:20px;bottom:calc(82px + env(safe-area-inset-bottom));padding:0;z-index:4}.sticky .big{margin:0 auto;height:58px;min-height:58px;max-width:608px}
.spacer{height:180px}
.prog .pl{color:var(--mut);padding:2px 6px}
.bub{background:var(--t-panel);border-radius:var(--t-r-card);padding:12px;margin:8px 0 0;max-width:78%;width:fit-content;overflow-wrap:anywhere;border:1px solid var(--t-hair);box-shadow:none}   /* PM diff-6: 12px inner padding, theme radius, flat outline */.bub.me{background:var(--soft);margin-left:auto}.bub.err{color:var(--red)}
.bub.card.wide{max-width:100%}.bub.card b{font-size:17px}
.chatpad{height:10px}
.chatbar{position:fixed;left:0;right:0;bottom:calc(60px + env(safe-area-inset-bottom) + var(--kb,0px));display:flex;gap:10px;align-items:center;padding:10px 16px;background:var(--bg);z-index:4}
.chatbar .grow{flex:1;min-width:0}.send{width:56px;height:56px;border:0;border-radius:50%;background:var(--g);color:#fff;font-size:22px;flex:none}
#toast{position:fixed;left:20px;right:20px;bottom:82px;height:48px;line-height:48px;padding:0 18px;background:#1c1c1c;color:#fff;border-radius:14px;display:none;z-index:30;text-align:center}
/* settings (owner only) */
.card{background:var(--t-panel);border-radius:18px;padding:14px 16px;margin:12px 0}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.grow{flex:1;min-width:0}
h2{font-size:17px;margin:6px 0}
.muted{color:var(--mut);font-size:13px}.err{color:var(--red)}
button.b{font:inherit;font-weight:700;min-height:52px;padding:0 18px;border:0;border-radius:16px;background:var(--g);color:#fff}button.b.alt{background:var(--soft);color:var(--g)}button.b.red{background:var(--red)}
.chip{font-size:13px;padding:3px 10px;border-radius:99px;background:#ddd;white-space:nowrap}.chip.confirmed{background:var(--soft)}.chip.unsure{background:#FBEEDB}.chip.reported{background:#d6e4ff}.chip.none{background:#FBEEDB}
.mag{cursor:pointer}.sbox{position:relative;margin:12px 0}.sbox .search{margin:0;padding-left:46px}.mag{position:absolute;left:16px;top:15px;color:var(--mut)}
.sec.split{display:flex;justify-content:space-between;align-items:center}.textlink.small{margin:0;min-height:44px;font-size:15px}
.right{max-width:55%;display:block;overflow:visible;white-space:normal;overflow-wrap:anywhere}
.irow .grow input{border:1.5px solid #1f6f43;border-radius:8px;padding:6px 8px;font:inherit;width:100%;box-sizing:border-box;background:var(--t-panel)}

.big.ghost{height:52px;min-height:52px;border-radius:16px;color:#1f6f43;font-size:16px;font-weight:700}
.right.wh{font-size:13px;color:var(--mut);text-align:right}
.sbox .search{padding-left:52px}.mag{left:18px;top:16px;color:var(--mut)}
.empty2{display:flex;flex-direction:column;align-items:center;gap:12px;padding:40px 20px;text-align:center;color:var(--mut)}.empty2 b{color:#1C1C1C;font-size:17px}.empty2 span{font-size:16px}
.pill{height:56px;min-height:56px;padding:0 28px;border:0;border-radius:28px;background:var(--t-panel);color:#1f6f43;font:inherit;font-weight:700;font-size:16px}
.welcome{background:var(--soft);color:#1f6f43;border-radius:12px;min-height:56px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:600;margin:12px 0;padding:0 16px}
.pl{color:var(--mut);font-size:15px;text-align:center;padding:10px 0}.pl.errcard{background:var(--t-panel);border-radius:16px;padding:16px 20px;text-align:left;color:#1C1C1C;font-size:17px;margin:12px 0}.errcard .sub{margin-top:6px}
body.plain header,body.plain nav{display:none}.used{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:24px;background:var(--bg)}.used h1{font-size:22px;margin:0}.used p{color:var(--mut);margin:0}.used a{color:#1f6f43}
#main.settings .sh{margin:24px 0 8px;font-size:15px;color:var(--mut);font-weight:700}
.scard{background:var(--t-panel);border-radius:18px;padding:12px 20px;margin:0 0 4px;box-shadow:none}
.scard input,.scard select{display:block;width:100%;box-sizing:border-box;margin:8px 0;min-height:48px;border:1.5px solid var(--t-line);border-radius:12px;padding:0 12px;font:inherit;background:var(--t-panel)}
.sbtn{display:block;width:100%;min-height:52px;border:0;border-radius:14px;background:#ece7db;color:#1C1C1C;font:inherit;font-weight:700;font-size:16px;margin:8px 0}
.mrow{display:flex;align-items:center;gap:10px;min-height:52px;border-bottom:1px solid var(--t-line)}.mn{font-size:17px;font-weight:700}.mr{margin-left:auto;font-size:13px;color:var(--mut)}
.invrow{display:block;width:100%;min-height:56px;border:0;background:none;color:#1f6f43;font:inherit;font-weight:700;font-size:17px}
.snote{font-size:13px;color:var(--mut);margin:6px 4px 16px}
.srow{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:54px;border:0;border-radius:18px;background:var(--t-panel);font:inherit;font-weight:700;font-size:17px;padding:0 20px;margin:0 0 12px;color:#1C1C1C}
#toast{left:50%;right:auto;transform:translateX(-50%);padding:12px 28px;border-radius:24px;white-space:normal;height:auto;min-height:48px;line-height:1.35;box-sizing:border-box;width:max-content;max-width:calc(100% - 40px);overflow-wrap:anywhere}   /* message text wraps to two lines instead of clipping with an ellipsis; unbroken names break anywhere */
#toast:has(.tundo){white-space:normal;height:auto;min-height:48px;line-height:44px;padding:4px 20px;width:max-content;max-width:calc(100% - 40px)}
#toast:has(.tundo)>span{display:block;line-height:1.4;padding:8px 0 0}   /* an offline toast carries the message and the retry button on their own lines when one line cannot hold both */
.lb{background:#1c1c1c;flex-direction:column;padding:0}.lbin{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:72px 16px 32px;box-sizing:border-box}.lb img{max-width:100%;max-height:70%;object-fit:contain;border-radius:12px}
.lbx{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:22px;border:2px solid #fff;background:none;color:#fff;font-size:22px;line-height:1;z-index:2}.lbn{color:#fff;font-size:22px;font-weight:700;margin-top:18px}.lbs{color:#cfcabd;font-size:15px;margin-top:4px}
.modal{position:fixed;inset:0;background:#1c1c1c99;z-index:40;display:flex;align-items:center;justify-content:center;padding:24px}
.mbox{background:var(--t-panel);border-radius:20px;width:100%;max-width:340px;overflow:hidden;text-align:center}.mq{padding:24px 16px;font-size:17px;font-weight:700}
.mbox button{display:block;width:100%;min-height:52px;border:0;border-top:1px solid var(--t-line);background:none;font:inherit;font-size:17px}.mok{color:var(--red);font-weight:700}
header{position:relative}.back{background:none;border:0;padding:0;margin:0;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer}body[data-tab=status] #gear{display:none}
.strow{display:flex;justify-content:space-between;align-items:center;min-height:56px;border-bottom:1px solid var(--t-line)}.strow:last-child{border-bottom:0}.sk{font-size:17px;font-weight:700}.sv{font-size:16px;color:var(--mut);display:flex;align-items:center;gap:8px}.sv.okc{color:#1f6f43}.dot{width:12px;height:12px;border-radius:6px;background:#1f6f43;display:inline-block}.snote.c{text-align:center}
.pwf.bad,.scard input.bad{border-color:var(--red)}.perr{color:var(--red);font-size:13px;min-height:0;margin:2px 4px}
.sbtn.green{background:#1f6f43;color:#fff;min-height:56px;border-radius:28px}
.linkcard{background:var(--bg);border-radius:14px;padding:16px;text-align:center;margin:8px 0}.lk{font-weight:700;word-break:break-all;margin-bottom:6px}

.lockcard{text-align:center;padding:40px 20px 0}.lockcard h2{font-size:22px;margin:0 0 6px}.lockcard input{display:block;width:100%;box-sizing:border-box;min-height:56px;margin:12px 0;border:1.5px solid var(--t-line);border-radius:14px;padding:0 16px;font:inherit;font-size:17px;background:var(--t-panel);text-align:center}.lockcard input.bad{border-color:var(--red)}
.lockcard .lerr{color:var(--red);min-height:20px;margin:4px 0 12px;font-size:15px}.lockcard .b{width:100%;min-height:58px;border-radius:29px}.lockcard .small{font-size:13px;margin-top:16px}
.tagrow{margin-top:4px}
.irow.plain{padding-top:10px;padding-bottom:10px}
.irow .grow input.ed{border:0;border-bottom:2px solid #1f6f43;border-radius:0;padding:4px 0;font:inherit;font-weight:800;font-size:inherit;background:transparent;outline:0}
.savelink{background:none;border:0;color:#1f6f43;font:inherit;font-weight:700;min-height:48px;padding:0 8px}
.irow:active{background:#F1EDE3}.big:active,.sticky .big:active{opacity:.88}.textlink:active,.savelink:active,.x:active{opacity:.7}
:focus-visible{outline:2px solid #1f6f43;outline-offset:2px}
.irow,.big,.textlink,.savelink,nav button,.x,.pill,.strip{transition:background .12s,opacity .12s}
.sec.maybe{color:#8a6a00}.tag.soft{background:#ece8dc;color:#5d594f;margin-left:6px}.tagrow{display:flex;flex-wrap:wrap;gap:6px}.tag.soft{margin-left:0}
.irow:has(input.ed) .tag{display:none}.irow .grow input.ed{min-width:0}
.grow{min-width:0}.irow .grow>.nm{display:block;overflow-wrap:anywhere}   /* item names wrap in full; never ellipsized */
.bub.card.wide{width:100%;max-width:100%}.bub .tagrow{margin-top:4px}
.dayline{display:flex;align-items:center;gap:16px;margin:16px 0 4px;color:#6B665B;font-size:11px;font-weight:700}.dayline:before,.dayline:after{content:"";flex:1;height:1px;background:var(--t-line)}   /* C5 */
.stamp{font-size:12px;color:var(--mut);margin:4px 4px 0}.stamp.me{text-align:right}
.mstate{display:flex;align-items:center;gap:10px;margin:8px 0}.tag.ok{background:#dcefe2;color:#1f6f43}.mdishes{font-size:17px;font-weight:700;margin:14px 4px 4px}
.pill{font-size:13px;font-weight:700;padding:5px 12px;border-radius:99px;white-space:nowrap}
.pill.hai{background:#dcefe2;color:#1f6f43}.pill.maybe{background:#eceae2;color:#6b675f}.pill.missing{background:#FBEEDB;color:#865B00}
.rc .sec{margin-top:2px}.sec.warn{color:#8a6d00}

.gh{display:flex;justify-content:space-between;align-items:baseline;margin:4px 2px 10px}.gh b{font-size:17px}.gh .muted{font-size:12px;color:var(--mut);text-align:right}   /* C1 */
.who{font-size:13px;color:var(--mut);margin:10px 4px 2px}.aitag{color:#8a6d00;font-size:11px;font-weight:800;letter-spacing:.4px}
.sumcard{background:var(--t-panel);border-radius:18px;padding:12px 16px;margin:8px 0;box-shadow:0 1px 0 #eee8dc}
.sumhead{display:flex;align-items:center;gap:10px}.sumhead b{font-size:17px;flex:0 1 auto}.sumhead .aitag{flex:1}
.chev{margin-left:auto;width:48px;height:48px;border:0;background:none;color:var(--mut);font-size:22px}
.sumbody{margin-top:6px;font-size:15px;overflow-wrap:anywhere}   /* FINDING-1 (#320): 40-char unbroken names in the pinned summary wrap instead of forcing page hscroll */
.upcard{background:var(--t-panel);border-left:3px solid #E0A800;border-radius:14px;padding:12px 16px;margin:4px 0;display:flex;flex-direction:column;gap:4px}   /* C3: amber 3px bar */
.upcard b{font-size:15px}
.upcard .muted{font-size:12px;color:var(--mut)}
.undo{align-self:flex-end;min-height:44px;min-width:64px;border:0;border-radius:12px;background:var(--soft);color:var(--g);font:inherit;font-weight:700}
.bdg{display:inline-block;width:10px;height:10px;border-radius:99px;background:var(--red);margin-left:5px;vertical-align:middle}
.bdg.hidden{display:none}

.drafthd { padding: var(--t-gap, 8px) 4px; }
.drafthd-t { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.drafthd .muted { font-size: 13px; }
button:active:not(:disabled){transform:scale(.97);opacity:.85}body.netbusy::before{content:"";position:fixed;top:0;left:0;right:0;height:3px;z-index:50;background:repeating-linear-gradient(90deg,var(--t-app) 0 24px,var(--t-ok-soft) 24px 48px);background-size:48px 3px;animation:netbar .8s linear infinite}@keyframes netbar{from{background-position:0 0}to{background-position:48px 0}}
.cr-row:active,.srow:active,.sbtn:active,.chipb:active,.chip:active,#nav button:active,.cc-btn:active,.cc-lvl:active,.wc-seg:active,.cp-btn:active,.ln-segb:active,.tlink:active{opacity:.7;transform:scale(.98)}

/* #16: a button whose call is pending shows a spinner after its label and ignores taps; the label stays */
button[aria-busy=true]{pointer-events:none;opacity:.8}button[aria-busy=true]::after{content:"";display:inline-block;width:14px;height:14px;margin-left:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:kbspin .8s linear infinite}@keyframes kbspin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){button[aria-busy=true]::after{animation-duration:2.4s}}
/* declutter alignment pass (measured findings): one page margin 12, one control height 48, chat right edge */
.phbtn{display:flex;align-items:center;justify-content:center;gap:8px}
.phbtn .ic{display:inline-flex}
.chatbar{padding:10px 12px}
body[data-tab=chat] .chipb{white-space:normal;text-overflow:clip;height:auto}
.rights-sp{height:150px}
.phbtn{border:1.5px solid var(--t-good);border-radius:14px;background:var(--t-panel);color:var(--t-good);font-family:inherit;font-style:normal;font-weight:600;font-size:16px;min-height:48px}
body.sketch .big.sec.phbtn{background:var(--t-panel);box-shadow:inset 0 0 0 1.5px var(--t-good);border:0;border-radius:14px;color:var(--t-good);font-family:inherit;font-style:normal;font-weight:600;font-size:16px;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:12px 0;cursor:pointer}
body.sketch .phbtn .ic{display:inline-flex}
.chat-empty{font-size:14px;color:var(--mut);margin-top:8px}   /* Neha #255: chat empty state - 14px grey; sketch main pads var(--t-s3)=12 so the text sits at x=12 (Kabir spec); classic keeps its own 16px grid */

/* item 9: Neha #299 week counter line under the title; #278 slot-sheet Requests block (Extras heading shares the family, F-ADV-7) */
.wk-count{font-size:12px;color:var(--mut);margin:0 0 5px}
.rqh{font-size:13px;font-weight:600;color:var(--mut);margin:14px 0 4px}
.rqrow{padding:12px 0;border-top:1px solid var(--hairline)}   /* Kabir pixel pass: 1px rgb(228,222,208) divider under the heading and between rows */
.rqt{font-size:17px;font-weight:400;color:var(--ink);overflow-wrap:anywhere}   /* F-ADV-9 family: 40-char unbroken request names wrap in the sheet row */
.rqs{font-size:12px;color:var(--mut);margin-top:2px;overflow-wrap:anywhere;word-break:break-word}   /* request sub line wraps long unbroken item names, same pattern as the chat card text */
.rqbt{display:flex;gap:8px;margin-top:8px}
.rqb{flex:1 1 0;height:44px;border-radius:12px;font:inherit;font-size:14px;cursor:pointer}
.rqb.no{background:var(--bg);color:var(--ink);border:1px solid rgb(120,115,105);font-weight:400}   /* Kabir #318/#319: flat cream fill, 1px grey rgb(120,115,105) outline (no token yet - flag for Rajbir) */
.rqb.yes{background:var(--accent_soft);color:var(--accent);border:1px solid var(--accent);font-weight:700}
/* AUTH-1 pending signups in the members card */
.pendbox{margin-top:8px;border-top:1px dashed var(--t-line);padding-top:8px}
.pendhd{margin-bottom:6px}
.prow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 0;border-top:1px solid var(--t-line)}
.prow:first-of-type{border-top:0}
.prow .grow{flex:1 1 100%;min-width:0}   /* name+time+warning take the full row; picker and buttons sit on the next line at phone width */
.prow .pat{display:block;font-size:11px}
.prow .pemail{overflow-wrap:anywhere;font-size:13px}   /* long addresses wrap inside the row, never widen the card */
.prow select{min-height:44px;font:inherit}
.prow .sbtn{min-height:44px;width:auto;padding:0 14px;margin:0;font-size:14px}
.bdgn{display:inline-block;background:var(--red);color:#fff;border-radius:99px;padding:1px 8px;font-size:11px;margin-left:6px;vertical-align:middle}
.codescene{padding:10px 0;text-align:center}
.setcode{display:block;font-size:28px;letter-spacing:4px;margin:8px 0;font-variant-numeric:tabular-nums}
.codescene .sbtn{margin:4px}
.sbtn.rei{min-height:36px;font-size:12px}

/* Preferences screen: compact rows, 44px taps, long names wrap instead of overflowing; stored text is shown as stored (no text-transform) */
.prefs { padding: 0 16px 24px; }
.prefs .pfrow, .prefs .pfopt, .prefs .pfadd { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line, #e5e5e5); text-align: left; font: inherit; color: inherit; }
.prefs .pfl { flex: none; font-weight: 600; }
.prefs .pfv, .prefs .pfs { min-width: 0; flex: 1; text-align: right; overflow-wrap: anywhere; opacity: .8; }
.prefs .pfrow.mem .pfs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prefs .pfrow.port { flex-wrap: wrap; }
.prefs .pfrow.port .pfs { flex-basis: 100%; text-align: left; }
.prefs .pfsec { margin-top: 16px; }
.prefs .pfh { font-weight: 600; padding: 8px 0; }
.prefs .pfempty { margin: 0; padding: 8px 0; opacity: .7; }
.prefs .pfitem { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--line, #e5e5e5); }
.prefs .pfname { min-width: 0; overflow-wrap: anywhere; }
.prefs .pfx { flex: none; min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 20px; color: inherit; }
.prefs .pfconf, .prefs .pfform { padding: 8px 0; }
.prefs .pfconf p { margin: 0 0 4px; overflow-wrap: anywhere; }
.prefs .pfbtns, .prefs .pfform { display: flex; gap: 8px; flex-wrap: wrap; }
.prefs .pfbtns button, .prefs .pfform button { min-height: 44px; padding: 0 14px; }
.prefs .pfin { flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; }

/* Master-list picker: one-line rows, 44px taps, nothing overflows at 320; the search field stays pinned while the list scrolls */
.ml { padding: 0 16px 96px; }   /* bottom room so the sticky save bar never covers the last row */
.ml [hidden] { display: none !important; }
.ml .mlintro { margin: 8px 0; opacity: .8; overflow-wrap: anywhere; }
.ml .mlsearch { position: sticky; top: 0; z-index: 2; width: 100%; box-sizing: border-box; min-height: 44px; margin-bottom: 8px; background: var(--bg, #fff); }
.ml .mlch { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 8px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line, #e5e5e5); font: inherit; color: inherit; text-align: left; }
.ml .mlcn { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ml .mlcc, .ml .mlchev { flex: none; opacity: .7; }
.ml .mlrow { border-bottom: 1px solid var(--line, #e5e5e5); }
.ml .mlpick { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.ml .mlpick input { flex: none; width: 22px; height: 22px; }
.ml .mlnm { min-width: 0; overflow-wrap: anywhere; }
.ml .mlqw { padding: 0 0 8px 34px; min-width: 0; }
.ml .mlqty { display: flex; gap: 8px; min-width: 0; }
.ml .mlbad { margin: 4px 0 0; font-size: 13px; color: #b3261e; overflow-wrap: anywhere; }
.ml .mlq.bad { border-color: #b3261e; }
.ml .mlq { flex: 1 1 80px; width: auto; min-width: 60px; min-height: 44px; box-sizing: border-box; }
.ml .mlu { flex: 0 1 120px; width: auto; min-width: 0; max-width: 55%; min-height: 44px; box-sizing: border-box; }
.ml .mladd { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 8px 0; background: none; border: 0; font: inherit; font-weight: 600; text-align: left; color: var(--accent, inherit); text-decoration: underline; }
.ml .mlform { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.ml .mlname { flex: 1 1 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.ml .mlform button { min-height: 44px; padding: 0 14px; }
.ml .mlnone { margin: 12px 0 0; overflow-wrap: anywhere; }
.ml .mlphoto { display: flex; width: 100%; min-height: 44px; align-items: center; margin-top: 16px; padding: 8px 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; text-decoration: underline; }
.ml .mlerr { padding: 16px 0; }
.mlbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mlbar .mlsave { min-height: 44px; }
.mlbar .mlcount { flex: none; white-space: nowrap; }   /* the count never wraps, even at 320 */
.ml .mlrow.locked input { opacity: .5; }   /* grey box = already in stock: ticked and locked, never sent; a blue box is a live pick */
