:root {
  --bg: #F5F2EA;
  --ink: #1B1F1D;
  --muted: #5B615D;
  --muted2: #4A504C;
  --line: #E3DED1;
  --line2: #CFC8B8;
  --soft: #E8E3D6;
  --green: #0B5B4B;
  --green-soft: #E3F0EC;
  --green-text: #D6E7E2;
  --gold: #F2D58A;
  --amber-bg: #FCE8C3;
  --amber: #6B4407;
  --amber-text: #8A5A12;
  --red: #A3261B;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.wrap {
  max-width: 480px; margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px;
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted { font-size: 14px; color: var(--muted); }
.small { font-size: 12px; color: var(--muted); line-height: 1.5; }
h2 { margin: 0; font-size: 18px; font-weight: 800; }

/* Header */
.top { display: flex; flex-direction: column; gap: 4px; }
.top-row { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.badge-sim { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); }
.clock-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.clock { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }

/* Tabs */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--soft); border-radius: 14px; }
.tabs button { min-height: 44px; padding: 0 2px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; background: transparent; color: var(--muted2); }
.tabs button[aria-current="page"] { background: #fff; color: var(--green); font-weight: 800; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Cards */
.hero { background: var(--green); color: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.hero .eyebrow { color: var(--gold); }
.hero .sub { font-size: 15px; line-height: 1.5; color: var(--green-text); }
.hero h1 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.big { font-size: 30px; font-weight: 800; line-height: 1.15; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: var(--gold); }
.bar.light { background: var(--soft); }
.bar.light > div { background: var(--green); }
.note { background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.note p { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card.now { background: var(--green-soft); border: 2px solid var(--green); }
.card p, .item p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted2); white-space: pre-line; }
.time { font-size: 13px; font-weight: 700; color: var(--green); }
.title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.list { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.list-row { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid #EFEBE1; font-size: 14px; line-height: 1.45; }
.list-row:first-child { border-top: none; }
.list-row .t { width: 92px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.list-row.on { background: var(--green-soft); box-shadow: inset 4px 0 0 var(--green); }
.list-row.done { opacity: .55; }
.empty { margin: 0; padding: 20px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); background: #fff; border-radius: 16px; }

/* Pills & tags */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.tag.green { background: var(--green); color: #fff; }
.tag.amber { background: var(--amber-bg); color: var(--amber); }
.tag.soft { background: var(--green-soft); color: var(--green); border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.35; padding: 4px 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.chip { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: #fff; border: 1px solid var(--line); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.daychip { min-width: 68px; min-height: 58px; border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.daychip span:first-child { font-size: 12px; font-weight: 600; }
.daychip span:last-child { font-size: 17px; font-weight: 800; }

/* Buttons */
.btn { min-height: 46px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 700; border: none; background: var(--soft); }
.btn.primary { background: var(--green); color: #fff; font-weight: 800; }
.btn.outline { background: #fff; border: 1px solid var(--green); color: var(--green); }
.btn.ghost-light { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.btn.danger { background: #fff; border: 1px solid var(--red); color: var(--red); font-size: 14px; }
.btn.danger.armed { background: var(--red); color: #fff; }
.btn.dashed { background: transparent; border: 2px dashed var(--green); color: var(--green); min-height: 50px; font-weight: 800; }
.btn.small { min-height: 40px; font-size: 13px; padding: 0 12px; background: #fff; border: 1px solid var(--line2); color: var(--green); }
.btn.big { min-height: 54px; font-size: 16px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 110px; }
.icon-btn { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--green); }
.edit-btn { display: inline-flex; align-items: center; gap: 6px; }

/* Barang item */
.item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.item.packed { opacity: .6; }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item .name { font-size: 15px; font-weight: 700; line-height: 1.4; }
.item .meta { font-size: 13px; color: var(--muted2); line-height: 1.45; }
.check { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 2px solid var(--line2); color: transparent; }
.check[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.amount { font-size: 15px; font-weight: 800; white-space: nowrap; color: var(--green); }

/* Forms */
.form { background: #fff; border: 2px solid var(--green); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.form h2 { font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 700; color: var(--muted2); }
.field input, .field select, .field textarea, .search {
  width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; line-height: 1.45;
  border: 1px solid var(--line2); border-radius: 12px; background: #fff;
}
.field textarea { resize: vertical; }
.field input.amount-input { font-size: 22px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.err { font-size: 14px; font-weight: 700; color: var(--red); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills.cur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--line2); text-align: center; }
.pill input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.footer { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.banner { background: var(--amber-bg); color: var(--amber); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.paytable .list-row { justify-content: space-between; }
.paytable .list-row span:last-child { font-weight: 600; color: var(--muted2); text-align: right; }
