:root {
  --bg: #f4f6f4; --panel: #ffffff; --text: #1b211d; --muted: #66706a; --line: #dfe4e0;
  --accent: #1f7a4d; --accent-ink: #ffffff; --danger: #b3261e; --warn: #9a6700; --ok: #1f7a4d;
  --soft: #eaf3ee; --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121614; --panel: #1b201d; --text: #e6ebe7; --muted: #95a199; --line: #2c3430;
    --accent: #3fae78; --accent-ink: #0b130e; --danger: #ef6b62; --warn: #e0b04a; --ok: #3fae78; --soft: #1f2d25; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); min-height: 44px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
label > input, label > select, label > textarea { margin-top: 4px; }
button { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.danger { color: var(--danger); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.big { min-height: 64px; font-size: 18px; width: 100%; }
h1, h2, h3 { margin: 0 0 12px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
header .brand { font-weight: 700; margin-right: 8px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
nav a { padding: 10px 14px; border-radius: 8px; color: var(--text); text-decoration: none; }
nav a.active { background: var(--soft); color: var(--accent); font-weight: 600; }
.scalechip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 999px; }
.scalechip .w { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 80px; text-align: right; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); } .dot.moving { background: var(--warn); } .dot.err { background: var(--danger); }
.scalechip button { min-height: 34px; border-radius: 999px; }

main { padding: 16px; max-width: 1280px; margin: 0 auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.counter { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.3fr); gap: 16px; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 860px) { .counter, .grid2, .form2 { grid-template-columns: 1fr; } }

.list { max-height: 360px; overflow: auto; }
.list button { display: flex; justify-content: space-between; width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; background: none; }
.list button:hover, .list button.sel { background: var(--soft); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--soft); color: var(--accent); font-weight: 600; }
.badge.bad { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

.meter { margin: 8px 0 14px; }
.meter .bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--accent); }
.meter .fill.high { background: var(--warn); } .meter .fill.full { background: var(--danger); }
.meter .lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.products button { height: auto; padding: 12px; text-align: left; display: block; }
.products button.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.products .n { font-weight: 600; display: block; }
.products .s { font-size: 13px; color: var(--muted); }

.weigh { display: flex; gap: 10px; align-items: stretch; margin: 14px 0; }
.weigh input { font-size: 28px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.weigh .unit { align-self: center; font-size: 22px; color: var(--muted); }
.problems { color: var(--danger); margin: 8px 0; padding-left: 18px; }
.total { font-size: 22px; font-weight: 700; }

.login { max-width: 380px; margin: 10vh auto; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); padding: 20px; width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(0 0 0 / .4); }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 8px; background: var(--text); color: var(--bg); opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; } #toast.err { background: var(--danger); color: #fff; }
.scroll { overflow-x: auto; }

/* buy-in, vault and refill */
.row.nowrap { flex-wrap: nowrap; gap: 6px; }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
table.lines td { vertical-align: middle; } table.lines input { min-width: 90px; } table.lines select { min-width: 160px; }
tfoot td { border-bottom: 0; font-weight: 700; }
a[data-trace] { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
dialog.wide { width: min(820px, calc(100vw - 32px)); }
.scroll.tall { max-height: 220px; overflow: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips button { min-height: 40px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.group { padding: 12px 0; border-bottom: 1px solid var(--line); } .group:last-child { border-bottom: 0; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 15px; }
label.check input { width: auto; min-height: 0; margin: 0; }

/* labels: always black on white, sized for a 62 mm label roll or an A4 sheet */
#labels { position: fixed; inset: 0; z-index: 50; overflow: auto; background: var(--bg); }
.labelbar { position: sticky; top: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.sheet { display: flex; flex-wrap: wrap; gap: 4mm; padding: 16px; }
.label { width: 62mm; padding: 3mm; background: #fff; color: #000; border: 1px solid #bbb; border-radius: 2mm; text-align: center; break-inside: avoid; }
.label .ln { font-weight: 700; font-size: 13pt; line-height: 1.15; overflow-wrap: anywhere; }
.label .lw { font-size: 16pt; font-weight: 700; }
.label .ls { font-size: 7.5pt; margin-bottom: 1.5mm; }
.label svg { max-width: 100%; height: auto; }
@media print {
  body { background: #fff; }
  body > :not(#labels) { display: none !important; }
  #labels { position: static; overflow: visible; background: #fff; }
  .labelbar { display: none; } .sheet { padding: 0; }
}

/* Product name */
.product-name { font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; margin-bottom: 4px; }
header .scs { font-weight: 800; font-size: .75rem; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; border: 1px solid currentColor; opacity: .7; margin-right: 6px; }

/* operator console */
:root { --info: #2f5fb3; }
@media (prefers-color-scheme: dark) { :root { --info: #7ea6ef; } }
a { color: var(--accent); }
a.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; }
button.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.badge.info { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.small { font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .tl { font-size: 13px; color: var(--muted); }
.tile .tv { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; }
.tile .ts { font-size: 13px; color: var(--muted); }
.tile.warn { border-color: var(--warn); } .tile.warn .tv { color: var(--warn); }
.tile.bad { border-color: var(--danger); } .tile.bad .tv { color: var(--danger); }
.filters { margin-bottom: 8px; } .filters input { flex: 2 1 220px; width: auto; } .filters select { flex: 1 1 150px; width: auto; }
table.clubs tbody tr { cursor: pointer; } table.clubs tbody tr:hover { background: var(--soft); }
table.clubs td.num { white-space: nowrap; } table.clubs td:first-child { min-width: 170px; }
body.op main { max-width: 1600px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-bottom: 18px; }
.bars .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.bars .bar span { display: block; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .bar em { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 11px; font-style: normal; color: var(--muted); }
ul.alerts { margin: 12px 0; padding-left: 18px; } ul.alerts li.bad { color: var(--danger); } ul.alerts li.warn { color: var(--warn); }
.licbar { padding: 10px 16px; background: color-mix(in srgb, var(--warn) 18%, var(--panel)); color: var(--text); border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; }
.licbar.bad { background: color-mix(in srgb, var(--danger) 18%, var(--panel)); }
.pre { white-space: pre-wrap; margin: 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
code.big { font-size: 20px; font-weight: 700; }
textarea { min-height: 80px; }

/* v7: header with a folding menu on phones and small laptops */
.menubtn { display: none; margin-left: auto; }
.navbox { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; }
.userbox { display: flex; align-items: center; gap: 8px; }
nav a { padding: 10px 12px; }
@media (min-width: 861px) { nav { flex-wrap: nowrap; } }
@media (max-width: 1500px) and (min-width: 861px) {
  nav a { padding: 8px 8px; } header { gap: 8px; } .userbox button { padding: 0 10px; } .userbox .muted { display: none; }
  header .brand { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .scalechip .w { min-width: 64px; } .scalechip button { padding: 0 10px; }
}
.filters label.check { white-space: nowrap; }
.dlgerr:empty { display: none; }
@media (max-width: 860px) {
  header { padding: 8px 12px; gap: 8px; }
  header .brand { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 0; }
  .menubtn { display: inline-block; min-height: 40px; padding: 0 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
  .navbox { display: none; order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch; }
  header.open .navbox { display: flex; }
  nav { flex-direction: column; } nav a { padding: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .userbox { justify-content: flex-end; flex-wrap: wrap; }
  .scalechip { order: 5; flex-basis: 100%; justify-content: space-between; padding: 2px 2px 2px 12px; }
  .scalechip button { min-height: 32px; }
  .scalechip .w { min-width: 0; }
  main { padding: 12px; }
  .panel { padding: 12px; }
  /* operator clubs list and member list as cards on a phone */
  table.clubs thead, table.members thead { display: none; }
  table.clubs, table.clubs tbody, table.clubs tr, table.clubs td,
  table.members, table.members tbody, table.members tr, table.members td { display: block; width: 100%; }
  table.clubs tr, table.members tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 10px; }
  table.clubs td, table.members td { border: 0; padding: 4px 0; text-align: left !important; }
  table.clubs td.num, table.members td.num { text-align: left; }
  table.clubs td:nth-child(n+5)::before { content: attr(data-l) ': '; color: var(--muted); font-size: 13px; }
}
td.acts { text-align: right; white-space: normal; }
td.acts button { margin: 2px 0; }
.scalechip.sim { border-style: dashed; }
.scalechip.sim .w::after { content: ' demo'; font-size: 11px; font-weight: 400; color: var(--warn); }
td.neg { color: var(--danger); }
.problems.big { font-weight: 600; }
.notice { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 15%, var(--panel)); }
.warnpanel { border-color: var(--warn); }

/* v8: photos, credit, door, cash, phone card, sign-up, languages, operator */
.mhead { display: flex; gap: 14px; align-items: flex-start; }
.mphoto { width: 132px; height: 132px; border-radius: 12px; object-fit: cover; flex: none; background: var(--soft); border: 1px solid var(--line); }
.mphoto.none { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 6px; }
.mphoto.big { width: 240px; height: 240px; } .mphoto.sm { width: 88px; height: 88px; } .mphoto.xs { width: 40px; height: 40px; border-radius: 8px; }
.mphoto img, .idphoto img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.idphoto { max-width: 320px; max-height: 240px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: var(--soft); }
.idphoto.sm { width: 140px; height: 88px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.photorow { display: flex; gap: 12px; align-items: center; margin: 6px 0 12px; }
@media (max-width: 520px) { .mphoto { width: 96px; height: 96px; } .mphoto.big { width: 100%; height: auto; aspect-ratio: 1; } }
.creditline { margin-top: 4px; }
.paybox { margin: 0 0 12px; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 15px; cursor: pointer; }
.pill input { width: auto; min-height: 0; margin: 0; }
.pill:has(input:checked) { border-color: var(--accent); background: var(--soft); color: var(--accent); font-weight: 600; }
button.attn { border-color: var(--warn); color: var(--warn); font-weight: 600; }
.qr { background: #fff; padding: 8px; border-radius: 8px; width: 256px; max-width: 100%; margin: 8px 0; }
.qr.sm { width: 160px; } .qr svg { width: 100%; height: auto; display: block; }
.camwrap video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; transform: scaleX(-1); }
.filebtn { cursor: pointer; margin: 0; }
label.btn { color: var(--text); font-size: 15px; }
.coins summary { cursor: pointer; color: var(--accent); margin-bottom: 8px; }
.coingrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0 8px; }
.appcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 10px; }
.licbar.info { background: color-mix(in srgb, var(--info) 14%, var(--panel)); }
.licbar.support { background: color-mix(in srgb, var(--info) 22%, var(--panel)); }
.licbar .sm { margin-left: 8px; }
.langsel { width: auto; min-height: 36px; padding: 4px 8px; }
.searchbar { display: flex; gap: 8px; } .searchbar input { flex: 1; }
h3.sect { margin: 4px 0 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.okline { color: var(--ok); font-weight: 600; }
.warnline { border-left: 4px solid var(--warn); }
pre.err { white-space: pre-wrap; margin: 0; font-size: 12px; max-height: 120px; overflow: auto; }
.nowrap { white-space: nowrap; }
.neg { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body.public .login { max-width: 420px; margin: 4vh auto; } body.public .login.wide { max-width: 680px; }
@media (max-width: 720px) { body.public .login { margin: 12px; } }
/* phone membership card */
body.cardpage { background: #10261b; min-height: 100vh; }
.mcard { max-width: 400px; margin: 16px auto; padding: 22px 18px; background: #fff; color: #111; border-radius: 18px; text-align: center; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.mclub { font-weight: 800; font-size: 20px; color: #1f7a4d; margin-bottom: 12px; }
.mcphoto { width: 180px; height: 180px; object-fit: cover; border-radius: 14px; border: 1px solid #ddd; }
.mcname { font-size: 22px; font-weight: 700; margin-top: 10px; } .mcno { color: #555; }
.mcstate { margin: 12px auto; padding: 10px; border-radius: 10px; font-size: 20px; font-weight: 800; }
.mcstate.ok { background: #e3f4ea; color: #146c3c; } .mcstate.bad { background: #fbe4e2; color: #a3221a; }
.mcstate span { font-weight: 500; font-size: 15px; display: block; }
.mcard svg { max-width: 100%; height: auto; }
.mcline { margin-top: 6px; font-size: 16px; } .mchint { font-size: 13px; color: #555; margin-top: 14px; } .mcupd { font-size: 11px; color: #888; }

/* v8.1 shift weighing */
.pos { color: var(--warn); }
table.shift .weigh { margin: 0; gap: 6px; align-items: center; }
table.shift .weigh input { font-size: 18px; width: 110px; padding: 8px 10px; }
table.shift .weigh .unit { font-size: 15px; }
table.shift select { max-width: 210px; }
table.shift tr.done { background: color-mix(in srgb, var(--accent, #1f7a4f) 7%, transparent); }
@media (max-width: 760px) {
  table.shift thead { display: none; }
  table.shift, table.shift tbody { display: block; }
  table.shift tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
  table.shift td { display: block; border: 0; padding: 0; text-align: left; }
  table.shift td:nth-child(4) { grid-row: 1; grid-column: 2; align-self: center; }
  table.shift td:nth-child(2), table.shift td:nth-child(3) { grid-column: 1 / -1; }
  table.shift td:nth-child(2)::before, table.shift td:nth-child(3)::before { content: attr(data-l) ': '; color: var(--muted); font-size: 13px; display: block; margin-bottom: 2px; }
  table.shift select { max-width: none; width: 100%; }
  table.shift .weigh input { flex: 1; width: auto; min-width: 0; }
}
dialog td.num { white-space: nowrap; }

/* v8.3 simple counter */
.simple { max-width: 980px; margin: 0 auto; display: grid; gap: 16px; }
.sbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sbtns button { font-size: 17px; padding: 14px 22px; min-width: 150px; }
.scalebox { text-align: center; padding: 26px 20px; }
.weigh.huge { justify-content: center; align-items: baseline; margin: 0 0 8px; }
.weigh.huge input { font-size: clamp(56px, 13vw, 120px); width: 6.2ch; max-width: 100%; text-align: center; border: 0; background: transparent; padding: 0; height: auto; line-height: 1.1; }
.weigh.huge input:focus { outline: 2px solid var(--line); border-radius: var(--radius); }
.weigh.huge .unit { font-size: clamp(28px, 5vw, 48px); }
.slot { min-height: 150px; }
.slothead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.slothead h3 { margin: 0; flex: 1; }
.step { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--muted); display: grid; place-items: center; font-weight: 700; }
.step.ok { background: var(--accent); color: var(--accent-ink); }
.scanhint { font-size: 22px; font-weight: 700; margin: 6px 0; }
.boxname { font-size: 24px; font-weight: 700; }

/* v8.4 sale pop-up after a box scan */
dialog.saledlg { width: min(620px, calc(100vw - 24px)); text-align: center; padding: 26px 22px 20px; }
.saleprod { font-size: 30px; font-weight: 800; }
.salecode { margin: 4px 0 10px; }
.saledlg .weigh.huge input { font-size: clamp(56px, 14vw, 104px); }
.saleprice { font-size: 34px; font-weight: 800; margin: 6px 0; }
.salehint { font-size: 18px; font-weight: 600; margin: 10px 0; }
.saledlg .problems { text-align: left; }
.salebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.salebtns button { font-size: 22px; padding: 20px 10px; height: auto; font-weight: 700; }

/* v8.5: operator "inside the club", counter button picker, sale by piece */
.btnpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 14px; margin: 6px 0 10px; }
.sbtns { flex-wrap: wrap; }
details.sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::before { content: '▸'; color: var(--muted, #888); }
details.sec[open] > summary::before { content: '▾'; }
details.sec > summary h3 { margin: 0; display: inline; }
details.sec[open] > summary { margin-bottom: 10px; }
details.wres { border-top: 1px solid var(--line, #ddd); padding: 8px 0; }
details.wres > summary { cursor: pointer; }
.insidehead .jump { flex-wrap: wrap; gap: 6px; }
.weigh.pieces { justify-content: center; gap: 10px; }
.weigh.pieces button { font-size: 2rem; min-width: 64px; min-height: 64px; }
.weigh.pieces input { max-width: 4ch; text-align: center; }
table.menu td { padding: 10px 8px; font-size: 1.05rem; }

/* v8.8: a livelier counter screen: greeting and clock, coloured button tiles with icons, a scale display, scan zones */
.simple.v2 { max-width: 1060px; gap: 18px; }
.shello { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, #14532d 0%, #1f7a4d 55%, #2fa36b 100%); box-shadow: 0 8px 24px rgba(31,122,77,.25); }
.shello .hi { font-size: clamp(20px, 3.2vw, 28px); font-weight: 800; }
.shello .muted { color: rgba(255,255,255,.8); text-transform: capitalize; }
.sclock { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.simple.v2 .sbtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.tilebtn { --c: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0 !important; height: auto;
  padding: 16px 10px !important; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); font-weight: 700; font-size: 16px !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 13%, var(--panel)), var(--panel)); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 30%, transparent);
  transition: transform .12s ease, box-shadow .12s ease; }
.tilebtn .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); }
.tilebtn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 28%, transparent); }
.tilebtn:active { transform: translateY(1px) scale(.98); }
.c-new { --c: #1f7a4d; } .c-refill { --c: #2f6fd0; } .c-waste { --c: #c2571a; } .c-expense { --c: #b8860b; } .c-shift { --c: #7a4fc2; }
.c-door { --c: #0f8a8a; } .c-cash { --c: #2e8b57; } .c-members { --c: #c23b7a; } .c-stock { --c: #546e7a; } .c-cat { --c: #6a9a1f; }
.simple.v2 .scalebox { position: relative; border: 0; border-radius: 20px; padding: 22px 20px 20px; color: #d9ffe9;
  background: radial-gradient(120% 140% at 50% 0%, #1d4a35 0%, #0f2a1e 55%, #0a1c14 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 14px 34px rgba(10,28,20,.35); }
.scalehead { display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: #8fd3ae; }
.scalehead .dot { width: 10px; height: 10px; border-radius: 50%; background: #5d7a6b; }
.scalehead .dot.on { background: #43e08d; box-shadow: 0 0 0 0 rgba(67,224,141,.7); animation: livedot 1.6s infinite; }
@keyframes livedot { 70% { box-shadow: 0 0 0 10px rgba(67,224,141,0); } 100% { box-shadow: 0 0 0 0 rgba(67,224,141,0); } }
.simple.v2 .scalebox .weigh.huge input { color: #eafff3; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 0 26px rgba(67,224,141,.35); caret-color: #43e08d; }
.simple.v2 .scalebox .weigh.huge input::placeholder { color: rgba(217,255,233,.28); }
.simple.v2 .scalebox .weigh.huge input:focus { outline: 2px solid rgba(67,224,141,.35); }
.simple.v2 .scalebox .unit, .simple.v2 .scalebox .muted { color: #8fd3ae; }
.simple.v2 .scalebox button { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #eafff3; }
.simple.v2 .slot { border-radius: 16px; min-height: 190px; border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(180deg, var(--soft), var(--panel) 60%); }
.simple.v2 .slot:has(.step.ok) { border-style: solid; border-color: var(--accent); background: var(--panel); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 16%, transparent); }
.simple.v2 .step { width: 32px; height: 32px; background: var(--accent); color: var(--accent-ink); }
.sloticon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 6px 0 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.sloticon svg { width: 38px; height: 38px; }
.sloticon.pulse { animation: scanpulse 2s ease-in-out infinite; }
@keyframes scanpulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 50% { transform: scale(1.06); box-shadow: 0 0 0 12px transparent; } }
.simple.v2 .scanhint { color: var(--accent); }
dialog.saledlg { border: 0; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.4); border-top: 10px solid var(--accent); }
dialog.saledlg::backdrop { background: rgba(8,20,14,.6); backdrop-filter: blur(3px); }
.saledlg .saleprice { color: var(--accent); font-size: 40px; }
.salebtns button { border-radius: 14px; }
@media (max-width: 640px) { .simple.v2 .sbtns { grid-template-columns: repeat(3, 1fr); gap: 8px; } .tilebtn .ico { width: 44px; height: 44px; } .tilebtn { font-size: 13px !important; padding: 12px 4px !important; } .shello { padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .sloticon.pulse, .scalehead .dot.on { animation: none; } .tilebtn { transition: none; } }

/* v8.11 two-step login */
ol.steps { padding-left: 20px; margin: 8px 0 12px; } ol.steps li { margin: 4px 0; }
.reccodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.reccodes code { font-size: 17px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; letter-spacing: .06em; }
#tfkey { display: block; margin: 4px 0 12px; word-break: break-all; }
#tfa1 { display: grid; gap: 8px; max-width: 360px; }

/* v8.12 USDT payment window (was Bitcoin in 8.11) and card receipt number */
.payref { max-width: 420px; margin: 6px auto 0; } .payref input { width: 100%; text-align: center; }
dialog.usdtdlg { width: min(430px, 94vw); text-align: center; }
.usdtamt { display: grid; gap: 2px; margin: 4px 0 10px; } .usdtamt b { font-size: 34px; line-height: 1.1; } .usdtamt span { color: var(--muted); font-size: 16px; letter-spacing: .02em; }
.usdtqr { margin: 0 auto; width: 260px; max-width: 100%; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); } .usdtqr svg { display: block; width: 100%; height: auto; }
.usdtaddr { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; color: var(--muted); margin: 6px 0; }
.usdtstate { font-weight: 600; margin: 10px 0; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.usdtstate .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent, #1f8a4c); animation: usdtspin 1s linear infinite; }
@keyframes usdtspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .usdtstate .spin { animation: none; } }
.usdthand { text-align: left; margin: 8px 0; font-size: 14px; } .usdthand summary { cursor: pointer; color: var(--muted); } .usdthand label { margin-top: 8px; }

/* v8.11 ID scan on the sign-up forms */
.idscan { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px; margin: 8px 0 14px; border: 1px dashed var(--line); border-radius: 10px; }
.idscan .idscanbtn { flex: none; font-weight: 600; } .idscan .idscanmsg { flex: 1; min-width: 200px; margin: 0; }
.idscan.busy .idscanbtn { opacity: .5; pointer-events: none; }
.idscanmsg.okmsg { color: #1f7a45; font-weight: 600; }
input.scanned, select.scanned { border-color: #1f8a4c; box-shadow: 0 0 0 2px rgba(31, 138, 76, .15); }
.idscan label.idscanbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: #1f8a4c; color: #fff; }
#tfa1[hidden], .payref[hidden], .idscan [hidden] { display: none; }
dialog.usdtdlg .salebtns { justify-content: center; }

.usdtnet { margin: 0 0 8px; } .usdtamt b { letter-spacing: .01em; }

/* v8.13 several products in one sale */
dialog.cartdlg { width: min(560px, 96vw); }
.cartlist { width: 100%; margin: 8px 0 14px; } .cartlist td { padding: 10px 6px; vertical-align: middle; }
.cartlist .carttotal td { font-size: 22px; font-weight: 700; border-top: 2px solid var(--line); }
.cartask { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .cartask button { min-height: 64px; font-size: 18px; font-weight: 600; }
.cartask[hidden], .cartpay[hidden], .gabox[hidden] { display: none; }
.cartcancel { text-align: center; margin: 14px 0 0; font-size: 14px; }
.cartchip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; margin-top: 14px; padding: 14px 18px; border-radius: 12px; border: 2px solid #1f8a4c; background: rgba(31, 138, 76, .08); font-size: 17px; min-height: 60px; }
.cartchip .go { color: #1f7a45; font-weight: 600; font-size: 15px; }
@media (max-width: 520px) { .cartask { grid-template-columns: 1fr; } }

/* v8.15 */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }

/* v8.16 privacy notice next to the consent tick */
.privacy { border: 1px solid var(--line, #dfe5e1); border-radius: 10px; padding: 10px 14px; margin: 10px 0; font-size: .86rem; color: var(--muted, #5b6b62); background: rgba(0,0,0,.02); }
.privacy p { margin: 6px 0 0; }
