/* SpazaSlate - warm, bright, big. Made for 360px-wide phones, one thumb, and sunlight. */
:root {
  --bg: #FFF7EA; --card: #FFFFFF; --ink: #1E1408; --soft: #5C4A36; --line: #E7D8C3;
  --orange: #D9480F; --orange-d: #B03A0A; --green: #157F3B; --green-d: #0F6630; --blue: #1257A8; --blue-d: #0D4384;
  --red: #C0262D; --amber: #8A5200; --amber-bg: #FFE9B8; --okbg: #DDF3E2; --sun: #FFC93C;
  --r: 16px; --tap: 60px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  line-height: 1.35; overscroll-behavior-y: contain; }
main { max-width: 560px; margin: 0 auto; padding: 0 14px 104px; min-height: 100vh; }
h1 { font-size: 1.35rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 22px 2px 8px; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 8px 2px; }
button, input { font: inherit; color: inherit; } a.wide { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }
.loading, .empty { text-align: center; color: var(--soft); padding: 28px 10px; font-size: 1.05rem; }
.hint { color: var(--soft); font-size: .92rem; } .hint.warn, .warn { color: var(--red); } .center { text-align: center; }

/* ---- the top of the home screen */
.hero { margin: 0 -14px; padding: 18px 18px 20px; background: linear-gradient(160deg, #F0650F 0%, #D9480F 60%, #B93A0B 100%); color: #fff;
  border-radius: 0 0 26px 26px; box-shadow: 0 6px 18px rgba(176, 58, 10, .28); }
.shopname { font-size: 1.15rem; font-weight: 700; opacity: .96; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owed span { display: block; font-size: .95rem; margin-top: 8px; opacity: .95; }
.owed b { font-size: 2.6rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
.bar { display: flex; align-items: center; gap: 6px; margin: 0 -14px 6px; padding: 10px 8px; background: var(--orange); color: #fff; position: sticky; top: 0; z-index: 5; }
.bar h1 { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: inherit; flex: none; }
.iconbtn.txt { width: auto; padding: 0 12px; font-weight: 700; text-decoration: underline; }
.iconbtn.quiet { color: #8C7A66; } .iconbtn:active { background: rgba(0, 0, 0, .12); }

/* ---- buttons */
.big, .wide { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--tap); border-radius: var(--r);
  font-weight: 800; font-size: 1.12rem; text-align: center; text-decoration: none; padding: 10px 14px; }
.big { color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); margin: 10px 0; }
.big:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.green { background: var(--green); } .blue { background: var(--blue); } .orange { background: var(--orange); } .red { background: var(--red); }
.wide { margin: 10px 0; }
.ghost { background: var(--card); border: 2px solid var(--line); color: var(--ink); font-weight: 700; }
.ghost.strong { border-color: var(--blue); color: var(--blue-d); } .ghost.danger { color: var(--red); border-color: #EFC4C6; }
.wa { background: #128C4A; color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.small { min-height: 44px; padding: 6px 14px; border-radius: 12px; background: var(--card); border: 2px solid var(--line); font-weight: 700; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; } .actions .big { margin: 0; min-height: 76px; font-size: 1.15rem; line-height: 1.15; }

/* ---- notes and badges */
.note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 14px;
  background: var(--amber-bg); color: #4A2C00; font-weight: 600; font-size: .95rem; }
.note.calm { background: var(--okbg); color: #0C4A22; } .note.warn { background: #FFE0D2; color: #6B1E00; } .note.heard { background: #E3EEFF; color: #0B2E5E; font-weight: 500; }
.note span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .note.heard span { display: block; }
.ribbon { margin: 10px 0 0; padding: 8px 12px; white-space: nowrap; align-items: center; border-radius: 12px; background: #2B2118; color: var(--sun); font-weight: 800; font-size: .85rem; display: flex; justify-content: space-between; gap: 8px; }
.ribbon a { color: #fff; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; vertical-align: middle; letter-spacing: .03em; }
.badge.ok { background: var(--okbg); color: #0C4A22; } .badge.warn { background: var(--amber-bg); color: var(--amber); } .badge.bad { background: #FBD5D7; color: #8E1218; }

/* ---- inputs */
.search, .field input { width: 100%; min-height: 58px; padding: 10px 16px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); font-size: 1.1rem; }
.search { margin-top: 14px; } input:focus { outline: 3px solid var(--sun); border-color: var(--orange); }
.field { display: block; margin: 14px 0 6px; } .field > span { display: block; font-weight: 700; margin: 0 2px 6px; }
.amount { display: flex; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding-left: 16px; }
.amount:focus-within { outline: 3px solid var(--sun); border-color: var(--orange); }
.amount i { font-style: normal; font-weight: 800; font-size: 1.9rem; color: var(--soft); }
.amount input { border: 0; outline: 0 !important; background: transparent; font-size: 2rem; font-weight: 800; min-height: 70px; padding-left: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { min-height: 48px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); font-weight: 700; }
.chip.strong { background: var(--orange); border-color: var(--orange); color: #fff; }
.check { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 6px 0; font-weight: 600; } .check input { width: 30px; height: 30px; accent-color: var(--green); flex: none; }

/* ---- customers */
.people, .entries, .stock, .privacy { list-style: none; margin: 12px 0 0; padding: 0; }
.person, .stockmain { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 68px; padding: 10px 14px; text-align: left;
  background: var(--card); border-radius: var(--r); border: 2px solid var(--line); }
.people li, .stock li { margin-bottom: 8px; }
.pname { font-weight: 700; font-size: 1.08rem; overflow-wrap: anywhere; }
.pbal { text-align: right; font-weight: 800; font-size: 1.25rem; white-space: nowrap; } .pbal small, .who small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.owe { color: var(--red); } .zero { color: var(--green-d); } .plus { color: var(--blue-d); }
.balance { margin: 12px 0 4px; padding: 16px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); text-align: center; }
.balance span { display: block; font-weight: 700; color: var(--soft); text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; }
.balance b { display: block; font-size: 3rem; line-height: 1.1; font-weight: 800; } .balance small { color: var(--soft); font-weight: 600; }
.balance.owe { border-color: #EFC4C6; background: #FFF4F2; } .balance.zero { border-color: #BFE3C8; background: #F1FBF3; } .balance.plus { border-color: #BCD3F2; background: #F0F6FF; }
.entry { background: var(--card); border: 2px solid var(--line); border-left-width: 8px; border-radius: 14px; padding: 10px 10px 6px 12px; margin-bottom: 8px; }
.entry.credit { border-left-color: var(--red); } .entry.payment { border-left-color: var(--green); }
.erow { display: flex; justify-content: space-between; gap: 10px; } .eamt { font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.entry.credit .eamt { color: var(--red); } .entry.payment .eamt { color: var(--green-d); }
.when { color: var(--soft); font-size: .84rem; } .items { font-size: .98rem; margin-top: 2px; }
.eright { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 2px; } .entry .play { margin: 6px 0 4px; }
.play { color: var(--blue-d); border-color: #BCD3F2; }

/* ---- the forms */
.micwrap { text-align: center; padding-top: 12px; }
.mic { --lv: 0; width: 132px; height: 132px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 var(--green-d), 0 0 0 calc(var(--lv) * 26px) rgba(21, 127, 59, .25); transition: box-shadow .08s linear; }
.mic svg { width: 62px; height: 62px; } .mic:active { transform: translateY(3px); }
.mic.rec { background: var(--red); box-shadow: 0 6px 0 #8E1218, 0 0 0 calc(6px + var(--lv) * 30px) rgba(192, 38, 45, .28); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.miclabel { font-weight: 800; font-size: 1.1rem; margin-top: 12px; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--card); border: 2px solid var(--green); border-radius: var(--r); }
.who b { font-size: 1.25rem; display: block; }
.picker .search { margin-top: 0; } .label { font-weight: 700; margin: 4px 2px; }
.picklist { max-height: 300px; overflow-y: auto; margin-top: 8px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); }
.pickrow { display: block; width: 100%; text-align: left; min-height: 56px; padding: 10px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.pickrow.new { color: var(--green-d); } .pickrow:active { background: var(--okbg); }
.itemgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.item { position: relative; display: flex; } .itemmain { flex: 1; min-height: 66px; padding: 8px 12px; border-radius: var(--r); background: var(--card); border: 2px solid var(--line);
  text-align: left; font-weight: 700; line-height: 1.2; } .itemmain small { display: block; font-weight: 600; color: var(--soft); font-size: .8rem; } .itemmain small.warn { color: var(--red); }
.item.on .itemmain { border-color: var(--green); background: var(--okbg); padding-right: 76px; }
.qty { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.itemminus { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 52px; border-radius: 12px; background: #fff; border: 2px solid var(--line); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 26%); }
.savebar .big { max-width: 532px; margin: 0 auto; min-height: 66px; font-size: 1.2rem; }

/* ---- saved */
.done { text-align: center; padding-top: 34px; } .done h1 { font-size: 2rem; }
.bigtick { width: 110px; height: 110px; margin: 0 auto 10px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; } .bigtick svg { width: 70px; height: 70px; }
.doneline { font-size: 1.1rem; font-weight: 600; }

/* ---- stock, tally, more */
.stockrow { display: flex; gap: 8px; align-items: stretch; } .stockmain { flex: 1; min-width: 0; } .stockrow .small { flex: none; white-space: normal; max-width: 104px; line-height: 1.15; }
.count { font-size: 1.7rem; font-weight: 800; } .count small { font-size: .8rem; color: var(--soft); font-weight: 600; }
.stockrow.low .stockmain { border-color: #E6B95A; background: #FFF6DE; } .stockrow.out .stockmain { border-color: #E49AA0; background: #FFF0F0; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 10px 14px; margin: 10px 0; }
.card h2 { margin-top: 6px; }
.trow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.trow:last-child { border-bottom: 0; } .trow b { font-size: 1.25rem; white-space: nowrap; } .trow.strong b { font-size: 1.6rem; } .trow.owe b { color: var(--red); }
.lowlist { font-size: 1rem !important; white-space: normal !important; text-align: right; }
.privacy li { position: relative; padding: 6px 0 6px 30px; } .privacy li::before { content: ""; position: absolute; left: 6px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.welcome { padding-top: 26px; text-align: center; } .welcome .card, .welcome .field { text-align: left; } .welcome h1 { font-size: 1.7rem; } .sub { color: var(--soft); font-size: 1.05rem; }
.logo img { border-radius: 24px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }

/* ---- bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 2px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); z-index: 6; }
.tabs button { min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .8rem; font-weight: 700; color: var(--soft); }
.tabs svg { width: 28px; height: 28px; } .tabs .on { color: var(--orange); box-shadow: inset 0 4px 0 var(--orange); }

/* ---- sheets, toast, lock */
.sheet { position: fixed; inset: 0; background: rgba(30, 20, 8, .55); display: flex; align-items: flex-end; z-index: 20; }
.sheet[hidden], .toast[hidden] { display: none; }
.sheetbody { width: 100%; max-width: 560px; margin: 0 auto; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheetbody h2 { margin-top: 4px; } .asktext { font-size: 1.15rem; font-weight: 600; margin: 8px 2px 14px; }
.toast { position: fixed; left: 14px; right: 14px; bottom: 88px; z-index: 30; padding: 14px 16px; border-radius: 14px; background: #2B2118; color: #fff; font-weight: 600; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.lock { padding-top: 40px; text-align: center; } .dots { display: flex; justify-content: center; gap: 16px; margin: 22px 0 6px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--orange); } .dots i.on { background: var(--orange); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 8px auto 14px; }
.key { min-height: 72px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); font-size: 1.8rem; font-weight: 800; } .key:active { background: var(--amber-bg); }
@media (min-width: 420px) { html { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .mic.rec { animation: none; } }

/* ---- 1.1: send receipt */
.receipt { padding-top: 16px; } .receipt h1 { font-size: 1.8rem; margin-top: 4px; }
.savedline { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 10px; border-radius: 999px; background: var(--okbg); color: #0C4A22; font-weight: 800; }
.savedline svg { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; }
.receipt .balance { padding: 10px 16px; } .receipt .balance b { font-size: 2.5rem; }
.big.wa.huge { min-height: 92px; font-size: 1.45rem; margin-top: 14px; } .big.wa.huge svg { width: 40px; height: 40px; }
.actions.two { margin-top: 10px; } .actions.two .wide { margin: 0; min-height: 64px; }
.addnum { text-align: left; border-color: var(--green); } .addnum .search { margin-top: 4px; }
.nosignal { font-weight: 700; color: var(--amber); background: var(--amber-bg); border-radius: 12px; padding: 8px 12px; display: inline-block; }
.showreceipt { padding-top: 18px; }
.paper { background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 22px 18px; text-align: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); margin-bottom: 16px; }
.rshop { font-size: 1.6rem; font-weight: 800; } .rdate { color: var(--soft); font-size: 1.05rem; margin-top: 2px; }
.rname { font-size: 1.5rem; font-weight: 700; margin: 14px 0 10px; padding-top: 12px; border-top: 2px dashed var(--line); overflow-wrap: anywhere; }
.rrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.25rem; } .rrow b { font-size: 1.7rem; white-space: nowrap; }
.ritems { text-align: left; font-size: 1.15rem; color: var(--soft); margin-top: 4px; }
.rbal { margin-top: 16px; padding: 14px 8px; border-radius: 16px; background: #FFF4F2; } .rbal.zero { background: #F1FBF3; } .rbal.plus { background: #F0F6FF; }
.rbal span { display: block; font-weight: 800; letter-spacing: .05em; font-size: 1rem; } .rbal b { display: block; font-size: 3.4rem; line-height: 1.1; font-weight: 800; }
.rthanks { margin-top: 14px; font-size: 1.3rem; font-weight: 700; }

/* ---- 1.2: the Neighbourhood Beacon */
.beaconbtn { border-color: var(--sun); background: #FFF6D6; } .beaconbtn svg { color: var(--orange); }
.note.nudge { background: #FFF1B8; border: 2px solid var(--sun); color: #3D2A00; } .nudgebtns { flex: none; flex-wrap: nowrap !important; }
.strongbtn { background: var(--orange); border-color: var(--orange); color: #fff; }
.bcard { display: block; width: 100%; text-align: left; margin: 10px 0; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); border-left-width: 10px; min-height: 84px; }
.bcard b { display: block; font-size: 1.2rem; margin-bottom: 2px; } .bcard span { display: block; color: var(--soft); font-size: .95rem; }
.bcard:active { transform: translateY(2px); } .b-out { border-left-color: var(--red); } .b-fresh { border-left-color: var(--green); } .b-power { border-left-color: var(--sun); } .b-custom { border-left-color: var(--blue); }
.btext { width: 100%; padding: 14px 16px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); font: inherit; font-size: 1.15rem; line-height: 1.4; color: var(--ink); resize: vertical; }
.btext:focus { outline: 3px solid var(--sun); border-color: var(--orange); } .btext.small { font-size: 1rem; }
.nrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 8px 6px 8px 14px; margin-bottom: 8px; }
.steps { list-style: none; margin: 8px 0; padding: 0; } .steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 1.05rem; }
.steps i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-style: normal; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 4px; }
.mock { border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #ECE5DD; min-height: 150px; position: relative; font-size: 13px; line-height: 1.25; }
.mockbar { background: #128C4A; color: #fff; font-weight: 700; padding: 6px 6px; display: flex; justify-content: space-between; } .mockbody { padding: 6px; }
.mockmenu { background: #fff; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); margin-left: 8px; } .mockmenu span { display: block; padding: 5px 6px; }
.mockmenu .hit { background: var(--sun); font-weight: 800; } .mockrow { display: flex; align-items: center; gap: 5px; background: #fff; border-radius: 6px; padding: 5px; margin-bottom: 4px; }
.mockrow i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #999; font-style: normal; font-size: 13px; line-height: 13px; text-align: center; color: #fff; } .mockrow i.on { background: #128C4A; border-color: #128C4A; }
.mockfab, .mocksend { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: #128C4A; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.mockbubble { background: #DCF8C6; border-radius: 8px; padding: 6px; margin: 4px 0 34px 10px; }

/* ---- 1.3: Friday reminders */
.remindbtn svg { color: var(--orange); }
.when.block { display: block; font-weight: 600; margin-top: 2px; }
.people.dim .person { background: #FAF5EC; } .people.dim .pbal { color: var(--soft); }
.remindcard { border-color: #EFC4C6; background: #FFF8F6; }
.rmhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .rmname { font-size: 1.3rem; overflow-wrap: anywhere; } .rmamt { font-size: 1.7rem; white-space: nowrap; }
.progress { display: flex; align-items: center; gap: 12px; margin: 10px 2px; font-size: 1.05rem; }
.progress progress { flex: 1; height: 14px; accent-color: var(--green); }

/* ---- 1.3.1: type in my old slate */
.opamt output { flex: 1; font-size: 2rem; font-weight: 800; min-height: 70px; display: flex; align-items: center; padding-left: 8px; } .opamt .ph { color: #B9A88F; }
.opkeys { max-width: none; margin: 10px 0; } .opkeys .key { min-height: 62px; }
.opphoto { display: flex; gap: 12px; align-items: center; margin: 14px 0 0; padding: 10px; border-radius: var(--r); background: var(--card); border: 2px solid var(--green); }
.opphoto img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; } .opphoto p { margin: 2px 0 0; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; } .photothumb { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); }
.photothumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ---- 1.3.5: shop summary card */
.sumrow { flex-wrap: wrap; } .sumrow small { flex-basis: 100%; text-align: right; color: var(--soft); font-size: .85rem; margin-top: -6px; }
.sumwords { padding: 12px 0; border-bottom: 1px solid var(--line); } .sumwords:last-child { border-bottom: 0; } .sumwords > b { display: block; margin-bottom: 4px; }
.sumwords ul { list-style: none; margin: 0; padding: 0; } .sumwords li { padding: 4px 0; } .sumwords li small { display: block; color: var(--soft); font-size: .85rem; }

/* ---- 1.3.4: supplier book */
.supbtn svg { color: var(--blue); }
.person.duenow { border-color: #E49AA0; background: #FFF0F0; } .when.warn, .balance small.warn { color: var(--red); font-weight: 800; }
.balance small { display: block; margin-top: 4px; }
input[type=date] { font: inherit; }

/* ---- 1.3.2: customer statement */
.stmtbtn svg { color: var(--blue); }
.statement { padding: 14px; }
.sthead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .sthead b { font-size: 1.2rem; overflow-wrap: anywhere; } .sthead span { color: var(--soft); font-weight: 700; }
.stname { font-size: 1.3rem; font-weight: 800; margin-top: 8px; overflow-wrap: anywhere; }
.strows { list-style: none; margin: 0; padding: 0; }
.strow { display: grid; grid-template-columns: 78px 1fr auto; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.strow.sthd { margin-top: 10px; padding: 6px 0; font-size: .8rem; font-weight: 800; color: var(--soft); text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid var(--line); }
.strow.sthd span:last-child { text-align: right; }
.sdate { font-size: .85rem; color: var(--soft); line-height: 1.25; } .swhat { min-width: 0; } .swhat b { display: block; } .swhat small { display: block; color: var(--soft); font-size: .85rem; overflow-wrap: anywhere; }
.samt { text-align: right; white-space: nowrap; } .samt b { display: block; } .samt small { display: block; color: var(--soft); font-size: .85rem; }
.strow.credit .samt b { color: var(--red); } .strow.payment .samt b { color: var(--green-d); } .strow.bf { background: #FAF5EC; }
.sttotals { margin: 10px 0 0; color: var(--soft); font-size: .92rem; font-weight: 600; }
.howtopay { margin: 12px 2px 0; padding: 10px 12px; border-radius: 12px; background: #F0F6FF; color: #0B2E5E; font-weight: 600; white-space: pre-line; }
@media print {
  .bar, .noprint, .tabs, .toast, .sheet, .ribbon { display: none !important; }
  body { background: #fff; } main { padding: 0; max-width: none; } .statement { border: 0; }
}
.photobig { display: block; width: 100%; border-radius: 14px; border: 2px solid var(--line); margin-top: 8px; background: #fff; }
/* ---- 1.3.6: about */
.about p { margin: 8px 2px; } .official { font-weight: 700; }

/* ---- 1.4.2: one-of-a-kind items */
.goodsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.goodcard { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 8px; min-height: 60px; }
.goodcard b { font-size: 1.02rem; line-height: 1.2; } .goodcard span { color: var(--soft); font-weight: 700; }
.gthumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; background: #F1E7D8; }
.nophoto { display: flex; align-items: center; justify-content: center; color: var(--soft); } .nophoto svg { width: 42px; height: 42px; fill: currentColor; }
.goodbig { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--r); display: block; margin: 12px 0 4px; }
.goodinfo p { margin: 8px 0 4px; }

/* ---- 1.4.3: lay-by */
.lbtop { display: flex; gap: 12px; align-items: center; margin: 4px 0 8px; }
.lbthumb { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; background: #F1E7D8; }
.lbcard progress, .progress progress { width: 100%; height: 14px; margin: 10px 0 4px; accent-color: var(--green); }
.linkbtn { min-height: 44px; font-weight: 700; color: var(--blue); text-decoration: underline; text-align: left; }
.goodcard.on { border-color: var(--green); background: var(--okbg); }
.lbpick .gthumb { aspect-ratio: 4 / 3; }
.rthumbs { display: flex; justify-content: center; margin: 6px 0; } .rthumb { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; background: #F1E7D8; }
.trow.lbrow b { color: var(--blue); }

/* ---- 1.4.5: item photos on screen (never in WhatsApp text), lay-bys on the statement */
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .done .thumbs, .paper .thumbs { justify-content: center; margin: 8px 0; }
.ethumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #F1E7D8; }
.sthumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #F1E7D8; }
.stlb { margin: 10px 0 4px; padding-top: 8px; border-top: 2px solid var(--line); } .stlb p { margin: 4px 0; }
