:root {
  --brand: #d81b7a;
  --brand-dark: #a3105a;
  --brand-soft: #f8d6df;
  --gold: #e88aa6;
  --bg: #fff5f7;
  --card: #fffdfd;
  --line: #f2d9e0;
  --text: #1d1418;
  --muted: #7d6b72;
  --ok: #3f7a4a;
  --ok-soft: #e1efe1;
  --warn: #a8691b;
  --warn-soft: #f8ead3;
  --bad: #a33d32;
  --bad-soft: #f6e0dc;
  --info: #3a5873;
  --info-soft: #e0e8f0;
  --radius: 18px;
  --serif: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --sans: 'Nunito', system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  background: #141014; color: #fff; border-bottom: 3px solid var(--brand);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.topbar-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; }
.topbar h1 { flex: 1; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-back {
  border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
  color: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 700;
}

main { max-width: 680px; margin: 0 auto; padding: 16px; }

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0;
}
.bottomnav a span { font-size: 20px; line-height: 1.2; filter: grayscale(1); opacity: .7; }
.bottomnav a.active { color: var(--brand); }
.bottomnav a.active span { filter: none; opacity: 1; }
.bottomnav .nav-add span {
  width: 54px; height: 54px; border-radius: 50%; margin-top: -26px;
  background: var(--brand); color: #fff; font-size: 30px; line-height: 54px; text-align: center;
  filter: none; opacity: 1; box-shadow: 0 4px 14px rgba(216,27,122,.35); border: 3px solid var(--bg);
}

/* ---------- Cards & layout ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(40,10,25,.05);
}
.card h2 { font-size: 17px; margin-bottom: 12px; color: var(--brand-dark); }
.card h2 small { font-family: var(--sans); font-weight: 600; color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; min-width: 0; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }

.hello { margin: 4px 2px 16px; }
.hello h2 { font-size: 24px; color: var(--brand-dark); }
.hello p { margin: 4px 0 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.stat b { display: block; font-size: 22px; font-family: var(--serif); color: var(--brand-dark); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat.hl { background: var(--brand); border-color: var(--brand); }
.stat.hl b, .stat.hl span { color: #fff; }

/* ---------- Forms ---------- */
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; outline: none; font-size: 16px;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 800; font-size: 15.5px;
  background: var(--brand); color: #fff; cursor: pointer; width: 100%;
}
.btn:active { transform: scale(.98); }
.btn.alt { background: var(--brand-soft); color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line); }
.btn.wa { background: #1f9e55; }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; width: auto; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns.one { grid-template-columns: 1fr; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: 14px; color: var(--muted);
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.seg { display: flex; background: var(--brand-soft); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 4px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--brand-dark); }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ---------- Order list ---------- */
.olist { display: flex; flex-direction: column; gap: 10px; }
.oitem {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.oitem .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.oitem .no { font-family: var(--serif); font-weight: 700; color: var(--brand-dark); }
.oitem .name { font-weight: 800; }
.oitem .meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.oitem .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.info { background: var(--info-soft); color: var(--info); }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty b { display: block; font-size: 40px; }

/* ---------- Order form items ---------- */
.lines { margin: 0 0 6px; }
.line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--line); align-items: flex-start; }
.line .d { flex: 1; min-width: 0; }
.line .d b { display: block; }
.line .d small { color: var(--muted); display: block; }
.line .p { font-weight: 800; white-space: nowrap; }
.line .x { border: 0; background: var(--bad-soft); color: var(--bad); width: 28px; height: 28px; border-radius: 8px; font-weight: 800; flex: none; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 6px; background: #fff; }
.qty button { border: 0; background: var(--brand-soft); width: 32px; height: 30px; font-weight: 800; }
.qty span { min-width: 34px; text-align: center; font-weight: 800; }

.totals .between { padding: 4px 0; }
.totals .grand { font-size: 20px; font-weight: 800; color: var(--brand-dark); border-top: 2px solid var(--line); margin-top: 6px; padding-top: 8px; }
.totals input { width: 110px; padding: 6px 10px; text-align: right; }

/* ---------- Stepper ---------- */
.stepper { display: flex; justify-content: space-between; position: relative; margin: 14px 0 6px; }
.stepper::before { content: ''; position: absolute; left: 12%; right: 12%; top: 18px; height: 3px; background: var(--line); }
.step { position: relative; flex: 1; text-align: center; border: 0; background: transparent; padding: 0; }
.step i {
  display: block; width: 38px; height: 38px; margin: 0 auto 4px; border-radius: 50%;
  background: var(--brand-soft); color: #fff; font-style: normal; font-weight: 800; line-height: 38px;
  border: 3px solid var(--card);
}
.step span { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.step.done i { background: var(--gold); }
.step.cur i { background: var(--brand); }
.step.cur span { color: var(--text); }
.status-line { font-weight: 800; color: var(--info); padding: 0 4px; }

.note {
  background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; display: flex; gap: 10px;
}

/* ---------- Invoice ---------- */
.inv-wrap { overflow-x: auto; margin: 0 -4px 14px; padding: 4px; }
.invoice {
  background: #fff; color: #1d1418; border-radius: 6px; padding: 26px 22px; max-width: 640px; margin: 0 auto;
  box-shadow: 0 2px 14px rgba(40,10,25,.12); position: relative; overflow: hidden; font-size: 14px;
}
.invoice::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: var(--brand); }
.inv-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.inv-head img { width: 76px; height: 76px; }
.inv-head .biz { flex: 1; }
.inv-head .biz b { font-family: var(--serif); font-size: 17px; color: var(--brand-dark); display: block; }
.inv-head .biz small { display: block; color: #6b5a60; font-size: 12px; line-height: 1.4; }
.inv-title { text-align: right; }
.inv-title h3 { font-size: 20px; letter-spacing: 2px; color: var(--brand); }
.inv-title small { display: block; color: #6b5a60; font-size: 12px; }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #fff1f4; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px; }
.inv-meta .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #86707a; text-transform: uppercase; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inv-table th { text-align: left; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: #86707a; border-bottom: 2px solid var(--brand); padding: 6px 4px; }
.inv-table td { padding: 8px 4px; border-bottom: 1px solid #f3e1e6; vertical-align: top; }
.inv-table td small { color: #7d6b72; display: block; }
.inv-table .r { text-align: right; white-space: nowrap; }
.inv-sum { margin-left: auto; width: 62%; min-width: 210px; margin-top: 10px; font-size: 13.5px; }
.inv-sum .between { padding: 3px 0; }
.inv-sum .grand { font-weight: 800; font-size: 16px; color: #fff; background: var(--brand); padding: 8px 10px; border-radius: 8px; margin: 6px 0; }
.inv-sum .bal { font-weight: 800; color: var(--bad); }
.inv-pay { display: flex; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed #ecc3cf; font-size: 13px; }
.inv-pay .t { flex: 1; }
.inv-pay b.lbl { display: block; font-size: 10.5px; letter-spacing: 1px; color: #86707a; text-transform: uppercase; margin-bottom: 4px; }
.inv-pay img { width: 110px; height: 110px; object-fit: contain; border: 1px solid #f3e1e6; border-radius: 8px; }
.inv-foot { text-align: center; color: #7d6b72; font-size: 12px; margin-top: 16px; }
.stamp {
  position: absolute; right: 18px; top: 120px; transform: rotate(-14deg);
  border: 3px solid var(--ok); color: var(--ok); font-weight: 800; letter-spacing: 3px; font-size: 22px;
  padding: 4px 14px; border-radius: 8px; opacity: .75;
}

/* ---------- Products editor ---------- */
.pcat input.cat { font-weight: 800; }
.prow { display: grid; grid-template-columns: 1fr 92px 34px; gap: 8px; margin-bottom: 8px; }
.prow input { padding: 9px 10px; }
.prow .x { border: 0; background: var(--bad-soft); color: var(--bad); border-radius: 10px; font-weight: 800; }

/* ---------- Sheet / toast ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50; background: rgba(29,20,24,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet[hidden] { display: none; }
.sheet .panel {
  background: var(--card); width: 100%; max-width: 680px; border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto;
  animation: up .2s ease-out;
}
.sheet .panel h2 { font-size: 18px; margin-bottom: 12px; color: var(--brand-dark); }
.sheet .opt { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-weight: 700; }
.sheet .opt small { display: block; font-weight: 600; color: var(--muted); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Print: invoice only ---------- */
@media print {
  @page { margin: 10mm; }
  body { background: #fff; padding: 0; }
  .topbar, .bottomnav, .no-print, .toast, .sheet { display: none !important; }
  main { padding: 0; max-width: none; }
  .invoice { box-shadow: none; max-width: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- v2 additions ---------- */
.bottomnav a span { filter: none; opacity: 1; display: flex; align-items: center; justify-content: center; height: 26px; }
.bottomnav a.active span { color: var(--brand); }
.bottomnav .nav-add span { display: flex; align-items: center; justify-content: center; height: 54px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin: 2px 0 12px; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.link-btn { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 12.5px; text-decoration: underline; padding: 0 4px; }
.link-btn[hidden] { display: none; }
.sheet-x { border: 0; background: var(--brand-soft); color: var(--brand-dark); width: 34px; height: 34px; border-radius: 50%; font-weight: 800; flex: none; }
.sheet .opt.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.btn:disabled { opacity: .5; }
.price-in { width: 92px; padding: 7px 8px; text-align: right; }
.price-in.need { border-color: var(--bad); background: var(--bad-soft); }
.prow { grid-template-columns: 1fr 70px 70px 34px; }
.prow3 { display: grid; grid-template-columns: 1fr 72px 72px 72px; gap: 8px; margin-bottom: 8px; }
.prow3 input { padding: 9px 8px; }
.note.warn { background: var(--warn-soft); color: var(--warn); font-weight: 700; margin-bottom: 14px; }
.f .flabel { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.thumb { width: 140px; max-height: 200px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: 8px; background: #fff; }
.label-sm small { font-weight: 600; }
label.f > span small { font-weight: 600; }

/* invoice v2 */
.inv-head { margin-bottom: 14px; }
.inv-head .biz small { font-size: 12px; }
.inv-titlebar { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 14px; }
.inv-titlebar h3 { font-size: 22px; letter-spacing: 3px; color: var(--brand); }
.inv-titlebar div { text-align: right; font-size: 13px; }
.inv-titlebar div b { display: block; font-size: 15px; }
.inv-titlebar div small { color: #6b5a60; }
.inv-sum .req { font-weight: 800; color: var(--warn); background: var(--warn-soft); padding: 6px 10px; border-radius: 8px; margin-top: 4px; }
.inv-terms { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #ecc3cf; font-size: 11.5px; color: #3d3036; line-height: 1.5; }
.inv-terms b.lbl { display: block; font-size: 10.5px; letter-spacing: 1px; color: #86707a; text-transform: uppercase; margin-bottom: 4px; }
.inv-terms ol { margin: 0; padding-left: 18px; }
.stamp { top: 150px; }

/* small-screen fixes */
.seg button { min-width: 0; }
#zone { display: grid; grid-template-columns: 1fr 1fr; }
.prow { grid-template-columns: minmax(0, 1fr) 64px 64px 32px; }
.prow3 { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 64px)); }
.prow3 b { font-size: 11.5px; line-height: 1.2; }
input, select, textarea { min-width: 0; }
.line > div[style] { flex: none; }
.line input.price-in { width: 84px; padding: 7px 8px; text-align: right; }
@media (max-width: 380px) {
  .row.stack-sm { flex-direction: column; align-items: stretch; gap: 0; }
}
.stat b { font-size: 19px; }


/* full-screen image viewer */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(20,16,8,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox .sheet-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; }

/* sync */
.sync-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8fd19e; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.sync-dot[hidden] { display: none; }
.sync-dot.busy { background: #f3d27a; }
.sync-dot.err { background: #f08a7e; }
.sync-big { font-family: ui-monospace, Menlo, monospace; font-size: 23px; font-weight: 800; letter-spacing: 2px; text-align: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 16px; padding: 18px 10px; word-break: break-all; }
.sync-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; }
.linkcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.linkcard b { display: block; color: var(--brand-dark); }
.linkcard small { color: var(--muted); }
.linkcard > span { font-size: 26px; color: var(--muted); }

/* kunci PIN */
.pinlock { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; }
.pin-inner { width: 100%; max-width: 340px; text-align: center; }
.pin-logo { width: 84px; height: 84px; margin-bottom: 8px; }
.pinlock h2 { font-size: 22px; color: var(--brand-dark); }
.pin-sub { color: var(--muted); margin: 4px 0 16px; font-size: 14.5px; }
.pin-dots { display: flex; justify-content: center; gap: 14px; height: 18px; margin-bottom: 6px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand); }
.pin-dots i.on { background: var(--brand); }
.pin-msg { min-height: 20px; color: var(--bad); font-weight: 700; font-size: 14px; margin: 6px 0 10px; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-keys button { height: 62px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-size: 24px; font-weight: 700; color: var(--text); }
.pin-keys button:active { background: var(--brand-soft); }
.pin-keys .pin-ok { background: var(--brand); color: #fff; border-color: var(--brand); font-size: 18px; }
.pin-foot { display: flex; justify-content: center; gap: 24px; margin-top: 16px; min-height: 24px; }
.pin-foot .link-btn { font-size: 15px; }
.pinlock.shake .pin-dots { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }

/* kalendar */
.cal-head h2 { font-size: 18px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.cal-dow { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); padding-bottom: 2px; }
.cal-cell { position: relative; aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 3px 0 0; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 14px; color: var(--text); min-width: 0; }
.cal-cell.blank { border: 0; background: none; }
.cal-cell span { font-weight: 700; }
.cal-cell b { font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.cal-cell.busy { background: #fde8ee; }
.cal-cell.full { background: var(--bad-soft); border-color: #e9b9b2; }
.cal-cell.full b { background: var(--bad); color: #fff; }
.cal-cell.off, .cal-cell.holiday { background: #f1ecec; color: #b0a3a3; }
.cal-cell.holiday::after { content: 'cuti'; font-size: 9px; font-weight: 800; color: var(--bad); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-cell.sel { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-cell i { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.cal-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--line); }
.lg.busy { background: #fde8ee; } .lg.full { background: var(--bad-soft); } .lg.off { background: #f1ecec; } .lg.ev { background: var(--gold); border-radius: 50%; }

/* laporan */
.bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; }
.bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-t { height: 10px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; }
.bar-t i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bar-row b { font-size: 13.5px; white-space: nowrap; }
.rtable { overflow-x: auto; }
.rtable table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rtable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 2px solid var(--brand); padding: 6px 4px; }
.rtable td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.rtable .r { text-align: right; white-space: nowrap; }
.rtable .tot td { font-weight: 800; border-top: 2px solid var(--line); }
.rtable .neg { color: var(--bad); }
.print-only { display: none; }
@media print { .print-only { display: block; } .card { break-inside: avoid; box-shadow: none; } }

.kvs .between { align-items: flex-start; padding: 2px 0; }
.kvs .between > span:last-child { white-space: nowrap; }

/* ---------- Mika's Kitchen ---------- */
.prow2 { display: grid; grid-template-columns: minmax(0, 1fr) 92px 34px; gap: 8px; margin-bottom: 8px; }
.prow2 input { padding: 9px 10px; min-width: 0; }
.prow2 .x { border: 0; background: var(--bad-soft); color: var(--bad); border-radius: 10px; font-weight: 800; }
.hello h2 { font-weight: 600; }
.chips .chip { flex: none; }
[hidden] { display: none !important; }
input[type=time], input[type=date] { width: 100%; }

/* Tarikh & masa di iPhone: Safari bagi lebar sendiri (kotak bertindih) & tunjuk tarikh hari ini bila kosong */
input[type=date], input[type=time] {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; min-width: 0; max-width: 100%; min-height: 50px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; outline: none; font-size: 16px; text-align: left; color: var(--text);
}
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
.row > .f, .row > label { flex: 1 1 0; min-width: 0; }
.dt { position: relative; display: block; min-width: 0; }
.dt.dt-none input { color: transparent; }
.dt.dt-none input::-webkit-datetime-edit { color: transparent; }
.dt.dt-none::after { content: attr(data-ph); position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #b99a9f; pointer-events: none; font-size: 16px; }

/* ---------- Tiny Taste: senarai produk, stok, imbas resit, belanja ---------- */
.sheet .pgroup { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--yellow); margin: 16px 2px 8px; }
.sheet .pgroup:first-of-type { margin-top: 0; }

.stk-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stk-sum button { border: 1px solid var(--line); background: var(--surface); color: #fff; border-radius: 16px; padding: 12px 6px; text-align: center; }
.stk-sum b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.stk-sum span { font-size: 12px; font-weight: 600; color: var(--muted); }
.stk-sum .is-low { background: linear-gradient(135deg, #ff2d8e, #c4126a); border-color: transparent; box-shadow: var(--glow); }
.stk-sum .is-low b, .stk-sum .is-low span { color: #fff; }
.sgroup { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); margin: 18px 4px 8px; }
.sgroup span { background: rgba(255,210,63,.14); color: var(--yellow); border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.stk-card { padding: 4px 14px; }
.stk { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.stk:last-child { border-bottom: 0; }
.stk .d { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: #fff; }
.stk .d b { display: block; font-size: 15px; font-weight: 600; color: #fff; overflow-wrap: anywhere; line-height: 1.3; }
.pill { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.st-ok .pill { background: var(--ok-soft); color: var(--ok); }
.st-low .pill { background: var(--warn-soft); color: var(--warn); }
.st-out .pill { background: var(--bad-soft); color: var(--bad); }
.qbox { width: 54px; flex: none; text-align: center; line-height: 1.1; }
.qbox b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 800; color: #fff; }
.qbox small { font-size: 11px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.st-low .qbox b { color: var(--warn); }
.st-out .qbox b { color: var(--bad); }
.st-none .qbox b { color: #5e5158; }
.stk .pm { display: flex; gap: 6px; flex: none; }
.stk .pm button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 20px; font-weight: 700; color: #fff; line-height: 1; }
.stk .pm button[data-sp] { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 10px rgba(255,45,142,.45); }

.rc-prog { margin-top: 14px; }
.rc-prog .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rc-prog .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff2d8e, #ff6cb0); box-shadow: var(--glow); transition: width .3s; }
.rc-prog span { display: block; text-align: center; font-weight: 600; font-size: 13.5px; margin-top: 6px; color: var(--muted); }
.rc-row { border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 0; margin-bottom: 10px; background: var(--surface-2); }
.rc-row select { margin-bottom: 10px; }
.rc-row input, .rc-row select { background: var(--surface); }
.rc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rc-check input { width: 22px; height: 22px; accent-color: var(--pink); flex: none; }
.rc-top input[type=text] { font-weight: 600; flex: 1; min-width: 0; }
.rc-del { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--bad-soft); color: var(--bad); font-size: 16px; font-weight: 800; }
.rc-exp { background: var(--pink-soft); border: 1px solid rgba(255,45,142,.3); border-radius: 16px; padding: 12px 12px 0; margin: 12px 0; }
.rc-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.rc-raw { white-space: pre-wrap; font-size: 12px; background: var(--surface-2); padding: 10px; border-radius: 10px; max-height: 200px; overflow: auto; }

.x-total { text-align: center; padding: 14px 0 16px; }
.x-total small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); }
.x-total b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 800; color: #fff; line-height: 1.2; text-shadow: var(--glow); }
.x-total span { font-size: 13px; color: var(--muted); font-weight: 600; }
.line.xrow { width: 100%; background: none; border: 0; border-bottom: 1px dashed var(--line); text-align: left; font: inherit; color: inherit; }

/* ================= Tiny Taste: comel & premium (pink pastel, font bulat) ================= */
:root {
  --bg: #fff3f8; --surface: #ffffff; --surface-2: #fff0f6; --card: #ffffff; --line: #ffdce9;
  --text: #4a2b3a; --muted: #a3808f;
  --pink: #ec4f95; --pink-2: #f57fb3; --pink-deep: #c9306f; --pink-soft: #ffe6f0; --blush: #ffd2e4;
  --glow: 0 8px 22px rgba(236,79,149,.25); --yellow: #c27a12;
  --brand: #ec4f95; --brand-dark: #4a2b3a; --brand-soft: #ffe6f0; --gold: #f7b2cf;
  --ok: #2e8b57; --ok-soft: #e3f5ea; --warn: #b3700f; --warn-soft: #fff1d9;
  --bad: #d1435b; --bad-soft: #ffe5ea; --info: #6a5acd; --info-soft: #eeeaff;
  --serif: 'Fredoka', 'Quicksand', system-ui, sans-serif; --sans: 'Quicksand', 'Fredoka', system-ui, -apple-system, Roboto, sans-serif;
  --script: 'Dancing Script', cursive;
  --radius: 22px; --shadow: 0 2px 4px rgba(236,79,149,.05), 0 8px 22px rgba(236,79,149,.09);
}
body {
  background: radial-gradient(120% 60% at 100% 0%, #ffe1ee 0%, rgba(255,225,238,0) 60%), radial-gradient(90% 50% at 0% 100%, #ffe8f1 0%, rgba(255,232,241,0) 60%), var(--bg);
  background-attachment: fixed; color: var(--text); font-family: var(--sans); font-weight: 500;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .1px; }
b, strong { font-weight: 700; }

/* Bar atas */
.topbar { background: rgba(255,243,248,.88); backdrop-filter: blur(12px); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px rgba(236,79,149,.08); }
.topbar h1 { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--pink-deep); }
.topbar-logo { width: 40px; height: 40px; padding: 0; border-radius: 12px; background: var(--pink); box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(236,79,149,.3); object-fit: cover; }
.btn-back { color: var(--pink-deep); border: 1.5px solid var(--blush); background: #fff; font-weight: 700; padding: 6px 14px; }

/* Kad */
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2 { color: var(--text); font-size: 18px; }
.card h2 small { color: var(--muted); font-family: var(--sans); font-weight: 600; }
.card > h2:first-child::after { content: ' ♡'; color: var(--pink-2); font-size: 14px; }

/* Kad sambutan */
.hero {
  position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden;
  background: linear-gradient(135deg, #ff9cc6 0%, #ec4f95 55%, #d93a80 100%);
  border-radius: 26px; padding: 18px; margin: 2px 0 16px; color: #fff; box-shadow: 0 12px 28px rgba(236,79,149,.32);
}
.hero::before { content: '✦  ♡  ✧'; position: absolute; right: 16px; top: 10px; color: rgba(255,255,255,.6); font-size: 14px; letter-spacing: 4px; }
.hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hero img { width: 72px; height: 72px; border-radius: 20px; flex: none; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 6px 14px rgba(150,20,80,.3); position: relative; z-index: 1; }
.hero .t { min-width: 0; position: relative; z-index: 1; }
.hero small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero h2 { font-family: var(--script); font-weight: 700; font-size: 34px; line-height: 1.1; color: #fff; margin: 0 0 4px; overflow-wrap: anywhere; text-shadow: 0 2px 8px rgba(150,20,80,.25); }
.hero p { margin: 0; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; }
.hero p b { color: #fff; }
.hero p b.late { color: #fff; background: rgba(209,67,91,.55); border-radius: 999px; padding: 0 8px; }

/* Statistik */
.stat { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 14px 15px; box-shadow: var(--shadow); }
.stat b { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--text); }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat.hl { background: linear-gradient(135deg, #fff 0%, #ffe6f0 100%); border-color: var(--blush); }
.stat.hl b { color: var(--pink-deep); }
.stat.hl span { color: var(--pink); }

/* Akses pantas */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; color: var(--text); font-weight: 700; font-size: 12px; text-align: center; box-shadow: var(--shadow); }
.quick a svg { color: var(--pink); width: 40px; height: 40px; padding: 9px; border-radius: 14px; background: var(--pink-soft); }

/* Butang */
.btn { border-radius: 999px; background: linear-gradient(135deg, #f57fb3, #ec4f95); color: #fff; box-shadow: 0 6px 16px rgba(236,79,149,.3); font-family: var(--serif); font-weight: 600; letter-spacing: .2px; }
.btn svg { color: #fff; }
.btn.alt { background: var(--pink-soft); color: var(--pink-deep); box-shadow: none; }
.btn.alt svg { color: var(--pink-deep); }
.btn.ghost { background: #fff; color: var(--pink-deep); border: 1.5px solid var(--blush); box-shadow: none; }
.btn.wa { background: linear-gradient(135deg, #3dd17f, #22a35a); box-shadow: 0 6px 16px rgba(34,163,90,.25); }
.btn.danger { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.btn.sm { border-radius: 999px; }
.btn:disabled { opacity: .5; }
.chip { border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; }
.chip.on { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 4px 10px rgba(236,79,149,.25); }
.seg { background: var(--pink-soft); border-radius: 999px; padding: 4px; }
.seg button { border-radius: 999px; color: var(--pink-deep); font-family: var(--serif); font-weight: 500; }
.seg button.on { background: #fff; color: var(--pink-deep); box-shadow: 0 3px 10px rgba(236,79,149,.18); font-weight: 600; }

/* Borang */
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px; color: var(--text); font-family: var(--sans); font-weight: 600;
}
input::placeholder, textarea::placeholder { color: #cfaebd; font-weight: 500; }
input:focus, select:focus, textarea:focus { border-color: var(--pink-2); box-shadow: 0 0 0 4px rgba(236,79,149,.12); }
label.f > span, .f .flabel { color: var(--text); font-weight: 700; font-size: 13.5px; }
.dt.dt-none::after { color: #cfaebd; }
.qty { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { background: var(--pink-soft); color: var(--pink-deep); font-size: 18px; }
.qty button:disabled { opacity: .4; }
.line { border-bottom: 1.5px dashed var(--line); }
.totals .grand { color: var(--pink-deep); border-top-color: var(--line); font-family: var(--serif); }

/* Senarai order */
.oitem { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); position: relative; }
.oitem .no { font-family: var(--serif); color: var(--pink); font-weight: 600; }
.oitem .top b { font-family: var(--serif); color: var(--text); font-weight: 600; }
.oitem .name { font-weight: 700; }
.tag { background: var(--surface-2); color: var(--text); font-weight: 700; border: 1px solid var(--line); }
.tag.info { background: var(--pink-soft); color: var(--pink-deep); border-color: var(--blush); }
.tag.ok { border-color: transparent; } .tag.warn { border-color: transparent; } .tag.bad { border-color: transparent; }
.tag.infaq { background: #e9f7ef; color: #2e7d52; border-color: #c9ead6; }
.empty { color: var(--muted); font-weight: 600; }
.empty::before { content: '♡'; display: block; font-size: 30px; color: var(--pink-2); margin-bottom: 4px; }
.empty small { display: block; margin-top: 6px; }
.note { background: var(--pink-soft); color: var(--text); border-radius: 18px; }
.note.warn { background: var(--warn-soft); color: #8a5408; }

/* Menu bawah */
.bottomnav { background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1.5px solid var(--line); border-radius: 24px 24px 0 0; box-shadow: 0 -6px 20px rgba(236,79,149,.10); }
.bottomnav a { color: #c2a2b1; font-weight: 700; }
.bottomnav a span { filter: none; opacity: 1; }
.bottomnav a.active, .bottomnav a.active span { color: var(--pink); }
.bottomnav .nav-add span, .bottomnav a.nav-add.active span { background: linear-gradient(135deg, #f57fb3, #ec4f95); color: #fff; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(236,79,149,.4); }

/* Status */
.step i { background: var(--pink-soft); color: var(--pink-2); border-color: #fff; }
.step.done i { background: var(--blush); color: #fff; }
.step.cur i { background: var(--pink); color: #fff; box-shadow: 0 4px 10px rgba(236,79,149,.35); }
.step.cur span { color: var(--pink-deep); }
.stepper::before { background: var(--line); }
.status-line { color: var(--pink-deep); }

/* Panel bawah, toast */
.sheet { background: rgba(74,43,58,.35); }
.sheet .panel { background: #fff; border-radius: 28px 28px 0 0; }
.sheet .panel h2 { color: var(--text); }
.sheet .opt { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; color: var(--text); font-weight: 700; }
.sheet .opt small { color: var(--muted); font-weight: 600; }
.sheet .opt.sel { border-color: var(--pink); background: var(--pink-soft); box-shadow: inset 0 0 0 1px var(--pink); }
.sheet-x { background: var(--pink-soft); color: var(--pink-deep); }
.toast { background: var(--text); color: #fff; border-radius: 999px; }

/* Kunci PIN */
.pinlock { background: radial-gradient(120% 70% at 50% 0%, #ffd2e4, transparent 60%), var(--bg); color: var(--text); }
.pinlock h2 { color: var(--pink-deep); }
.pin-logo { width: 104px; height: 104px; border-radius: 28px; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(236,79,149,.3); }
.pin-keys button { border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--text); font-family: var(--serif); }
.pin-keys button:active { background: var(--pink-soft); }
.pin-keys .pin-ok { background: linear-gradient(135deg, #f57fb3, #ec4f95); border-color: transparent; color: #fff; }
.pin-dots i { border-color: var(--pink-2); }
.pin-dots i.on { background: var(--pink); border-color: var(--pink); }
.link-btn { color: var(--pink-deep); font-weight: 700; }

/* Lagi / Tetapan */
.linkcard { padding: 14px 16px; }
.linkcard > div { flex: 1; min-width: 0; }
.linkcard b { color: var(--text); font-size: 15.5px; font-family: var(--serif); font-weight: 600; }
.linkcard small { color: var(--muted); font-weight: 600; }
.linkcard > span { color: var(--pink-2); font-size: 26px; }
.lc-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); }
.card > h2:first-child:empty::after { content: none; }

/* Kalendar & laporan */
.cal-cell { background: #fff; border: 1.5px solid var(--line); color: var(--text); border-radius: 14px; }
.cal-cell b { background: var(--pink); color: #fff; }
.cal-cell.busy { background: var(--pink-soft); border-color: var(--blush); }
.cal-cell.off, .cal-cell.holiday { background: #faf3f6; color: #d3bcc6; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--pink-2); }
.cal-cell.sel { box-shadow: inset 0 0 0 2px var(--pink); }
.lg.busy { background: var(--pink-soft); } .lg.off { background: #faf3f6; }
.bar-t { background: var(--pink-soft); }
.bar-t i { background: linear-gradient(90deg, #f57fb3, #ec4f95); }
.rtable th { border-bottom-color: var(--pink-2); }

/* Stok & resit */
.sheet .pgroup, .sgroup, .x-total small { color: var(--pink); letter-spacing: 1.5px; font-family: var(--sans); font-weight: 700; }
.sgroup span { background: var(--pink-soft); color: var(--pink-deep); }
.stk-sum button { box-shadow: var(--shadow); border: 1.5px solid var(--line); border-radius: 20px; }
.stk-sum b, .qbox b, .x-total b { font-family: var(--serif); font-weight: 600; color: var(--text); text-shadow: none; }
.stk-sum .is-low { background: linear-gradient(135deg, #f57fb3, #ec4f95); border-color: transparent; box-shadow: var(--glow); }
.stk-sum .is-low b, .stk-sum .is-low span { color: #fff; }
.stk .d b { color: var(--text); font-weight: 700; }
.stk { border-bottom: 1.5px dashed var(--line); }
.st-none .qbox b { color: #dcc6cf; }
.stk .pm button { background: #fff; color: var(--pink-deep); border: 1.5px solid var(--blush); }
.stk .pm button[data-sp] { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 4px 10px rgba(236,79,149,.3); }
.rc-row { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; }
.rc-row input, .rc-row select { background: #fff; }
.rc-exp { background: var(--pink-soft); border: 0; border-radius: 20px; }
.rc-check { color: var(--text); }
.rc-prog .bar { background: var(--pink-soft); }
.rc-prog .bar i { background: linear-gradient(90deg, #f57fb3, #ec4f95); box-shadow: none; }
.line.xrow { border-bottom: 1.5px dashed var(--line); }
.x-total b { color: var(--pink-deep); }
.infaq-check { align-items: flex-start; background: #f2fbf6; border: 1.5px solid #d4efe0; border-radius: 16px; padding: 10px 12px; margin: 4px 0 12px; }
.infaq-check input { accent-color: #2e8b57; margin-top: 2px; }
.infaq-check span { display: flex; flex-direction: column; }
.infaq-check small { color: var(--muted); font-weight: 600; }

/* Vendor */
.vtabs { margin-bottom: 12px; }
.vtabs button { font-size: 13px; padding: 9px 2px; }
.cook { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.cook div { background: var(--pink-soft); border-radius: 18px; padding: 10px 12px; }
.cook b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--pink-deep); line-height: 1.1; }
.cook span { font-size: 12.5px; font-weight: 700; }
.vcard .vrow, .sheet .vrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.vrow .n { flex: 1; min-width: 0; }
.vrow .n b { display: block; font-weight: 700; }
.vrow .n small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.vrow .qty { margin-top: 0; flex: none; }
.unsold { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; padding: 6px 0 4px; }
.seg.mini { display: inline-flex; margin: 0; padding: 3px; }
.seg.mini button { padding: 4px 12px; font-size: 12.5px; flex: none; }
.vitem { border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 12px 0; margin-bottom: 8px; }
.vitem .row { align-items: flex-end; }
.vitem .rc-del { margin-bottom: 12px; }
.vbig { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--pink-deep); }
.rtable tr[data-vd] { cursor: pointer; }

/* Invois & resit: putih, aksen pink */
.invoice { --text: #4a2b3a; --muted: #a3808f; --line: #ffdce9; --card: #fff; --brand: #ec4f95; --brand-dark: #4a2b3a; --brand-soft: #ffe6f0; color: #4a2b3a; border-radius: 10px; }
.invoice::before { background: linear-gradient(90deg, #f57fb3, #ec4f95); }
.inv-head img { border-radius: 16px; object-fit: cover; }
.inv-head .biz b { font-family: var(--serif); color: var(--pink-deep); font-size: 19px; }
.inv-titlebar h3 { color: var(--pink); font-family: var(--serif); }
.inv-sum .grand { background: linear-gradient(135deg, #f57fb3, #ec4f95); color: #fff; }
.inv-meta { background: #fff5f9; }
.inv-table th { border-bottom-color: var(--pink-2); }

/* ---------- Menu sekali pandang (pilih banyak item) ---------- */
.sheet .panel.mp-panel { padding-bottom: 0; }
.mp-tabs { position: sticky; top: -18px; z-index: 3; background: #fff; margin: -6px -16px 10px; padding: 8px 16px 10px; flex-wrap: nowrap; }
.mp-item { border: 1.5px solid var(--line); border-radius: 20px; padding: 10px 12px; margin-bottom: 8px; background: #fff; transition: background .15s; }
.mp-item:has(.mp-row.on) { background: var(--pink-soft); border-color: var(--blush); }
.mp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-family: var(--serif); }
.mp-head b { font-weight: 600; font-size: 15.5px; }
.mp-row { display: flex; align-items: center; gap: 10px; }
.mp-item.multi .mp-row { padding: 7px 0 7px 36px; border-top: 1.5px dashed var(--line); }
.mp-item.multi .mp-row:first-of-type { border-top: 0; }
.mp-n { flex: 1; min-width: 0; }
.mp-n b { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.mp-n small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.mp-item:not(.multi) .mp-n small { padding-left: 36px; }
.mp-row.on .mp-n b { color: var(--pink-deep); }
.mp-emo { flex: none; width: 28px; height: 28px; border-radius: 10px; background: var(--pink-soft); display: grid; place-items: center; font-size: 16px; }
.mp-item:has(.mp-row.on) .mp-emo { background: #fff; }
.mp-step { flex: none; display: inline-flex; align-items: center; border: 1.5px solid var(--blush); border-radius: 999px; overflow: hidden; background: #fff; }
.mp-step button { border: 0; background: var(--pink-soft); color: var(--pink-deep); width: 34px; height: 34px; font-size: 18px; font-weight: 700; }
.mp-step button[data-d="1"] { background: var(--pink); color: #fff; }
.mp-step input, .qty input { width: 46px; border: 0 !important; box-shadow: none !important; background: transparent; text-align: center; padding: 0; font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--text); -moz-appearance: textfield; }
.mp-step input::-webkit-inner-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mp-bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; margin: 8px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--line); box-shadow: 0 -8px 18px rgba(236,79,149,.08); }
.mp-bar span { flex: 1; min-width: 0; font-weight: 700; font-size: 13.5px; color: var(--pink-deep); }
.mp-bar .btn { width: auto; padding: 12px 28px; }
.note-btn { display: block; border: 0; background: none; padding: 2px 0; color: var(--pink); font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; }
.qty { display: inline-flex; align-items: center; }
.oline { display: block; padding: 12px 0; }
.ol-top { display: flex; align-items: flex-start; gap: 10px; }
.ol-top b { flex: 1; min-width: 0; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.ol-bot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.ol-bot .qty { margin-top: 0; }
.ol-x { color: var(--muted); font-weight: 700; font-size: 13px; flex: none; }
.ol-bot .price-in { width: 76px; padding: 7px 8px; text-align: right; font-size: 15px; border-radius: 12px; }
.ol-bot .price-in.need { border-color: var(--warn); background: var(--warn-soft); }
.ol-sum { margin-left: auto; font-family: var(--serif); font-weight: 600; color: var(--pink-deep); white-space: nowrap; }

/* ---------- Expenses (mudah) ---------- */
.x-head { padding: 14px 16px 16px; }
.x-month { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.x-head .x-total { padding: 10px 0 6px; }
.x-split { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.x-split span { background: var(--pink-soft); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.x-split b { color: var(--pink-deep); }
.x-main .btn { font-size: 16px; padding: 14px 10px; }
.x-hint { margin: 14px 4px 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
.x-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.x-quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); font: inherit; color: var(--text); }
.x-quick i { font-style: normal; font-size: 22px; line-height: 1; }
.x-quick span { font-size: 11.5px; font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.x-day { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 6px 8px; }
.x-day span { color: var(--pink-deep); }
.x-list { padding: 4px 14px; }
.x-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1.5px dashed var(--line); font: inherit; color: inherit; text-align: left; }
.x-row:last-child { border-bottom: 0; }
.x-row i { font-style: normal; flex: none; width: 38px; height: 38px; border-radius: 14px; background: var(--pink-soft); display: grid; place-items: center; font-size: 19px; }
.x-row .d { flex: 1; min-width: 0; }
.x-row .d b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.x-row .d small { color: var(--muted); font-weight: 600; }
.x-row .p { font-family: var(--serif); font-weight: 600; color: var(--pink-deep); white-space: nowrap; }
.x-amt { font-family: var(--serif); font-size: 26px !important; font-weight: 600; text-align: center; color: var(--pink-deep) !important; }
.x-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.x-cat { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--text); text-align: left; }
.x-cat i { font-style: normal; font-size: 18px; }
.x-cat.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); box-shadow: inset 0 0 0 1px var(--pink); }
.x-amt::-webkit-inner-spin-button, .price-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .x-amt, .price-in { -moz-appearance: textfield; }

/* ================= Lembut di mata: pink pudar, lebih ruang, kurang warna terang ================= */
:root {
  --bg: #fdf9fa; --line: #f0e3e9; --text: #3b2a33; --muted: #94838c;
  --pink: #df6f9e; --pink-2: #eb9dbf; --pink-deep: #ad4a78; --pink-soft: #fcf0f5; --blush: #f4d5e2;
  --brand: #df6f9e; --brand-soft: #fcf0f5;
  --shadow: 0 1px 2px rgba(120,60,90,.04), 0 6px 18px rgba(120,60,90,.05);
}
body { background: linear-gradient(180deg, #fdf3f7 0%, #fdf9fa 260px); background-attachment: scroll; }
.topbar { background: rgba(253,249,250,.92); box-shadow: none; }
.hero { background: linear-gradient(135deg, #f6c3d9 0%, #e88db4 100%); box-shadow: 0 10px 24px rgba(223,111,158,.22); }
.btn { background: linear-gradient(135deg, #eba0c1, #df6f9e); box-shadow: 0 4px 12px rgba(223,111,158,.22); }
.btn.alt { background: var(--pink-soft); color: var(--pink-deep); }
.btn.ghost { color: var(--text); border-color: var(--line); }
.chip.on { background: var(--pink-soft); border-color: var(--blush); color: var(--pink-deep); box-shadow: none; }
.seg button.on { color: var(--pink-deep); }
.mp-step button[data-d="1"], .stk .pm button[data-sp] { background: var(--pink-soft); color: var(--pink-deep); box-shadow: none; }
.mp-step, .qty { border-color: var(--line); }
.bottomnav .nav-add span, .bottomnav a.nav-add.active span { background: linear-gradient(135deg, #eba0c1, #df6f9e); box-shadow: 0 6px 14px rgba(223,111,158,.3); }
.bottomnav a { color: #b8a6ae; }
.stat.hl { background: #fff; border-color: var(--blush); }
.card > h2:first-child::after { color: var(--blush); }
.quick a svg { background: var(--pink-soft); color: var(--pink); }
.lc-ic, .x-row i, .mp-emo { background: #fbf1f5; }
.stk-sum .is-low { background: #fff7e8; border-color: #f5ddb0; box-shadow: none; }
.stk-sum .is-low b { color: #a8691b; } .stk-sum .is-low span { color: #a8691b; }
.sgroup, .sheet .pgroup, .x-total small { color: var(--pink); }
.empty::before { color: var(--blush); }

/* ---------- Stok: kad kecil 2 lajur ---------- */
.stiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 120px; padding: 12px 12px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); text-align: left; font: inherit; color: var(--text); }
.stile .se { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.stile .sn { font-weight: 700; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; flex: 1; }
.stile .sq { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stile .sq b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text); }
.stile .ss { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.stile .ss i { width: 8px; height: 8px; border-radius: 50%; background: #d9ccd2; flex: none; }
.stile.st-ok .ss i { background: #4caf7a; } .stile.st-ok .ss { color: #2e8b57; }
.stile.st-low { border-color: #f5ddb0; background: #fffbf3; } .stile.st-low .ss i { background: #e0a53c; } .stile.st-low .ss { color: #a8691b; } .stile.st-low .sq b { color: #a8691b; }
.stile.st-out { border-color: #f4cdd3; background: #fff8f9; } .stile.st-out .ss i { background: #d1435b; } .stile.st-out .ss { color: #c2453a; } .stile.st-out .sq b { color: #c2453a; }
.stile.st-none .sq b { color: #d6c6ce; }
.sq-now { text-align: center; padding: 6px 0 14px; }
.sq-now small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sq-now b { display: block; font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.1; color: var(--text); }
.sq-now span { color: var(--muted); font-weight: 600; }
.sq-now.st-low b { color: #a8691b; } .sq-now.st-out b { color: #c2453a; } .sq-now.st-none b { color: #d6c6ce; }
.sq-chips { display: flex; gap: 8px; margin-top: -4px; }
.sq-chips button { flex: 1; padding: 9px 0; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; color: var(--text); }
.sq-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.sq-links button { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--pink-deep); }

/* ---------- Prep list ---------- */
.pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.pp-row:last-child { border-bottom: 0; }
.pp-emo { flex: none; width: 38px; height: 38px; border-radius: 14px; background: #fbf1f5; display: grid; place-items: center; font-size: 19px; }
.pp-n { flex: 1; min-width: 0; }
.pp-n b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.pp-n small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.pp-q { text-align: right; flex: none; line-height: 1.05; }
.pp-q b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--pink-deep); }
.pp-q small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.prep-card small b { color: var(--pink-deep); }
.prep-card .lc-ic { font-size: 20px; }
.tag b { font-weight: 800; }
.prep-card small b { display: inline; font-size: inherit; font-family: var(--serif); }
.mp-edit { display: inline-block; margin: -6px 0 8px; font-weight: 700; font-size: 13px; color: var(--pink-deep); }
.pcat-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--serif); font-size: 16px; }
.pcat-h b { font-weight: 600; overflow-wrap: anywhere; }

/* ================= Bakerella: pastel cat air macam logo, teks coklat, satu warna utama (rose pudar) ================= */
:root {
  --bg: #fdf8f6; --line: #f1e4e6; --text: #4a2f2c; --muted: #9a8580;
  --pink: #cf7f9f; --pink-2: #e3a9c0; --pink-deep: #9c5574; --pink-soft: #fbf0f3; --blush: #f2d6e0;
  --brand: #cf7f9f; --brand-dark: #4a2f2c; --brand-soft: #fbf0f3;
  --shadow: 0 1px 2px rgba(90,50,45,.04), 0 6px 18px rgba(90,50,45,.05);
}
body { background: linear-gradient(180deg, #fbf1f4 0%, #fdf8f6 260px); color: var(--text); }
.topbar { background: rgba(253,248,246,.93); }
.topbar h1 { color: var(--text); }
.topbar-logo { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(90,50,45,.15); }
/* Kad sambutan: pastel cat air lembut (pink → lilac → biru), teks coklat */
.hero { background: linear-gradient(120deg, #f9d9e7 0%, #ecdcf4 45%, #d9ebf7 100%); box-shadow: 0 8px 20px rgba(160,110,150,.16); color: var(--text); }
.hero::before { color: rgba(156,85,116,.45); }
.hero::after { background: rgba(255,255,255,.35); }
.hero img { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(90,50,45,.15); }
.hero small { color: var(--pink-deep); }
.hero h2 { color: var(--text); text-shadow: none; }
.hero p { color: #6b514c; }
.hero p b { color: var(--text); }
.hero p b.late { color: #fff; background: #c9566f; }
.btn { background: linear-gradient(135deg, #dea0b9, #cf7f9f); box-shadow: 0 4px 12px rgba(207,127,159,.24); }
.bottomnav .nav-add span, .bottomnav a.nav-add.active span { background: linear-gradient(135deg, #dea0b9, #cf7f9f); box-shadow: 0 6px 14px rgba(207,127,159,.3); }
.bottomnav a { color: #b5a39f; }
.topbar-logo, .hero img, .inv-head img { object-fit: cover; }
.inv-head .biz .tagline { font-family: var(--script); font-size: 15px; color: var(--pink-deep); margin-top: -2px; }
.invoice::before { background: linear-gradient(90deg, #f6c9dc, #e3d1f0, #cfe5f5, #f9e7c3); }
.inv-head img { border-radius: 50%; }
.inv-sum .grand { background: linear-gradient(135deg, #dea0b9, #cf7f9f); }
.inv-titlebar h3, .inv-title h3 { color: var(--pink-deep); }

/* ================= Bakerella premium: ala logo (percikan cat air pastel, lencana bertitik, garis + hati, coklat koko) ================= */
:root {
  --cocoa: #4a2f2c; --cocoa-2: #6b4741; --cream: #fffaf7;
  --wc: radial-gradient(38% 55% at 18% 30%, rgba(247,170,206,.55), transparent 70%),
        radial-gradient(35% 50% at 45% 75%, rgba(205,180,240,.45), transparent 70%),
        radial-gradient(38% 55% at 75% 25%, rgba(170,212,245,.50), transparent 70%),
        radial-gradient(30% 45% at 92% 80%, rgba(250,222,170,.45), transparent 70%),
        radial-gradient(28% 40% at 60% 40%, rgba(185,232,214,.35), transparent 70%);
}
body {
  background:
    radial-gradient(60% 260px at 0% 0%, rgba(247,190,215,.35), transparent 70%),
    radial-gradient(55% 240px at 100% 30px, rgba(186,214,245,.32), transparent 70%),
    radial-gradient(50% 220px at 55% 140px, rgba(215,195,242,.25), transparent 70%),
    var(--cream);
  background-repeat: no-repeat;
}
.topbar { background: rgba(255,250,247,.88); border-bottom: 1px solid rgba(74,47,44,.08); }
.topbar h1 { font-family: var(--serif); font-weight: 600; color: var(--cocoa); letter-spacing: .3px; }
.topbar-logo { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px rgba(74,47,44,.18); }

/* Kad sambutan: putih, percikan cat air di belakang lencana, tagline huruf jarang */
.hero {
  background: var(--wc), #fff; border: 1px solid rgba(74,47,44,.08); color: var(--cocoa);
  box-shadow: 0 2px 4px rgba(74,47,44,.04), 0 14px 32px rgba(160,120,150,.14);
  padding: 20px 18px 34px; border-radius: 28px;
}
.hero::before { content: '♡'; right: 18px; top: 12px; color: rgba(74,47,44,.35); letter-spacing: 0; font-size: 16px; }
.hero::after { display: none; }
.hero .badge { position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; padding: 5px; z-index: 1;
  background: #fff; box-shadow: 0 8px 18px rgba(74,47,44,.14); }
.hero .badge::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px dotted rgba(74,47,44,.45); }
.hero .badge img { width: 100%; height: 100%; border-radius: 50%; box-shadow: none; }
.hero small { color: var(--cocoa-2); letter-spacing: 2.5px; font-size: 11.5px; }
.hero h2 { color: var(--cocoa); font-size: 36px; margin-bottom: 0; }
.hero p { color: var(--cocoa-2); }
.hero p b { color: var(--cocoa); }
.heart-line { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; color: rgba(74,47,44,.55); font-size: 12px; font-style: normal; }
.heart-line::before, .heart-line::after { content: ''; height: 1px; background: rgba(74,47,44,.35); flex: 1; max-width: 60px; }
.heart-line i { font-style: normal; }
.hero-tag { position: absolute; left: 0; right: 0; bottom: 11px; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(74,47,44,.6); z-index: 1; }
.hero-tag::before, .hero-tag::after { content: ''; display: inline-block; width: 26px; height: 1px; background: rgba(74,47,44,.35); vertical-align: middle; margin: 0 10px; }

/* Butang utama: coklat koko macam tulisan logo; aksen pastel */
.btn { background: var(--cocoa); color: #fff; box-shadow: 0 6px 16px rgba(74,47,44,.22); letter-spacing: .2px; }
.btn.alt { background: #fbeff4; color: var(--cocoa); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--cocoa); border: 1.5px solid rgba(74,47,44,.14); box-shadow: none; }
.btn.wa { background: #fff; color: #1d8a4c; border: 1.5px solid #bfe6cf; box-shadow: none; }
.btn.danger { box-shadow: none; }
.bottomnav .nav-add span, .bottomnav a.nav-add.active span { background: var(--cocoa); box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(247,170,206,.6), 0 8px 18px rgba(74,47,44,.25); }
.bottomnav { background: rgba(255,255,255,.94); border-top: 1px solid rgba(74,47,44,.08); box-shadow: 0 -8px 24px rgba(74,47,44,.06); }
.bottomnav a.active, .bottomnav a.active span { color: var(--cocoa); }
.bottomnav a.active::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: #e79bbd; margin: 2px auto 0; }
.chip.on, .seg button.on { color: var(--cocoa); border-color: rgba(74,47,44,.25); background: #fff; }
.seg { background: #f8eef1; }

/* Kad & statistik */
.card, .stat, .oitem, .quick a { border: 1px solid rgba(74,47,44,.08); box-shadow: 0 1px 2px rgba(74,47,44,.03), 0 8px 22px rgba(120,80,90,.06); }
.card h2, .stat b { color: var(--cocoa); }
.card > h2:first-child::after { color: #e79bbd; }
.stat.hl { background: var(--wc), #fff; border-color: rgba(74,47,44,.1); }
.stat.hl b { color: var(--cocoa); } .stat.hl span { color: var(--cocoa-2); }
.stat span { letter-spacing: .2px; }
.quick a svg { background: var(--wc), #fff; color: var(--cocoa); box-shadow: inset 0 0 0 1px rgba(74,47,44,.08); }
.oitem .no { color: #b7668d; letter-spacing: .5px; }
.lc-ic { background: var(--wc), #fff; color: var(--cocoa); }

/* Menu */
.mp-row.on { background: #fdf3f7; }
.mp-step button[data-d="1"] { background: #fbeff4; color: var(--cocoa); }
.mp-bar .btn { min-width: 120px; }

/* Invois: kepala ala logo (lencana tengah, percikan cat air, garis + hati) */
.invoice { border: 1px solid rgba(74,47,44,.08); }
.invoice::before { height: 5px; background: linear-gradient(90deg, #f7b7d3, #d7c3f2, #b6d8f5, #c3ead9, #f9ddb0); }
.inv-head { flex-direction: column; text-align: center; gap: 8px; padding: 14px 0 6px; margin: -6px -6px 14px; border-radius: 18px; background: var(--wc); }
.inv-head img { width: 96px; height: 96px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(74,47,44,.18), 0 8px 16px rgba(74,47,44,.12); }
.inv-head .biz b { font-size: 24px; color: var(--cocoa); letter-spacing: 3px; text-transform: uppercase; }
.inv-head .biz small { color: var(--cocoa-2); }
.inv-head .biz .tagline { font-size: 18px; color: var(--cocoa-2); margin: -2px 0 4px; }
.inv-titlebar { border-bottom: 1px solid rgba(74,47,44,.25); }
.inv-titlebar h3 { color: var(--cocoa); letter-spacing: 5px; font-weight: 600; }
.inv-table th { border-bottom: 1px solid rgba(74,47,44,.3); color: var(--cocoa-2); }
.inv-meta > div:first-child, .inv-meta { background: #fdf6f8; }
.inv-sum .grand { background: var(--cocoa); color: #fff; letter-spacing: 1px; }
.inv-sum .bal span { color: #b04a66; }
.inv-foot { font-family: var(--script); font-size: 17px; color: var(--cocoa-2); line-height: 1.35; }
.inv-foot::before { content: '— ♡ —'; display: block; font-family: var(--sans); font-size: 12px; color: rgba(74,47,44,.45); letter-spacing: 2px; margin-bottom: 6px; }
.inv-foot::after { content: '#loveatfirstbite'; display: block; font-size: 16px; margin-top: 6px; color: #b7668d; }

/* ---------- Daily list ---------- */
.pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(74,47,44,.14); }
.pp-row:last-child { border-bottom: 0; }
.pp-emo { flex: none; width: 38px; height: 38px; border-radius: 14px; background: var(--wc), #fff; box-shadow: inset 0 0 0 1px rgba(74,47,44,.08); display: grid; place-items: center; font-size: 19px; }
.pp-n { flex: 1; min-width: 0; }
.pp-n b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.pp-n small { color: var(--muted); font-weight: 600; font-size: 12.5px; overflow-wrap: anywhere; }
.pp-q { text-align: right; flex: none; line-height: 1.05; }
.pp-q b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--cocoa); }
.pp-q small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.pp-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pp-sum > div { text-align: center; padding: 10px 4px; border-radius: 16px; background: var(--wc), #fff; box-shadow: inset 0 0 0 1px rgba(74,47,44,.08); min-width: 0; }
.pp-sum b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--cocoa); overflow-wrap: anywhere; }
.pp-sum b small { font-size: 13px; color: var(--muted); }
.pp-sum span { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.prep-card small b { display: inline; font-size: inherit; font-family: var(--serif); color: var(--cocoa); }
.prep-card .lc-ic { font-size: 20px; }
