/* Deli Smalls back office, Beta C: Market Day. Phone first. */
:root{
  --teal:#009D8E; --teal-ink:#006F64; --teal-soft:#D5EEEA; --teal-deep:#00594F;
  --mustard:#E9A825; --mustard-dk:#C98B10; --mustard-soft:#FBEBC6;
  --cream:#F3F1E8; --cream-2:#EAE6D7; --ink:#020202; --ink-2:#2E2C27; --muted:#5E5A4E;
  --white:#fff; --line:rgba(2,2,2,.12); --line-2:rgba(2,2,2,.07);
  --red:#B4372B; --red-soft:#F8DCD7; --green:#2F7D3A; --green-soft:#DCEFDD;
  --card:#fff; --shadow:0 1px 2px rgba(2,2,2,.06),0 6px 22px rgba(2,2,2,.07);
  --radius:18px; --tab-h:68px;
  --display:'Archivo Black',Impact,sans-serif; --body:'Space Grotesk',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--cream);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3{font-family:var(--display);font-weight:400;letter-spacing:.2px;margin:0;line-height:1.1}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
:focus-visible{outline:3px solid var(--mustard);outline-offset:2px;border-radius:6px}

/* ---------- sign in ---------- */
.signin{min-height:100vh;display:grid;grid-template-rows:auto auto auto;align-content:start;background:var(--cream)}
.signin-band{background:var(--teal);padding:36px 16px 90px;text-align:center;position:relative;overflow:hidden}
.signin-band::after{content:"";position:absolute;inset:auto -10% -60px -10%;height:120px;background:var(--cream);border-radius:50% 50% 0 0}
/* the logo is square with text arcs in its corners, so the circle sits on a wrapper big enough to hold all of it */
.signin-mark{width:156px;height:156px;margin:0 auto;border-radius:50%;background:var(--cream);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(0,0,0,.18);position:relative;z-index:1}
.signin-mark img{width:104px;height:120px;object-fit:contain}
.signin-shop{width:min(420px,calc(100% - 32px));margin:0 auto 32px;border-radius:20px;overflow:hidden;position:relative;box-shadow:var(--shadow)}
.signin-shop img{width:100%;height:150px;object-fit:cover;object-position:50% 60%}
.signin-shop span{position:absolute;left:12px;bottom:10px;background:rgba(2,2,2,.72);color:var(--cream);font-size:12px;font-weight:700;padding:4px 10px;border-radius:99px}
.signin-card{align-self:start;width:min(420px,calc(100% - 32px));margin:-70px auto 20px;background:#fff;border-radius:24px;box-shadow:var(--shadow);padding:26px 22px;position:relative;z-index:2}
.signin-card h1{font-size:26px;margin-bottom:6px}
.signin-card p{margin:0 0 18px;color:var(--muted)}
.code-row{display:flex;gap:8px;justify-content:space-between;margin:6px 0 14px}
.code-row input{width:100%;height:54px;text-align:center;font-size:22px;font-weight:700;border:2px solid var(--line);border-radius:12px;background:var(--cream)}
.signin-foot{text-align:center;font-size:13px;color:var(--muted);margin-top:14px}

/* ---------- shell ---------- */
.topbar{background:var(--teal);color:var(--ink);position:sticky;top:0;z-index:30}
.topbar-in{max-width:1320px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:10px 16px}
.brand{display:flex;align-items:center;gap:10px;min-width:0;background:none;border:0;padding:0}
.brand-mark{width:44px;height:44px;border-radius:50%;background:var(--cream);display:flex;align-items:center;justify-content:center;flex:none}
.brand-mark img{width:30px;height:34px;object-fit:contain}
.brand b{font-family:var(--display);font-size:17px;white-space:nowrap}
.brand small{display:block;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;opacity:.8}
.beta-badge{font-size:11px;font-weight:700;background:var(--cream);color:var(--ink);border-radius:99px;padding:3px 9px;white-space:nowrap}
.topnav{display:none;gap:4px;margin-left:auto}
.topnav button{background:none;border:0;padding:9px 14px;border-radius:99px;font-weight:700;color:var(--ink)}
.topnav button[aria-current="page"]{background:var(--ink);color:var(--cream)}
.topnav button:hover:not([aria-current="page"]){background:rgba(2,2,2,.1)}
.top-actions{display:flex;gap:8px;margin-left:auto;align-items:center}
.avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid var(--cream);background:var(--cream);padding:0}
.avatar-btn{border:0;background:none;padding:0;border-radius:50%}
.mm-pill{display:inline-flex;align-items:center;gap:6px;background:var(--mustard);border:2px solid var(--ink);color:var(--ink);font-weight:700;border-radius:99px;padding:7px 12px;white-space:nowrap}
.mm-pill svg{width:16px;height:16px}

.wrap{max-width:1320px;margin:0 auto;padding:18px 16px calc(var(--tab-h) + 30px)}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:4px 0 16px;flex-wrap:wrap}
.page-head h1{font-size:28px}
.page-head p{margin:4px 0 0;color:var(--muted)}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--teal-ink)}

.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--ink);display:grid;grid-template-columns:repeat(5,1fr);height:var(--tab-h);padding-bottom:env(safe-area-inset-bottom)}
.tabbar button{background:none;border:0;color:#CFCBBE;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11.5px;font-weight:700;letter-spacing:.2px}
.tabbar svg{width:24px;height:24px}
.tabbar button[aria-current="page"]{color:var(--mustard)}
.tabbar button[aria-current="page"] .tab-dot{opacity:1}
.tab-dot{width:5px;height:5px;border-radius:50%;background:var(--mustard);opacity:0}

/* ---------- building blocks ---------- */
.grid2{display:grid;gap:16px}
.grid3{display:grid;gap:12px;grid-template-columns:repeat(2,1fr)}
.stack{display:grid;gap:16px;align-content:start}
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;min-width:0}
.card h2{font-size:18px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.card-head .link{font-weight:700;color:var(--teal-ink);background:none;border:0;padding:6px 0}
.card.teal{background:var(--teal);color:var(--ink)}
.card.ink{background:var(--ink);color:var(--cream)}
.card.ink .muted{color:#BDB8A8}
.card.mustard{background:var(--mustard)}
.muted{color:var(--muted)}
.small{font-size:13px}
.tiny{font-size:12px}
.num{font-variant-numeric:tabular-nums}
.big-num{font-family:var(--display);font-size:38px;line-height:1}
.row{display:flex;align-items:center;gap:10px}
.row.between{justify-content:space-between}
.wrapgap{display:flex;flex-wrap:wrap;gap:8px}
hr.sep{border:0;border-top:1px solid var(--line);margin:14px 0}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 18px;border-radius:14px;border:2px solid var(--ink);background:var(--mustard);color:var(--ink);font-weight:700;text-decoration:none;white-space:nowrap}
.btn:hover{background:#F0B43A}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:transparent}
.btn.ghost:hover{background:rgba(2,2,2,.05)}
.btn.dark{background:var(--ink);color:var(--cream)}
.btn.white{background:#fff}
.btn.teal{background:var(--teal)}
.btn.sm{min-height:36px;padding:6px 12px;border-radius:10px;font-size:14px}
.btn.block{width:100%}
.btn svg{width:18px;height:18px}
.icon-btn{width:40px;height:40px;border-radius:12px;border:1.5px solid var(--line);background:#fff;display:inline-flex;align-items:center;justify-content:center}
.icon-btn svg{width:18px;height:18px}

.seg{display:flex;background:var(--cream-2);border-radius:14px;padding:4px;gap:4px;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg button{flex:1;border:0;background:none;border-radius:10px;padding:9px 12px;font-weight:700;white-space:nowrap;color:var(--ink-2)}
.seg button[aria-pressed="true"]{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.12);color:var(--ink)}

.chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:3px 9px;border-radius:99px;background:var(--cream-2);color:var(--ink-2);white-space:nowrap}
.chip.teal{background:var(--teal-soft);color:var(--teal-deep)}
.chip.mustard{background:var(--mustard-soft);color:#6B4A00}
.chip.red{background:var(--red-soft);color:#8A2419}
.chip.green{background:var(--green-soft);color:#1F5A28}
.chip.ink{background:var(--ink);color:var(--cream)}

.field{display:grid;gap:6px;margin-bottom:12px}
.field label,.lbl{font-size:13px;font-weight:700;color:var(--ink-2)}
.input,select.input,textarea.input{width:100%;min-height:46px;border:2px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff}
textarea.input{min-height:96px;resize:vertical;line-height:1.45}
.input:focus{border-color:var(--teal);outline:none}
.fields2{display:grid;gap:0 12px;grid-template-columns:1fr 1fr}

.list{list-style:none;margin:0;padding:0}
.li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.li:last-child{border-bottom:0}
.li .grow{flex:1;min-width:0}
.li .title{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li .sub{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li-btn{width:100%;text-align:left;background:none;border:0;padding:0}
.thumb{width:46px;height:46px;border-radius:12px;background:var(--cream);object-fit:contain;flex:none}
.dot{width:10px;height:10px;border-radius:50%;flex:none}
.check{width:28px;height:28px;border-radius:9px;border:2px solid var(--ink);background:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none}
.check svg{width:16px;height:16px;opacity:0}
.check[aria-checked="true"]{background:var(--teal)}
.check[aria-checked="true"] svg{opacity:1}

.progress{height:10px;border-radius:99px;background:var(--cream-2);overflow:hidden}
.progress span{display:block;height:100%;background:var(--teal);border-radius:99px}
.card.ink .progress{background:#3a3833}
.card.ink .progress span{background:var(--mustard)}

.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);padding:8px 6px;border-bottom:1.5px solid var(--line)}
.table td{padding:10px 6px;border-bottom:1px solid var(--line-2);vertical-align:middle}
.table td.r,.table th.r{text-align:right}
.table-wrap{overflow-x:auto;margin:0 -4px;padding:0 4px}

.empty{padding:22px;text-align:center;color:var(--muted);border:2px dashed var(--line);border-radius:14px}

/* ---------- today ---------- */
.hello{background:var(--teal);border-radius:24px;padding:20px;position:relative;overflow:hidden;color:var(--ink)}
.hello h1{font-size:28px}
.hello p{margin:6px 0 0;font-weight:500}
.hello .crown{position:absolute;right:-30px;bottom:-40px;width:130px;opacity:.14}
.hello p{position:relative;max-width:640px}
.kpi{display:grid;gap:4px}
.kpi .lbl{color:var(--muted);font-size:12.5px;text-transform:uppercase;letter-spacing:.5px}
.delta{font-weight:700;font-size:13px}
.delta.up{color:var(--green)}
.delta.down{color:var(--red)}
.delta.flat{color:var(--muted)}
.card.ink .delta.up{color:#7DDB8A}
.card.ink .delta.down{color:#FF9C8F}
.card.ink .delta.flat{color:#BDB8A8}

/* ---------- markets ---------- */
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal .dow{font-size:11px;font-weight:700;text-transform:uppercase;color:var(--muted);text-align:center;padding:4px 0}
.cal .day{min-height:64px;background:#fff;border-radius:10px;padding:5px;border:1.5px solid transparent;text-align:left;display:flex;flex-direction:column;gap:3px;min-width:0}
.cal .day.other{background:transparent;color:#6E6A5A}
.cal .day.today{border-color:var(--ink)}
.cal .day .n{font-size:12px;font-weight:700}
.cal .ev{font-size:10.5px;font-weight:700;border-radius:6px;padding:2px 4px;white-space:normal;line-height:1.15;overflow:hidden;background:var(--teal-soft);color:var(--teal-deep);border:0;text-align:left;width:100%}
.cal .ev.event{background:var(--mustard-soft);color:#6B4A00}
/* past and skipped chips: grey with dark text, not faded, so they stay readable */
.cal .ev.past,.cal .ev.skipped{background:var(--cream-2);color:#47443A}
.cal .ev.skipped .hide-phone{text-decoration:line-through}
.cal .icon-btn[disabled]{opacity:.35;cursor:default}
.mkt-card{display:flex;gap:14px;align-items:stretch;padding:14px;background:#fff;border-radius:16px;box-shadow:var(--shadow);border:0;width:100%;text-align:left}
.datebox{width:58px;flex:none;border-radius:12px;background:var(--teal);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 0}
.datebox.event{background:var(--mustard)}
.datebox.past{background:var(--cream-2)}
.datebox b{font-family:var(--display);font-size:22px;line-height:1}
.datebox span{font-size:11px;font-weight:700;text-transform:uppercase}
.steps{display:flex;gap:6px}
.steps button{flex:1;border:2px solid var(--line);background:#fff;border-radius:12px;padding:10px 6px;font-weight:700;font-size:13px}
.steps button.on{background:var(--teal);border-color:var(--ink)}
.qty{display:inline-flex;align-items:center;border:2px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.qty button{width:36px;height:36px;border:0;background:var(--cream);font-weight:700;font-size:18px}
.qty span{min-width:40px;text-align:center;font-weight:700}

/* ---------- leads ---------- */
.kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:12px;overflow-x:auto;padding-bottom:10px}
.col{background:var(--cream-2);border-radius:16px;padding:10px;min-height:200px;display:flex;flex-direction:column;gap:8px}
.col.drop{outline:3px dashed var(--teal);outline-offset:-3px}
.col-h{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 6px;font-weight:700}
.lead{background:#fff;border-radius:12px;padding:10px 12px;box-shadow:0 1px 3px rgba(0,0,0,.08);cursor:grab;border:0;text-align:left;width:100%}
.lead .li-btn{cursor:grab;border-radius:8px}
.lead .lead-foot .btn{cursor:pointer}
.lead:active{cursor:grabbing}
.lead .title{font-weight:700}
.lead .sub{font-size:12.5px;color:var(--muted)}
.lead.dragging{opacity:.4}
.lead-foot{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;align-items:center;margin-top:8px}
.stagebar{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:12px}
.stagebar::-webkit-scrollbar{display:none}
.stagebar button{border:2px solid var(--line);background:#fff;border-radius:99px;padding:7px 12px;font-weight:700;white-space:nowrap;font-size:13px}
.stagebar button[aria-pressed="true"]{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.timeline{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--cream-2)}
.timeline li{position:relative;padding:0 0 14px 6px}
.timeline li::before{content:"";position:absolute;left:-25px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--teal);border:2px solid #fff}
.timeline li.k-call::before{background:var(--mustard)}
.timeline li.k-sample::before{background:var(--ink)}
.preview-mail{background:var(--cream);border-radius:14px;padding:16px;white-space:pre-wrap;line-height:1.55;font-size:14px;border:1.5px solid var(--line)}
.merge{background:var(--mustard-soft);border-radius:4px;padding:0 1px;font-weight:700}

/* ---------- money ---------- */
.chart{width:100%;height:auto;display:block}
.legend{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:13px;font-weight:600}
.legend i{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:6px;vertical-align:-1px}
.bars-h .bar-row{display:grid;grid-template-columns:120px 1fr 74px;gap:10px;align-items:center;padding:6px 0;font-size:14px}
.bars-h .track{height:14px;background:var(--cream-2);border-radius:99px;overflow:hidden}
.bars-h .track span{display:block;height:100%;border-radius:99px}
.inv-paper{background:#fff;border-radius:6px;box-shadow:0 2px 14px rgba(0,0,0,.12);padding:26px;font-size:14px;color:var(--ink)}
.inv-paper h3{font-size:24px}
.inv-top{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:3px solid var(--teal);padding-bottom:14px;margin-bottom:14px}

/* ---------- site editor ---------- */
.edit-cards{display:grid;gap:12px}
.edit-card{display:flex;gap:14px;align-items:center;padding:16px;border-radius:16px;background:#fff;box-shadow:var(--shadow);border:2px solid transparent;width:100%;text-align:left}
.edit-card[aria-expanded="true"]{border-color:var(--teal)}
.edit-card .ic{width:46px;height:46px;border-radius:14px;background:var(--mustard-soft);display:flex;align-items:center;justify-content:center;flex:none}
.edit-card .ic svg{width:22px;height:22px}
.edit-panel{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:16px;margin-top:-6px;border:2px solid var(--teal);border-top:0;border-radius:0 0 16px 16px}
.phone{width:320px;max-width:100%;margin:0 auto;background:var(--ink);border-radius:42px;padding:12px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.phone-screen{background:var(--cream);border-radius:32px;overflow:hidden;height:620px;overflow-y:auto;position:relative;scrollbar-width:thin}
.phone-notch{width:110px;height:24px;background:var(--ink);border-radius:0 0 16px 16px;margin:0 auto;position:sticky;top:0;z-index:3}
.toggle{position:relative;width:52px;height:30px;border-radius:99px;background:#C9C4B4;border:0;flex:none;transition:background .15s}
.toggle::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.toggle[aria-checked="true"]{background:var(--teal-ink)}
.toggle[aria-checked="true"]::after{left:25px}
.pub-bar{position:sticky;bottom:calc(var(--tab-h) + 10px);z-index:20;background:var(--ink);color:var(--cream);border-radius:18px;padding:12px 14px;display:flex;align-items:center;gap:10px;margin-top:16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.pub-bar .grow{flex:1;min-width:0;font-size:13px}

/* mini public site (preview) */
.ms{font-family:var(--body);color:var(--ink);font-size:12px}
.ms-ann{background:var(--teal);text-align:center;font-weight:700;padding:7px 10px;font-size:11px}
.ms-nav{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--cream)}
.ms-nav img{width:38px}
.ms-nav span{font-size:10px;font-weight:700;letter-spacing:.4px}
.ms-hero{padding:16px 14px 6px;text-align:center}
.ms-hero h1{font-family:var(--display);font-size:27px;line-height:1.02;text-transform:uppercase}
.ms-hero p{margin:6px 0 10px;font-size:12px}
.ms-btn{display:inline-block;background:var(--mustard);font-weight:700;padding:8px 14px;border-radius:99px;font-size:11px;border:2px solid var(--ink)}
.ms-hero img{margin:10px auto 0}
.ms-band{background:var(--teal);padding:16px 14px}
.ms-band h2,.ms-sec h2{font-family:var(--display);font-size:17px;margin-bottom:6px;text-transform:uppercase}
.ms-sec{padding:16px 14px}
.ms-prods{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ms-prod{background:#fff;border-radius:10px;padding:6px;position:relative}
.ms-prod img{aspect-ratio:1;object-fit:contain;width:100%}
.ms-prod b{display:block;font-size:11px;line-height:1.2}
.ms-prod .tag{position:absolute;top:6px;left:6px;background:var(--ink);color:#fff;font-size:9px;font-weight:700;border-radius:99px;padding:2px 6px}
.ms-foot{background:var(--ink);color:var(--cream);padding:14px;font-size:11px}
.ms-hours{display:grid;grid-template-columns:auto 1fr;gap:2px 12px}

/* ---------- market mode ---------- */
.mm{position:fixed;inset:0;z-index:60;background:var(--ink);color:var(--cream);display:flex;flex-direction:column}
.mm-top{background:var(--teal);color:var(--ink);padding:10px 16px}
.mm-top-in{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:10px}
.mm-top h1{font-size:19px}
.mm-body{flex:1;overflow-y:auto;padding:14px 16px 110px}
.mm-in{max-width:1100px;margin:0 auto}
.mm .seg{background:#2A2824}
.mm .seg button{color:#CFCBBE}
.mm .seg button[aria-pressed="true"]{background:var(--mustard);color:var(--ink)}
.mm-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}
.mm-total{background:#1B1A17;border-radius:14px;padding:10px 12px}
.mm-total .lbl{color:#BDB8A8;font-size:11px;text-transform:uppercase;letter-spacing:.5px}
.mm-total b{display:block;font-family:var(--display);font-size:22px;color:#fff}
.tally{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.tile{position:relative;background:var(--cream);color:var(--ink);border:0;border-radius:18px;padding:12px 12px 12px;text-align:left;min-height:118px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;touch-action:manipulation}
.tile img{position:absolute;right:-8px;bottom:-8px;width:74px;height:74px;object-fit:contain;opacity:.95}
.tile .t-name{font-weight:700;font-size:15px;line-height:1.15;max-width:75%}
.tile .t-size{font-size:12.5px;color:var(--muted)}
.tile .t-price{font-family:var(--display);font-size:20px}
.tile .t-count{position:absolute;top:10px;right:10px;background:var(--ink);color:var(--mustard);font-weight:700;border-radius:99px;min-width:30px;height:30px;padding:0 8px;display:flex;align-items:center;justify-content:center;font-size:15px}
.tile.bump{animation:bump .25s}
@keyframes bump{50%{transform:scale(.96);background:var(--mustard)}}
.tile-minus{position:absolute;left:8px;bottom:8px}
/* takings and the Card/Cash switch stay on screen while Sam scrolls the product tiles */
.mm-sticky{position:sticky;top:-14px;z-index:2;background:var(--ink);margin:0 -16px;padding:14px 16px 2px;box-shadow:0 8px 12px -8px rgba(0,0,0,.6)}
.mm-sticky .mm-totals{margin:0 0 8px}
.pay-toggle{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.mm-warn,.nm-short{display:flex;gap:8px;align-items:flex-start;background:var(--mustard-soft);color:#3D2A00;border-radius:12px;padding:10px 12px;margin-top:12px}
.mm-warn svg,.nm-short svg{width:18px;height:18px;flex:none;margin-top:1px}
.short-chip{margin-top:4px}
.pay-toggle button{min-height:52px;border-radius:14px;border:2px solid #3a3833;background:#1B1A17;color:var(--cream);font-weight:700;font-size:16px}
.pay-toggle button[aria-pressed="true"]{background:var(--teal);color:var(--ink);border-color:var(--teal)}
.mm-list .li{border-color:#2f2d29}
.mm-list .sub{color:#BDB8A8}
.mm .check{border-color:var(--cream);background:transparent}
.mm .check[aria-checked="true"]{background:var(--mustard);border-color:var(--mustard)}
.mm-bottom{position:fixed;left:0;right:0;bottom:0;background:#141311;border-top:1px solid #2f2d29;padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
.mm-bottom-in{max-width:1100px;margin:0 auto;display:flex;gap:10px;align-items:center}
.mm .card{background:#1B1A17;color:var(--cream);box-shadow:none}
.mm .muted{color:#BDB8A8}
.mm .input{background:#24221E;border-color:#3a3833;color:var(--cream)}
.mm .btn.ghost{border-color:var(--cream);color:var(--cream)}

/* ---------- sheets, toast ---------- */
.scrim{position:fixed;inset:0;background:rgba(2,2,2,.45);z-index:80;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
.sheet{background:var(--cream);width:100%;max-height:92vh;border-radius:24px 24px 0 0;display:flex;flex-direction:column;animation:up .2s ease-out}
.sheet-h{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.sheet-h h2{font-size:20px;flex:1;min-width:0}
.sheet-b{padding:16px;overflow-y:auto}
.sheet-f{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.grab{width:44px;height:5px;border-radius:99px;background:#C9C4B4;margin:8px auto 0}
@keyframes up{from{transform:translateY(40px);opacity:.4}}
@keyframes fade{from{opacity:0}}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--tab-h) + 18px);z-index:120;background:var(--ink);color:var(--cream);padding:12px 18px;border-radius:14px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.3);display:flex;gap:10px;align-items:center;max-width:calc(100% - 32px);animation:up .2s}
.toast svg{width:18px;height:18px;color:var(--mustard);flex:none}
.hide-phone{display:none}
.show-phone{display:initial}

/* ---------- desktop ---------- */
@media (min-width:900px){
  .tabbar{display:none}
  .topnav{display:flex}
  .top-actions{margin-left:12px}
  .wrap{padding:26px 28px 60px}
  .page-head h1{font-size:34px}
  .grid2{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start}
  .grid2.even{grid-template-columns:1fr 1fr}
  .grid2.site{grid-template-columns:minmax(0,1fr) 380px}
  .grid3{grid-template-columns:repeat(4,1fr)}
  .cal .day{min-height:96px;padding:7px}
  .cal .ev{font-size:11.5px}
  .tally{grid-template-columns:repeat(3,1fr)}
  .scrim{align-items:center}
  .sheet{width:min(640px,calc(100% - 48px));border-radius:24px;max-height:86vh}
  .sheet.wide{width:min(860px,calc(100% - 48px))}
  .grab{display:none}
  .toast{bottom:28px}
  .pub-bar{bottom:16px}
  .hide-phone{display:initial}
  .show-phone{display:none}
  .hello{padding:28px}
  .hello h1{font-size:36px}
  .mm-bottom{position:static}
  .mm-body{padding-bottom:20px}
  .sticky-col{position:sticky;top:86px}
}
@media (min-width:1200px){
  .tally{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:899px){
  .phone-col{display:none}
  .phone-col.open{display:block}
}
@media (max-width:420px){
  .brand b{font-size:15px}
  .brand small{display:none}
  .fields2{grid-template-columns:1fr}
  .bars-h .bar-row{grid-template-columns:96px 1fr 64px;font-size:13px}
  .big-num{font-size:32px}
}
@media print{.topbar,.tabbar,.toast{display:none}}

/* fixes after first screenshot pass */
.edit-card > svg{width:22px;height:22px;flex:none}
.tile img,.thumb{mix-blend-mode:multiply}
.tile > span:first-of-type{padding-right:38px}
.tile .t-name{max-width:none}
.bars-h .bar-row{grid-template-columns:110px 1fr auto}
.bars-h .bar-row b{white-space:nowrap}

@media (max-width:899px){.cal{gap:3px}.cal .day{padding:4px 2px;min-height:58px}.cal .ev{font-size:9px;padding:2px 2px;text-align:center}}

/* review fixes, round 2 */
.ms-flash{animation:msflash 1.1s ease-out}
@keyframes msflash{0%,30%{box-shadow:inset 0 0 0 3px var(--mustard)}100%{box-shadow:inset 0 0 0 3px transparent}}
@media (max-width:899px){
  .cal .ev{font-size:11px;padding:2px 0;text-align:center;line-height:1.3}
  .cal .day.other .n{color:#6E6A5A}
  .mm-sticky .mm-total{padding:6px 10px}
  .mm-sticky .mm-total b{font-size:18px}
  .mm-sticky .pay-toggle{margin-bottom:8px}
  .mm-sticky .pay-toggle button{min-height:44px}
}
@media (min-width:900px){.signin-shop img{height:180px} }
