/* MAVIS app - yellow / brown / orange (no company name or logo, John 14/10) */
:root {
  --yellow: #F5C400; --yellow-soft: #FFF4C2; --brown: #4A3018; --brown-2: #6B4A2B;
  --orange: #E8711A; --ink: #241A10; --muted: #6E6152; --line: #E2D7C3; --bg: #FBF7EE; --card: #FFFFFF;
  --green: #2E7D32; --amber: #B26A00; --red: #C62828;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#app { min-height: 100%; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.hidden { display: none !important; }

.bar { background: var(--brown); color: #fff; padding: 14px 16px 12px; display: flex; align-items: center; gap: 12px;
  border-bottom: 6px solid var(--yellow); box-shadow: inset 0 -3px 0 var(--orange); position: sticky; top: 0; z-index: 5; }
.bar h1 { margin: 0; font-size: 20px; letter-spacing: .5px; }
.bar .sub { font-size: 13px; opacity: .85; }
.bar .grow { flex: 1; min-width: 0; }
.back { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; padding: 0 6px 4px 0; }
.link { background: none; border: 0; color: var(--yellow); font-size: 14px; text-decoration: underline; padding: 4px; }

.brand { text-align: center; padding: 36px 16px 8px; }
.brand .logo { font-size: 44px; font-weight: 900; letter-spacing: 6px; color: var(--brown); }
.brand .logo span { color: var(--orange); }
.brand .tag { color: var(--muted); font-size: 14px; }
.stripe { height: 10px; background: var(--yellow); box-shadow: inset 0 -4px 0 var(--brown); margin: 18px 0 0; }

.pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 16px; }
.tile { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 22px 12px; text-align: center;
  font-weight: 700; font-size: 18px; color: var(--ink); min-height: 132px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; }
.tile .ic { font-size: 34px; }
.tile.main { background: var(--yellow); border-color: var(--brown); box-shadow: 0 4px 0 var(--brown); }
.tile.off { opacity: .45; }
.tile .note { font-size: 12px; font-weight: 500; color: var(--muted); }

label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password] { width: 100%; padding: 13px 12px; font-size: 17px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus { outline: none; border-color: var(--orange); }
.vin { font-family: ui-monospace, "Roboto Mono", Menlo, monospace; letter-spacing: 2px; font-size: 22px !important;
  text-transform: uppercase; text-align: center; }

.btn { display: block; width: 100%; padding: 15px; font-size: 17px; font-weight: 700; border-radius: 12px; border: 0;
  background: var(--orange); color: #fff; text-align: center; }
.btn:disabled { opacity: .5; }
.btn.ghost { background: #fff; color: var(--brown); border: 2px solid var(--brown); }
.btn.dark { background: var(--brown); }
.btn.big { padding: 20px; font-size: 19px; }
.foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px;
  position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 18%); }
.row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.areabadge { background: var(--yellow); color: var(--brown); font-weight: 800; border-radius: 10px; padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: center; }
.areabadge b { font-size: 22px; letter-spacing: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--brown-2); background: #fff; color: var(--brown); border-radius: 20px; padding: 8px 14px; font-weight: 700; }
.small { font-size: 13px; color: var(--muted); }
.err { color: var(--red); font-size: 14px; min-height: 1em; }
.ok { color: var(--green); }
.warnbox { background: #FFF1E6; border: 1px solid #F4C29A; color: #7A3E0C; border-radius: 10px; padding: 10px; font-size: 14px; }
.list { display: flex; flex-direction: column; gap: 6px; }
.li { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; }
.li .v { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: 1px; }
.li .m { font-size: 12px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.pill.sent { background: #E3F2E5; color: var(--green); }
.pill.wait { background: #FFF1D6; color: var(--amber); }
.count { font-size: 40px; font-weight: 900; color: var(--brown); line-height: 1; }

/* live barcode camera */
.cam { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; }
.cam video { flex: 1; width: 100%; object-fit: cover; }
.cam .frame { position: absolute; left: 8%; right: 8%; top: 38%; height: 18%; border: 3px solid var(--yellow); border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.cam .hint { position: absolute; top: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 3px #000; padding: 0 16px; }
.cam .camfoot { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; display: flex; gap: 10px; }
.cam .camfoot .btn { flex: 1; }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--orange);
  border-radius: 50%; animation: s 0.8s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes s { to { transform: rotate(360deg); } }
.banner { background: var(--orange); color: #fff; padding: 10px 16px; font-weight: 700; text-align: center; }
.capimg { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* v0.3 work screens (17/10/2026) */
select, textarea, input[type=number] { width: 100%; padding: 12px; font-size: 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-family: inherit; }
textarea { resize: vertical; }
.mono { font-family: ui-monospace, "Roboto Mono", Menlo, monospace; letter-spacing: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 10px 0; }
.chk input { width: 22px; height: 22px; }
.chip.on { background: var(--yellow); border-color: var(--brown); }
.link.dark { color: var(--brown); }
.card.shift { display: flex; flex-direction: column; gap: 8px; border-width: 2px; }
.card.shift.on { border-color: var(--green); }
.card.job { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.card.job.next { border: 2px solid var(--orange); box-shadow: 0 3px 0 var(--orange); }
.grp { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.grp .gh { font-size: 14px; color: var(--brown); border-bottom: 2px solid var(--yellow); padding-bottom: 4px; }
.quote { border-left: 4px solid var(--orange); background: var(--yellow-soft); padding: 8px 10px; border-radius: 6px; margin: 6px 0; font-size: 15px; }
.bub { background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 2px; padding: 8px 12px; max-width: 85%; align-self: flex-start; }
.bub.me { background: var(--yellow-soft); border-color: #E8D27A; border-radius: 12px 12px 2px 12px; align-self: flex-end; }
#ml { display: flex; flex-direction: column; gap: 8px; }
.frow { display: grid; grid-template-columns: 1fr auto 90px; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.frow b { font-size: 22px; color: var(--brown); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); background: var(--brown); color: #fff; padding: 12px 14px; border-radius: 12px; z-index: 80; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; display: flex; align-items: flex-end; }
.sheet .sheetin { background: var(--bg); width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.foot input[type=text] { flex: 1; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: sp 0.8s linear infinite; margin-right: 6px; vertical-align: -2px; }
@keyframes sp { to { transform: rotate(360deg); } }
