/* Nyetruk — design system app
   Mobile-first. Layout responsif memakai container query pada #app
   (bukan lebar jendela), supaya bingkai HP di desktop tetap akurat. */

/* ========== Token ========== */
:root {
  --bg: #f4f4f0;
  --bg-elev: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #eeeee8;
  --surface-3: #e2e1d9;
  --ink: #161816;
  --text: #161816;
  --text-2: #4c514a;
  --text-3: #686d64;
  --line: rgba(22, 24, 22, .09);
  --line-strong: rgba(22, 24, 22, .16);

  --primary: #0a7a51;
  --primary-press: #076342;
  --primary-soft: #dcf0e5;
  --primary-ink: #075c3d;
  --on-primary: #ffffff;
  --accent: #9a4706;
  --accent-soft: #fbeedb;
  --danger: #b83228;
  --danger-soft: #fae3df;
  --info: #1d5bb0;
  --info-soft: #e2ecfa;

  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .7);
  --scrim: rgba(12, 14, 12, .44);

  --shadow-1: 0 1px 2px rgba(20, 22, 18, .05), 0 0 0 1px rgba(20, 22, 18, .04);
  --shadow-2: 0 10px 30px -8px rgba(20, 22, 18, .16), 0 2px 6px rgba(20, 22, 18, .06);
  --shadow-3: 0 24px 60px -12px rgba(20, 22, 18, .28), 0 4px 12px rgba(20, 22, 18, .08);

  /* radius konsentris: luar = dalam + inset */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  --bg: #0f1110;
  --bg-elev: #141715;
  --surface: #191c1a;
  --surface-2: #222624;
  --surface-3: #2e3330;
  --ink: #f1f3ef;
  --text: #f1f3ef;
  --text-2: #bcc1b8;
  --text-3: #9aa096;
  --line: rgba(241, 243, 239, .08);
  --line-strong: rgba(241, 243, 239, .16);

  --primary: #3ccf93;
  --primary-press: #2fb47e;
  --primary-soft: #15372a;
  --primary-ink: #7fe0b5;
  --on-primary: #05261a;
  --accent: #f2ab4f;
  --accent-soft: #3a2a14;
  --danger: #f47c70;
  --danger-soft: #3c1d1a;
  --info: #8bb7f6;
  --info-soft: #18263a;

  --glass: rgba(28, 31, 29, .74);
  --glass-line: rgba(255, 255, 255, .08);
  --scrim: rgba(0, 0, 0, .6);

  --shadow-1: 0 0 0 1px rgba(255, 255, 255, .05);
  --shadow-2: 0 10px 30px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
  --shadow-3: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}

/* ========== Dasar (mobile-native) ========== */
* { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, a, [role="button"], .chip, .tab, .key {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.ph, .ph-fill, .ph-bold { font-size: 20px; line-height: 1; }
.muted { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input::placeholder { color: var(--text-3); opacity: 1; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

.press { transition: transform 140ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease; }
.press:active { transform: scale(.97); }

/* ========== Kerangka app ========== */
#app {
  container: app / inline-size;
  position: fixed; inset: 0;
  overflow: hidden;
  background: var(--bg);
}
.app { position: absolute; inset: 0; display: flex; }
.sidebar { display: none; }
.main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.screen { display: none; flex: 1; min-height: 0; flex-direction: column; position: relative; }
.screen.on { display: flex; animation: fadeUp 240ms var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.wrap { padding: 0 16px; }
.stack { display: grid; gap: 12px; }

#app[data-tabbar="hide"] .tabbar,
#app[data-shell="none"] .tabbar,
#app[data-shell="none"] .sidebar { display: none !important; }

/* ---------- Tab bar mengambang (kaca) ---------- */
.tabbar {
  position: absolute; left: 12px; right: 12px;
  bottom: calc(10px + var(--safe-b));
  height: 66px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  padding: 6px;
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--glass-line);
  z-index: 20;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 24px;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out);
}
.tab:active { transform: scale(.97); }
.tab .ph, .tab .ph-fill { font-size: 22px; }
.tab.on { background: var(--primary-soft); color: var(--primary-ink); }
.tab-space { flex: none; height: calc(88px + var(--safe-b)); }

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 16px 6px;
  min-height: 60px;
}
.large-title { padding: 4px 16px 10px; }
.large-title h1 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.large-title p { font-size: 14px; color: var(--text-3); margin-top: 4px; }
.top h1.small { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--text);
}
.icon-btn.ghost { background: transparent; box-shadow: none; }
.icon-btn .dot {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: var(--bg); font-size: 12px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}

.store-switch { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-align: left; border-radius: 14px; padding: 2px; }
.store-switch .logo { width: 40px; height: 40px; flex: none; }
.store-switch b { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; } /* nama panjang turun baris, tidak terpotong */
.store-switch b .ph { vertical-align: -2px; }
.store-switch > .grow { min-width: 0; }
.store-switch small { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.status-dot.on { background: var(--primary); }

/* ---------- Logo ---------- */
.logo { display: grid; place-items: center; border-radius: 12px; background: var(--primary); color: var(--on-primary); }
.logo svg { width: 60%; height: 60%; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.wordmark .logo { width: 36px; height: 36px; border-radius: 11px; }

/* ---------- Input ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 6px 0 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  color: var(--text-3);
}
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; height: 100%; }
.search input::placeholder { color: var(--text-3); }
.search .icon-btn { width: 36px; height: 36px; box-shadow: none; background: var(--surface-2); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input {
  height: 52px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; border-radius: var(--r-sm);
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.input input { width: 100%; flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; }
.input .pre { color: var(--text-3); font-weight: 700; }
.input:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.hint { font-size: 13px; color: var(--text-3); }
.hint.good { color: var(--primary-ink); font-weight: 700; }

/* ---------- Chip & segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r-full);
  background: var(--surface); box-shadow: var(--shadow-1);
  font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap;
}
.chip .count { font-size: 12px; font-weight: 600; color: var(--text-3); }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip.on .count { color: inherit; }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
  padding: 4px; border-radius: 14px; background: var(--surface-2);
}
.seg button {
  height: 40px; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-height: 48px; padding: 8px 14px;
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  display: inline-flex; flex-direction: column; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.opt small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.opt.on { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.opt.on small { color: var(--primary-ink); }

/* switch */
.switch { width: 52px; height: 32px; border-radius: 16px; background: var(--surface-3); position: relative; flex: none; transition: background-color 200ms ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform 240ms var(--ease-out); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ---------- Tombol ---------- */
.btn {
  height: 52px; padding: 0 20px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 800; white-space: nowrap;
}
.btn.sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:active { background: var(--primary-press); }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.soft { background: var(--surface-2); color: var(--text); }
.btn.line { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.block { width: 100%; }
.btn .sub { font-weight: 600; opacity: 1; }
.row-actions { display: flex; gap: 8px; }
.row-actions > .btn { flex: 1; }
.row-actions > .btn.fit { flex: none; }
.pill-btn {
  height: 36px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap;
}

/* ---------- Kartu & list ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.group { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; text-align: left; width: 100%; }
.group > .cell + .cell { box-shadow: inset 0 1px 0 var(--line); }
.cell .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.cell .t { font-weight: 700; font-size: 16px; }
.cell .d { font-size: 13px; color: var(--text-3); }
.cell .end { text-align: right; flex: none; }
.cell .chev { color: var(--text-3); font-size: 18px; }
.section-label { font-size: 13px; font-weight: 700; color: var(--text-3); padding: 18px 20px 8px; }
.thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; }
.thumb .ph { font-size: 22px; }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.ok { background: var(--primary-soft); color: var(--primary-ink); }
.tag.warn { background: var(--accent-soft); color: var(--accent); }
.tag.low { background: var(--danger-soft); color: var(--danger); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.neutral { background: var(--surface-2); color: var(--text-2); }

.banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; font-weight: 700; }
.banner.warn { background: var(--accent-soft); color: var(--accent); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner.ok { background: var(--primary-soft); color: var(--primary-ink); }

/* pastel kategori */
.t1 { background: #fde6c4; color: #7c430b; }
.t2 { background: #d3eedf; color: #0a5539; }
.t3 { background: #e1e2fb; color: #35399a; }
.t4 { background: #fadde4; color: #8e2741; }
.t5 { background: #d8e9f7; color: #1b5585; }
.t6 { background: #ede4d1; color: #634c1b; }
:root[data-theme="dark"] .t1 { background: #3b2a14; color: #f6c682; }
:root[data-theme="dark"] .t2 { background: #143226; color: #86dcb3; }
:root[data-theme="dark"] .t3 { background: #222448; color: #b6b9fb; }
:root[data-theme="dark"] .t4 { background: #3b1b23; color: #f4a9ba; }
:root[data-theme="dark"] .t5 { background: #162b3e; color: #a1cbef; }
:root[data-theme="dark"] .t6 { background: #322819; color: #ddc690; }

/* ---------- Kasir ---------- */
.kasir { display: flex; flex: 1; min-height: 0; }
.kasir-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 2px 16px 16px;
}
.prod {
  position: relative;
  min-height: 132px;
  padding: 12px;
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 2px;
  overflow: hidden;
  text-align: left;
}
.prod .name { font-size: 14px; font-weight: 700; line-height: 1.3; padding-right: 30px; }
.prod .price { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.prod .price.long { font-size: 13px; overflow-wrap: anywhere; } /* harga ratusan juta–miliaran */
.prod .meta { margin-top: auto; font-size: 12px; font-weight: 700; }
.prod .meta.low { color: var(--danger); }
.prod .ico { position: absolute; right: 10px; bottom: 10px; font-size: 40px; }
.prod .qty {
  position: absolute; top: 8px; right: 8px;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--r-full);
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 800; display: grid; place-items: center;
}
.prod.sel { box-shadow: inset 0 0 0 2px currentColor; }
.prod .var { position: absolute; left: 12px; bottom: 12px; }

.cartbar {
  position: absolute; left: 12px; right: 12px;
  bottom: calc(86px + var(--safe-b));
  height: 60px; padding: 0 8px 0 16px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 20px;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-3);
  z-index: 15;
}
.cartbar .count { width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.cartbar .tot { flex: 1; text-align: left; line-height: 1.15; }
.cartbar .tot small { display: block; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.cartbar .tot b { font-size: 18px; font-weight: 800; }
.cartbar .go { height: 44px; padding: 0 16px; border-radius: 14px; background: var(--primary); color: var(--on-primary); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.kasir .scroll { padding-bottom: 168px; }

.cartpanel { display: none; }

/* baris pesanan */
.line { display: flex; gap: 12px; padding: 12px 0; align-items: center; }
.line + .line { box-shadow: inset 0 1px 0 var(--line); }
.line .info { flex: 1; min-width: 0; }
.line .nm { font-weight: 700; font-size: 16px; }
.line .meta { font-size: 13px; color: var(--text-3); }
.line .pr { font-weight: 800; font-size: 14px; margin-top: 2px; }
.stepper { display: flex; align-items: center; flex: none; background: var(--surface-2); border-radius: 12px; height: 40px; }
.stepper button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
.stepper .ph { font-size: 16px; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.sum { display: grid; gap: 6px; padding: 12px 0 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.kv.total { color: var(--text); font-weight: 800; font-size: 20px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--line); margin-top: 4px; }
.kv .good { color: var(--primary-ink); font-weight: 700; }

/* ---------- Overlay: sheet / dialog / layar penuh ---------- */
.overlay { position: absolute; inset: 0; z-index: 40; display: none; }
.overlay.on { display: block; }
.overlay .scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade 240ms ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 90%;
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3);
  animation: sheetIn 420ms var(--ease-sheet);
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes dialogIn { from { opacity: 0; scale: .96; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 8px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px 10px; }
.sheet-head h2 { font-size: 20px; font-weight: 800; flex: 1; letter-spacing: -.01em; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 8px; }
.sheet-foot { padding: 12px 16px calc(12px + var(--safe-b)); box-shadow: inset 0 1px 0 var(--line); }

.fullscreen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); animation: pushIn 260ms var(--ease-out); }
@keyframes pushIn { from { opacity: 0; transform: translateX(24px); } }
.foot { padding: 12px 16px calc(12px + var(--safe-b)); }

/* ---------- Bayar ---------- */
.amount-hero { text-align: center; padding: 4px 16px 14px; }
.amount-hero .lbl { font-size: 14px; font-weight: 700; color: var(--text-3); }
.amount-hero .amt { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.methods { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 12px; }
.methods::-webkit-scrollbar { display: none; }
.method {
  flex: none; min-width: 84px; height: 64px; padding: 0 12px;
  border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.method .ph { font-size: 22px; }
.method[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.received { margin: 0 16px; padding: 10px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); display: flex; align-items: center; gap: 12px; }
.received .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.received .lbl { font-size: 13px; font-weight: 700; color: var(--text-3); }
.change-pill { display: inline-flex; flex-direction: column; align-items: flex-end; }
.change-pill small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.change-pill b { font-size: 18px; font-weight: 800; color: var(--primary-ink); }
.quick { display: flex; gap: 8px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 800; font-size: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 16px 0; }
.key {
  height: 56px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-1);
  font-size: 24px; font-weight: 700;
  display: grid; place-items: center;
  transition: transform 100ms var(--ease-out), background-color 100ms ease;
}
.key:active { transform: scale(.97); background: var(--surface-2); }
.key.fn { background: transparent; box-shadow: none; }

.qr-card { margin: 0 auto; width: min(100%, 240px); padding: 18px; border-radius: var(--r-xl); background: #fff; color: #111; box-shadow: var(--shadow-2); text-align: center; }
.qr-card svg { width: 100%; height: auto; aspect-ratio: 1; display: block; overflow: hidden; }
.qr-card .m { font-weight: 800; font-size: 14px; margin-top: 10px; }
.qr-card .s { font-size: 12px; color: #555; }

/* sukses */
.success { text-align: center; padding: 12px 16px 6px; }
.check {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center;
  animation: pop 300ms var(--ease-out);
}
.check .ph-bold { font-size: 36px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.success h2 { font-size: 20px; font-weight: 800; }
.success .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; }
.success p { color: var(--text-3); font-size: 14px; font-weight: 600; }
.receipt {
  margin: 14px 16px 0; padding: 16px 16px 22px;
  background: #fffefa; color: #222;
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow-1);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 100% repeat-x;
}
.receipt .c { text-align: center; }
.receipt .b { font-weight: 700; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }

/* scan */
.camera { position: absolute; inset: 0; background: #1c1f1d; box-shadow: inset 0 0 160px rgba(0, 0, 0, .75); color: #fff; display: flex; flex-direction: column; }
.camera .top { color: #fff; }
.camera .icon-btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; backdrop-filter: blur(12px); }
.viewfinder { position: relative; width: min(78%, 320px); aspect-ratio: 1.5; margin: 12vh auto 0; }
.viewfinder i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.viewfinder .laser { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #4ade9b; box-shadow: 0 0 12px #4ade9b; animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
.scan-hint { text-align: center; font-size: 14px; font-weight: 600; color: #e6e6e6; margin-top: 18px; }
.scan-toast { margin: auto 16px 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .94); color: #111; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-3); }
.scan-toast b { font-size: 14px; display: block; }
.scan-toast small { font-size: 13px; color: #555; }
.camera .foot .btn.soft { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(12px); }

/* PIN */
.pin { display: flex; flex-direction: column; align-items: center; padding: calc(24px + var(--safe-t)) 16px 0; flex: 1; }
.people { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); width: 72px; }
.person .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.person.on .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary); }
.person.on { color: var(--text); }
.dots { display: flex; gap: 14px; margin: 26px 0 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); }
.dots i.f { background: var(--text); box-shadow: none; }
.pin .keypad { width: 100%; max-width: 360px; padding: 18px 0 0; }
.pin .key { height: 64px; border-radius: 50%; width: 64px; justify-self: center; }

/* welcome / onboarding */
.hero-art { position: relative; height: 300px; margin: 0 16px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(160deg, var(--primary-soft), var(--surface) 70%); }
.hero-art .r1, .hero-art .r2 { position: absolute; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.hero-art .r1 { left: 18px; right: 70px; top: 34px; padding: 14px; }
.hero-art .r2 { right: 18px; width: 150px; bottom: 26px; padding: 14px; }
.hero-art .r3 { position: absolute; left: 18px; bottom: 26px; width: 160px; padding: 12px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-2); display: flex; gap: 10px; align-items: center; }
.hero-art .r3 b { display: block; font-size: 13px; }
.hero-art .r3 small { font-size: 12px; color: var(--accent); font-weight: 700; }
.ob { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ob-body { padding: 20px 20px 0; }
.ob-body h1 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.ob-body p.lead { color: var(--text-2); margin-top: 10px; }
.progress { display: flex; gap: 6px; padding: calc(16px + var(--safe-t)) 20px 0; }
.progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.progress i.on { background: var(--primary); }
.choice { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); width: 100%; }
.choice.on { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-1); }
.choice .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.choice .ico .ph { font-size: 22px; }
.choice .t { font-weight: 800; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.choice .d { color: var(--text-2); font-size: 14px; margin-top: 2px; display: block; }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); flex: none; margin-top: 2px; display: grid; place-items: center; }
.choice.on .radio { box-shadow: inset 0 0 0 2px var(--primary); }
.choice.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

/* laporan */
.bento { display: grid; gap: 12px; padding: 0 16px; grid-template-columns: repeat(2, 1fr); }
.bento > * { min-width: 0; }
.span-2 { grid-column: span 2; }
.hero-num { padding: 18px; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); display: flex; flex-direction: column; align-items: flex-start; }
.hero-num .target { margin-top: auto; padding-top: 18px; width: 100%; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.hero-num .target .meter { background: color-mix(in srgb, var(--bg) 18%, var(--ink)); }
.hero-num .lbl { font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.hero-num .amt { max-width: 100%; overflow-wrap: anywhere; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 2px; }
.delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 8px; border-radius: 8px; font-size: 13px; font-weight: 800; background: var(--primary); color: var(--on-primary); }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px; }
.kpi .lbl { font-size: 13px; font-weight: 700; color: var(--text-3); }
.kpi .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.kpi .s { font-size: 12px; font-weight: 700; color: var(--primary-ink); }
.chart { padding: 16px; }
.chart .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.chart .head b { font-size: 16px; }
.chart .head span { font-size: 13px; color: var(--text-3); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 132px; }
.bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars i { display: block; width: 100%; max-width: 36px; border-radius: 8px 8px 4px 4px; background: var(--surface-3); }
.bars .today i { background: var(--primary); }
.bars small { font-size: 12px; color: var(--text-3); font-weight: 700; }
.meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.split-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 3px; margin: 4px 0 12px; }
.split-bar i { display: block; height: 100%; }
.legend { display: grid; gap: 8px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.legend em { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-weight: 800; }

/* pelanggan */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 16px 16px; }
.profile .av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.profile h2 { font-size: 24px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.profile p { color: var(--text-3); font-size: 14px; font-weight: 600; }
.debt { padding: 16px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent); }
.debt .lbl { font-size: 14px; font-weight: 700; }
.debt .amt { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.debt .s { font-size: 13px; font-weight: 700; }
.timeline .cell .ico { border-radius: 50%; }

/* form produk */
.photo-pick { width: 112px; height: 112px; border-radius: var(--r-lg); display: grid; place-items: center; text-align: center; gap: 4px; font-size: 13px; font-weight: 700; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--text-3); align-content: center; }
.photo-pick .ph { font-size: 28px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* shift */
.drawer-sum .cell { min-height: 48px; }
.drawer-sum .t { font-size: 14px; font-weight: 600; color: var(--text-2); }
.drawer-sum .end { font-weight: 800; }

/* printer */
.preview-wrap { padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.preview-wrap .receipt { margin: 0 auto; max-width: 280px; }

/* lisensi */
.plans { display: grid; gap: 12px; }
.plan { padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); display: grid; gap: 6px; }
.plan.cur { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-1); }
.plan h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan .price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.plan .price small { font-size: 14px; color: var(--text-3); font-weight: 700; }
.plan ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ph { color: var(--primary-ink); font-size: 18px; }
.license-card { position: relative; overflow: hidden; padding: 18px; border-radius: var(--r-lg); color: #fff; background: #0b5a3e; box-shadow: var(--shadow-2); }
.license-card .k { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; margin-top: 14px; }
.license-card .lbl { font-size: 13px; font-weight: 700; color: #cfeee0; }
.license-card h3 { font-size: 20px; font-weight: 800; margin-top: 2px; }

/* tutorial */
.step { display: flex; gap: 14px; padding: 16px; }
.step + .step { box-shadow: inset 0 1px 0 var(--line); }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; flex: none; font-size: 14px; }
.step .n.done { background: var(--primary); color: var(--on-primary); }
.step b { display: block; font-size: 16px; }
.step p { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.illus { margin-top: 12px; border-radius: 14px; background: var(--surface-2); height: 120px; display: grid; place-items: center; }
.illus .win { width: 72%; height: 78px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden; }
.illus .win > i { height: 16px; background: var(--surface-3); display: block; }
.illus .win > div { flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--primary-ink); }
.qr { width: 96px; height: 96px; padding: 6px; border-radius: 12px; background: #fff; color: #111; }

/* desktop table */
.table { display: none; }

/* Tooltip: hover (mouse), fokus keyboard, tekan lama (sentuh) */
[data-tip] { position: relative; }
.tip {
  position: absolute; top: calc(100% + 6px); left: 50%;
  translate: -50% 0;
  padding: 4px 8px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  display: none; pointer-events: none; z-index: 60;
}
@keyframes tipIn { from { opacity: 0; } }
[data-tip]:focus-visible .tip, [data-tip].long .tip { display: block; animation: tipIn 150ms var(--ease-out); }

/* ========== Hover (hanya perangkat dengan mouse) ========== */
@media (hover: hover) and (pointer: fine) {
  [data-tip]:hover .tip { display: block; animation: tipIn 150ms var(--ease-out) 400ms backwards; }
  .chip:not(.on):hover, .icon-btn:hover, .pill-btn:hover, .btn.line:hover, .btn.soft:hover, .method:not([aria-selected="true"]):hover { background: var(--surface-2); }
  .prod:hover { box-shadow: var(--shadow-2); }
  .prod.sel:hover { box-shadow: inset 0 0 0 2px currentColor, var(--shadow-2); }
  .cell[role="button"]:hover, button.cell:hover { background: var(--surface-2); }
  .tab:not(.on):hover, .side-nav button:not(.on):hover { background: var(--surface-2); }
  .key:hover { background: var(--surface-2); }
  .btn.primary:hover { background: var(--primary-press); }
  .choice:hover, .opt:hover { box-shadow: var(--shadow-2); }
  .choice.on:hover { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-2); }
}

/* ========== Tablet & desktop (container) ========== */
@container app (min-width: 720px) {
  .tabbar, .cartbar, .tab-space { display: none !important; }
  .sidebar {
    display: flex; flex-direction: column; gap: 8px;
    width: 92px; flex: none;
    padding: 16px 10px;
    background: var(--bg-elev);
    box-shadow: inset -1px 0 0 var(--line);
  }
  .sidebar .wordmark { justify-content: center; padding: 4px 0 14px; }
  .sidebar .wordmark span { display: none; }
  .side-nav { display: grid; gap: 8px; }
  .side-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 4px; border-radius: 16px;
    font-size: 12px; font-weight: 700; color: var(--text-2);
  }
  .side-nav button .ph, .side-nav button .ph-fill { font-size: 22px; }
  .side-nav button.on { background: var(--primary-soft); color: var(--primary-ink); }
  .side-foot { margin-top: auto; display: grid; gap: 8px; justify-items: center; }
  .side-foot .me { display: none; }
  .side-foot .only-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 16px; font-size: 12px; font-weight: 700; color: var(--text-2); }
  .side-foot .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

  .kasir .scroll { padding-bottom: 16px; }
  .cartpanel {
    display: flex; flex-direction: column;
    width: 360px; flex: none;
    background: var(--bg-elev);
    box-shadow: inset 1px 0 0 var(--line);
  }
  .cartpanel .sheet-head { padding-top: 18px; }
  .cartpanel .sheet-body { flex: 1; }
  .ov-cart { display: none !important; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  /* sheet & layar penuh → dialog di tengah */
  .overlay .sheet, .overlay .fullscreen.dialog {
    left: 50%; top: 50%; right: auto; bottom: auto;
    width: min(520px, calc(100% - 48px));
    max-height: calc(100% - 48px);
    border-radius: var(--r-xl);
    translate: -50% -50%;
    animation: dialogIn 260ms var(--ease-out);
    box-shadow: var(--shadow-3);
  }
  .overlay .fullscreen.dialog { height: auto; background: var(--bg-elev); }
  .overlay .fullscreen.dialog .scroll { flex: 0 1 auto; }
  .overlay .sheet .grab { display: none; }

  .large-title { padding-top: 22px; }
  .wrap, .chips, .large-title, .top { padding-left: 24px; padding-right: 24px; }
  .bento { padding: 0 24px; grid-template-columns: repeat(4, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-2-m { grid-column: span 2; }

  .center-col { width: 100%; max-width: 760px; margin: 0 auto; }
  .split .wrap, .split .chips { padding-left: 0; padding-right: 0; }
  .split .section-label { padding-left: 4px; }
  .overlay .methods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .overlay .method { min-width: 0; padding: 0 4px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; padding: 0 24px; align-items: start; }
  .split > .wrap { padding: 0; }
  .detail-pane { display: block !important; position: sticky; top: 0; }
  .list-only { display: none; }
  .table { display: block; }
  .mobile-only { display: none !important; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .screen > .top { width: 100%; max-width: 808px; margin: 0 auto; }
  .screen.full > .top { max-width: none; }
  .wrap > .seg { max-width: 440px; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 0 24px; }
  .settings-grid .wrap { padding: 0; }
  .ob-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; max-width: 1040px; margin: 0 auto; padding: 32px; flex: 1; }
  .ob-split .hero-art { height: 480px; margin: 0; }
  .ob-split .ob-body h1 { font-size: 40px; }
  .ob-split .hero-art .r1 { right: 120px; top: 48px; }
  .ob-split .hero-art .r3 { bottom: 120px; }
  .camera .viewfinder { margin-top: 8vh; }
}
@container app (min-width: 1100px) {
  .sidebar { width: 248px; padding: 20px 14px; }
  .sidebar .wordmark { justify-content: flex-start; padding: 4px 10px 18px; }
  .sidebar .wordmark span { display: inline; }
  .side-nav button { flex-direction: row; gap: 12px; padding: 0 14px; height: 48px; font-size: 14px; }
  .side-foot { justify-items: stretch; }
  .side-foot .me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
  .side-foot .me b { display: block; font-size: 14px; }
  .side-foot .me small { font-size: 12px; color: var(--text-3); font-weight: 600; }
  .side-foot .only-rail { display: none; }
  .cartpanel { width: 400px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.detail-pane { display: none; }
.desk-only { display: none; }
@container app (min-width: 720px) { .desk-only { display: block; } }

/* tabel produk (desktop) */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 700; color: var(--text-3); padding: 12px 14px; box-shadow: inset 0 -1px 0 var(--line); }
.tbl td { padding: 10px 14px; box-shadow: inset 0 -1px 0 var(--line); vertical-align: middle; }
.tbl tr:last-child td { box-shadow: none; }
.tbl .pn { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.tbl .pn small { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tbl .r { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .screen.on, .sheet, .check, .fullscreen, .overlay .scrim, .viewfinder .laser { animation: fade 200ms ease; }
  .press:active, .key:active, .tab:active { transform: none; }
  .viewfinder .laser { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

[role="dialog"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== Tambahan layar v3 ===== */
.prod.manual { background: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--text-2); }
.prod.manual .name { color: var(--text); }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-tile { min-height: 76px; padding: 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 700; text-align: left; }
.choice-tile .ph { font-size: 24px; color: var(--text-2); }
.choice-tile.on { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.choice-tile.on .ph { color: var(--primary-ink); }
.cbox { width: 24px; height: 24px; border-radius: 8px; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--on-primary); }
.cbox .ph-bold { font-size: 14px; }
[aria-checked="true"] > .cbox { background: var(--primary); box-shadow: none; }
.tbl tr.bad td { background: color-mix(in srgb, var(--danger-soft) 55%, transparent); }
.code { display: flex; gap: 8px; justify-content: center; margin: 4px 0; }
.code span { width: 46px; height: 58px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.code span.cur { box-shadow: inset 0 0 0 2px var(--primary); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help { min-height: 120px; padding: 14px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 4px; text-align: left; }
.help .ph { font-size: 28px; margin-bottom: auto; }
.help b { font-size: 14px; font-weight: 800; padding-top: 12px; }
.help span { font-size: 12px; font-weight: 600; }
.coach { position: absolute; inset: 0; pointer-events: none; }
.coach-ring { position: absolute; left: 12px; top: 236px; width: calc(50% - 12px); height: 140px; border-radius: 24px; box-shadow: 0 0 0 4px var(--primary), 0 0 0 9999px rgba(0, 0, 0, .001); animation: fade 300ms ease; }
.coach-card { position: absolute; left: 16px; right: 16px; bottom: calc(168px + var(--safe-b)); margin: 0 auto; max-width: 400px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow-3); display: grid; gap: 8px; justify-items: start; pointer-events: auto; animation: dialogIn 260ms var(--ease-out); }
.coach-card h2 { font-size: 18px; font-weight: 800; }
.coach-card p { font-size: 14px; color: var(--text-2); }
.coach-card .row-actions { width: 100%; padding-top: 4px; }
.methods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 16px 12px; }
.methods-grid .method { min-width: 0; height: 56px; }
@container app (min-width: 720px) {
  .coach-card { bottom: 32px; }
  .help-grid { grid-template-columns: repeat(3, 1fr); }
  .type-grid { grid-template-columns: repeat(4, 1fr); }
  .overlay .methods-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@container app (min-width: 720px) and (max-width: 1099px) {
  .cartpanel { width: 300px; }
  .cartpanel .sheet-head h2 .muted { display: none; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
  .prod { min-height: 120px; padding: 10px; }
  .prod .ico { font-size: 32px; }
}

/* ===== Komponen app (M1) ===== */
.drag-zone, .sheet .sheet-head { touch-action: none; }
.drag-zone { cursor: grab; padding-bottom: 2px; }
.overlay.closing .scrim { opacity: 0; transition: opacity 200ms ease; }
.overlay.closing .sheet { transform: translateY(100%); transition: transform 220ms var(--ease-sheet); }
.overlay.closing .fullscreen { opacity: 0; transition: opacity 180ms ease; }
.sheet { transition: transform 300ms var(--ease-sheet); }
.stepper .step-btn { width: 40px; height: 40px; border-radius: 12px; background: transparent; box-shadow: none; }
.stepper .step-btn:disabled { opacity: .35; }
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 48px 24px; }
.empty .empty-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-1); color: var(--text-3); margin-bottom: 8px; }
.empty .empty-ico .ph { font-size: 28px; }
.empty b { font-size: 18px; font-weight: 800; }
.empty p { color: var(--text-3); font-size: 14px; max-width: 320px; margin-bottom: 10px; }
.toasts { position: fixed; left: 0; right: 0; top: calc(12px + var(--safe-t)); z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: inline-flex; align-items: center; gap: 8px; max-width: 420px; padding: 10px 16px; border-radius: var(--r-full); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-3); transition: opacity 180ms ease, transform 180ms var(--ease-out); animation: toastIn 240ms var(--ease-out); }
.toast .ph-fill { font-size: 18px; }
.toast.ok .ph-fill { color: var(--primary); }
.toast.warn .ph-fill { color: var(--accent); }
.toast.error .ph-fill { color: var(--danger); }
.toast.leaving { opacity: 0; transform: translateY(-100%); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-100%); } }
:root[data-theme="dark"] .toast.ok .ph-fill { color: #0a7a51; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.app .main > .screen { flex: 1; }
@media (prefers-reduced-motion: reduce) {
  .toast { animation: fade 200ms ease; }
  .toast.leaving { transform: none; }
  .overlay.closing .sheet { transform: none; opacity: 0; transition: opacity 180ms ease; }
}
@container app (min-width: 720px) {
  .overlay.closing .sheet { transform: none !important; opacity: 0; scale: .96; transition: opacity 180ms ease, scale 180ms var(--ease-out); }
  .overlay.closing .fullscreen.dialog { scale: .96; transition: opacity 180ms ease, scale 180ms var(--ease-out); }
}

/* ===== Produk (M2) ===== */
.thumb.photo { object-fit: cover; display: block; background: var(--surface-2); }
.photo-pick { flex: none; overflow: hidden; }
.photo-pick.has { padding: 0; box-shadow: var(--shadow-1); }
.tone-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tone-dot { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.tone-dot.on { box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 5px var(--primary); }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.icon-pick { height: 48px; border-radius: 14px; display: grid; place-items: center; }
.icon-pick .ph { font-size: 22px; }
.icon-pick.on { box-shadow: inset 0 0 0 2px currentColor; }
.opt-edit { display: flex; gap: 8px; align-items: center; }
.opt-edit .input { height: 48px; }
.opt-edit .input.price { width: 130px; flex: none; }
.cell.add-row .t { color: var(--primary-ink); }
.picked { color: var(--primary); }
.row-link { display: flex; align-items: center; gap: 12px; font-weight: 700; text-align: left; border-radius: 10px; }
.tbl .row-link small { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .row-link:hover { color: var(--primary-ink); } }
.two-col { display: grid; gap: 16px; }

/* ===== Pemindai (M3) ===== */
.camera { overflow: hidden; }
.camera-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera > :not(video) { position: relative; z-index: 1; }
.camera .top { background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.camera .foot { margin-top: auto; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.scan-hint { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.scan-toast { margin-top: auto; animation: toastIn 260ms var(--ease-out); }
.scan-toast + .foot { margin-top: 0; }
.scan-toast .ok-mark { color: #0a7a51; }
.scan-problem { margin: 12vh 24px 0; padding: 20px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .1); color: #fff; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 14px; font-weight: 600; }
.manual-code { display: flex; gap: 8px; }
.manual-code .input { background: #fff; color: #111; }
.manual-code .input input { color: #111; }
@container app (min-width: 720px) {
  .overlay .dialog.scanner { height: min(680px, calc(100% - 48px)); }
}
.input .icon-btn.in-field { width: 40px; height: 40px; margin-right: -8px; }
.stock-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* HP sempit (≤380 px): "Stok masuk" satu baris penuh, dua tombol lain berdampingan */
@container app (max-width: 380px) { .stock-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stock-actions > :first-child { grid-column: 1 / -1; } }
.stock-actions .btn { padding: 0 10px; font-size: 14px; }
.stock-num { font-size: 18px; }
.banner-act { background: transparent; color: inherit; }

/* ===== Stok (M3) ===== */
.in-item { padding: 12px; display: grid; gap: 10px; }
.in-head { display: flex; align-items: center; gap: 10px; }
.in-head b { font-size: 16px; }
.count-in { width: 84px; height: 44px; flex: none; padding: 0 10px; }
.count-in input { text-align: center; font-weight: 800; }
.picker .group { max-height: none; }

/* ===== Label barcode (M3) ===== */
.lbl-item { box-sizing: border-box; padding: 2mm 3mm; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; color: #000; font-family: var(--font); overflow: hidden; }
.lbl-name { font-size: 9pt; font-weight: 700; line-height: 1.15; max-height: 2.3em; overflow: hidden; }
.lbl-price { font-size: 11pt; font-weight: 800; margin-top: .5mm; }
.lbl-bar { width: 100%; height: 9mm; margin-top: 1mm; }
.lbl-bar svg { width: 100%; height: 100%; display: block; }
.lbl-code { font-family: var(--mono); font-size: 7pt; letter-spacing: .05em; }
.lbl-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(58mm, 1fr)); justify-items: center; gap: 10px; padding: 12px; border-radius: var(--r-lg); background: var(--surface-2); }
.lbl-preview.roll58 { grid-template-columns: 1fr; }
.lbl-preview .lbl-item { width: 58mm; height: 30mm; border-radius: 6px; box-shadow: var(--shadow-1); }
#print-root .lbl-item { height: 100%; }
#print-root { display: none; }
@media print {
  #app, .toasts { display: none !important; }
  #print-root { display: block; }
  html, body { background: #fff !important; }
}
.stock-num + .d { margin-left: 3px; }
.lbl-err { font-size: 7pt; color: #b83228; font-weight: 700; display: grid; place-items: center; height: 100%; }

/* ===== Kasir (M4) ===== */
.cartbar { padding: 0 8px; gap: 8px; }
.cartbar-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 100%; padding-left: 8px; color: inherit; text-align: left; border-radius: 14px; }
.cartbar .go { flex: none; }
.line-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 12px; }
.line-main .info { display: flex; flex-direction: column; }
.line .info .nm { font-weight: 700; font-size: 16px; }
.cart-lines .line .meta { font-size: 13px; color: var(--text-3); }
.btn-sq { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: none; flex: none; }
.btn-sq.line { background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.keypad .icon-btn.key { width: auto; height: 56px; border-radius: 14px; background: transparent; box-shadow: none; }
.keypad .icon-btn.key .ph { font-size: 24px; }
.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row .t { font-weight: 700; }
.prod.has-photo { color: #fff; background: #222; }
.prod-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .45)); }
.prod.has-photo > :not(img) { position: relative; z-index: 1; }
.store-card { width: 100%; padding: 16px; display: flex; gap: 14px; align-items: center; text-align: left; }
.receipt { white-space: pre; overflow-x: auto; }
.receipt-80 { font-size: 11px; }
.success + .receipt, .receipt { max-width: 340px; margin-left: auto; margin-right: auto; }
.print-receipt { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 9pt; line-height: 1.35; white-space: pre; color: #000; padding: 2mm 0; }
.print-receipt.p58 { width: 58mm; }
.print-receipt.p80 { width: 80mm; font-size: 9pt; }
.print-receipt .b { font-weight: 700; }
a.btn { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cartbar-open:hover { background: rgba(255, 255, 255, .06); } }
.row-actions > .icon-btn, .row-actions > .btn-sq { flex: none; }
.btn-sq { min-width: 52px; }
.btn-sq .ph { font-size: 22px; }

/* ===== Pembayaran lanjutan (M5) ===== */
.receipt-logo { display: block; max-width: 45%; max-height: 64px; margin: 0 auto 8px; filter: grayscale(1) contrast(1.4); }
.print-receipt .receipt-logo { max-width: 40mm; max-height: 20mm; }
.qr-card img { width: 100%; height: auto; display: block; border-radius: 8px; image-rendering: pixelated; }
.bank-card { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.qris-setup { padding: 16px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.printer-card { padding: 14px; display: flex; gap: 12px; align-items: center; }
.logo-row { display: flex; gap: 14px; align-items: center; }
.logo-prev { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: #fff; box-shadow: var(--shadow-1); flex: none; }
.logo-prev.empty { display: grid; place-items: center; background: var(--surface); color: var(--text-3); }
.logo-prev.empty .ph { font-size: 28px; }
.bill-list { display: grid; gap: 8px; }
.bill-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 0; }
.bill-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 12px; text-align: left; border-radius: 14px; }
.bill-main .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.bill-main .t { font-weight: 700; }
.bill-main .d { font-size: 13px; color: var(--text-3); }
.wrap .received { margin: 0; }
.method[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.cart-meta { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }

/* riwayat transaksi */
.cell.sel-row { background: var(--primary-soft); }
.chip-sep { flex: none; width: 1px; align-self: stretch; margin: 6px 2px; background: var(--line); }
@container app (min-width: 720px) and (max-width: 1099px) { .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; } }

/* PIN: label, galat, layar kunci */
.pin-label { margin-top: 20px; font-weight: 800; font-size: 18px; text-align: center; }
.pin-error { min-height: 20px; font-size: 14px; font-weight: 700; color: var(--danger); text-align: center; }
.people { flex-wrap: wrap; }
.person .nm { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen.lock .pin { justify-content: center; }
.overlay .pin { padding-top: 0; }
.overlay .pin .key { height: 56px; width: 56px; }

/* laporan: grafik tren & metode (warna kategori tervalidasi, terang/gelap) */
:root { --m-tunai: #2a78d6; --m-qris: #eb6834; --m-transfer: #1baf7a; --m-ewallet: #eda100; --m-kartu: #e87ba4; --m-kasbon: #008300; }
:root[data-theme="dark"] { --m-tunai: #3987e5; --m-qris: #d95926; --m-transfer: #199e70; --m-ewallet: #c98500; --m-kartu: #d55181; }
.trend { position: relative; touch-action: pan-y; }
.trend .bars { gap: 2px; height: 140px; border-bottom: 1px solid var(--line-strong); }
.trend .bars div { gap: 0; }
.trend .bars i { max-width: 28px; border-radius: 4px 4px 0 0; background: var(--primary); min-height: 0; }
.trend .bars div.on i { background: var(--primary-ink); }
.trend .axis { display: flex; gap: 2px; margin-top: 6px; }
.trend .axis small { flex: 1; text-align: center; font-size: 12px; color: var(--text-3); font-weight: 700; white-space: nowrap; overflow: visible; }
.trend .ymax { position: absolute; top: -2px; left: 0; font-size: 12px; font-weight: 700; color: var(--text-3); }
.trend .gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); pointer-events: none; }
.trend .tipbox { position: absolute; top: 0; transform: translateX(-50%); padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-2); z-index: 2; }
.trend .tipbox small { display: block; font-size: 12px; font-weight: 600; opacity: .8; }
.delta.down { background: var(--accent-soft); color: var(--accent); }
.delta.flat { background: color-mix(in srgb, var(--bg) 18%, var(--ink)); color: var(--bg); }
.split-bar { gap: 2px; }
.rank { display: grid; gap: 12px; }
.rank .row { display: block; font-size: 14px; font-weight: 600; }
.rank .row > div:first-child { display: flex; gap: 8px; }
.rank .row b { margin-left: auto; font-weight: 800; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 12px; color: var(--text-3); font-weight: 700; }
.tbl .r { text-align: right; }

/* kode sambung server */
.code-input { font-size: 24px !important; letter-spacing: .4em; font-weight: 800; text-align: center; }

/* langkah bernomor (pindah HP) */
.steps { display: grid; gap: 10px; padding-left: 22px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.steps b { color: var(--text); }

/* wizard pertama kali */
.ob-col { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* tur layar kasir */
.tour { position: fixed; inset: 0; z-index: 60; }
.tour-ring { position: fixed; top: 0; left: 0; border-radius: 20px; box-shadow: 0 0 0 4px var(--primary), 0 0 0 9999px rgba(0, 0, 0, .55); transition: transform 260ms var(--ease-out); pointer-events: none; }
.tour-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); }
.tour-card { position: fixed; left: 16px; right: 16px; bottom: auto; }
@media (prefers-reduced-motion: reduce) {
  .tour-ring { transition: none; }
  .tour-card { animation: none; }
  .overlay .sheet, .overlay .fullscreen.dialog, .scan-toast { animation: fade 200ms ease; }
  .overlay.closing .sheet, .overlay.closing .fullscreen.dialog { scale: none; transform: none; }
}
/* angka sangat besar (miliaran) di kartu utama laporan */
.hero-num .amt.long { font-size: 24px; }

/* pusat bantuan: tutorial bergambar */
.tut { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tut-step { padding: 14px; display: grid; gap: 14px; }
.tut-art { border-radius: var(--r-md); background: var(--surface-2); padding: 16px; display: grid; place-items: center; min-height: 168px; }
.tut-text { display: flex; gap: 12px; align-items: flex-start; }
.tut-text b { font-size: 16px; font-weight: 800; display: block; }
.tut-text p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.tut-n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.art-phone { width: 172px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 2px var(--line-strong); padding: 8px; display: grid; gap: 6px; }
.art-desk { width: min(100%, 300px); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-strong); overflow: hidden; }
.art-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--text-3); background: var(--surface-2); border-radius: 14px; }
.art-desk .art-bar { border-radius: 0; }
.art-desk .art-bar > i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.art-desk .art-bar span { margin-left: 6px; }
.art-url { flex: 1; }
.art-body { display: grid; gap: 8px; padding: 8px 6px 10px; }
.art-desk .art-body { padding: 12px; }
.art-line { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); }
.art-hi { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; font-size: 12px; font-weight: 800; color: var(--primary-ink); background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.art-hi .ph-bold { font-size: 16px; }
.art-item, .art-file { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.art-item .ph, .art-item .ph-fill, .art-file .ph { font-size: 16px; }
.art-app { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; padding: 6px 0; }
.art-logo { display: inline-block; width: 28px; height: 28px; border-radius: 8px; background: var(--primary); }
.art-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px 0; }
.art-icons span { aspect-ratio: 1; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; }
.art-icons span.on { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.art-cap { font-size: 12px; color: var(--text-2); font-weight: 600; text-align: center; }
.art-dock { display: flex; justify-content: space-around; align-items: center; padding-top: 18px; }
.art-dock > span { width: 18px; height: 18px; border-radius: 4px; background: var(--surface-3); }
.art-row { display: flex; align-items: center; gap: 14px; }
.art-printer { position: relative; width: 84px; height: 72px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-2); display: grid; place-items: center; font-size: 36px; color: var(--text-2); }
.art-led { position: absolute; right: 10px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.art-note { font-size: 13px; font-weight: 700; color: var(--text-2); max-width: 140px; }
.art-h { font-size: 14px; font-weight: 800; }
.art-code { font-size: 24px; font-weight: 800; letter-spacing: .2em; text-align: center; }
.art-code.sm { font-size: 18px; padding: 6px; border-radius: 10px; background: var(--surface-2); }
.art-qr { width: 64px; height: 64px; margin: 0 auto; border-radius: 6px; background: repeating-conic-gradient(var(--text) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.art-term { display: block; font-family: var(--mono); font-size: 12px; line-height: 1.6; background: #111; color: #9fe5bd; padding: 10px; border-radius: 8px; }
.art-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.art-chips span { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.art-chips span.on { background: var(--primary-soft); color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary); }
@container app (min-width: 720px) { .tut-step { grid-template-columns: 260px 1fr; align-items: center; } }

/* daftar panjang: muat bertahap */
.more { display: flex; justify-content: center; padding: 12px 0 4px; }
