:root { --navy: #00325A; --yellow: #FFB419; --bg: #f3f5f8; --card: #fff; --ink: #14202b; --muted: #66727e;
  --ok: #1d8a4a; --warn: #b85c00; --bad: #c0392b; --r: 14px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; }
.logo { height: 30px; }
.who { flex: 1; text-align: right; font-weight: 600; opacity: .9; }
.lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 8px;
  padding: 4px 10px; font-size: 14px; }
.net { background: var(--warn); color: #fff; padding: 8px 14px; font-size: 15px; }
.net.err { background: var(--bad); }
main { padding: 14px 14px calc(env(safe-area-inset-bottom) + 30px); max-width: 640px; margin: 0 auto; }
h1 { font-size: 24px; margin: 6px 0 10px; } h2 { font-size: 19px; margin: 18px 0 8px; }
.card { background: var(--card); border-radius: var(--r); padding: 14px; margin: 10px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card.on { border-left: 6px solid var(--ok); }
.job { display: block; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
.job .num { color: var(--navy); font-weight: 700; }
.job .meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.dist { float: right; font-weight: 700; color: var(--navy); }
.dist.far { color: var(--muted); font-weight: 500; }
.btn { display: block; width: 100%; padding: 16px; margin: 10px 0; border: 0; border-radius: var(--r);
  font-family: inherit; font-size: 19px; font-weight: 600; line-height: 1.2; background: var(--navy); color: #fff; cursor: pointer; }
.btn.yellow { background: var(--yellow); color: #1b1b1b; }
.btn.ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn.green { background: var(--ok); }
.btn:disabled { opacity: .45; }
.row { display: flex; gap: 10px; } .row .btn { flex: 1; }
.muted { color: var(--muted); } .center { text-align: center; } .pad { padding: 30px 10px; }
.small { font-size: 14px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { border: 2px solid #c9d2db; background: #fff; border-radius: 999px; padding: 9px 14px; font-family: inherit;
  font-size: 16px; color: var(--ink); }
.chip.sel { background: var(--navy); border-color: var(--navy); color: #fff; }
textarea, input[type=datetime-local] { width: 100%; font: inherit; padding: 12px; border: 2px solid #c9d2db;
  border-radius: 12px; background: #fff; }
textarea { min-height: 90px; }
ul.scope { margin: 6px 0 0 0; padding-left: 20px; } ul.scope li { margin: 3px 0; }
.big { font-size: 34px; font-weight: 700; color: var(--navy); }
.warn { color: var(--warn); font-weight: 600; } .bad { color: var(--bad); font-weight: 600; }
.hidden { display: none; }
a { color: var(--navy); }
.back { background: none; border: 0; color: var(--navy); font: inherit; padding: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td { padding: 6px 4px; border-bottom: 1px solid #e5e9ee; } td.r { text-align: right; white-space: nowrap; }
.dots { display: flex; justify-content: center; gap: 18px; margin: 18px 0 6px; }
.dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--navy); }
.dots span.on { background: var(--navy); }
.pad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 10px auto; }
.key { width: 76px; height: 76px; justify-self: center; border-radius: 50%; border: 0; background: #fff;
  font-family: inherit; font-size: 30px; font-weight: 600; line-height: 1;
  color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.key:active { background: #dde4ec; }
.vtile { width: 92px; height: 92px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vtile span { font-size: 13px; margin-top: 4px; }
.row .btn { font-size: 16px; padding: 14px 8px; }
.cam { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; display: flex; flex-direction: column; }
.cam video { flex: 1; width: 100%; min-height: 0; object-fit: contain; background: #000; }
.cam .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam .flash.go { animation: fl .25s ease-out; } @keyframes fl { from { opacity: .7; } to { opacity: 0; } }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 8px) 14px 8px; }
.cam-x, .cam-done { background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 20px;
  padding: 8px 14px; font-family: inherit; font-size: 16px; }
.cam-done { background: var(--yellow); color: #111; border: 0; font-weight: 700; justify-self: end; }
.cam-time { color: #ff4d4d; font-weight: 700; font-size: 18px; }
.cam-strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 10px; min-height: 64px; background: #000; }
.cam-strip img, .vtile.sm { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; border-radius: 8px; font-size: 18px; }
.vtile.sm span { font-size: 10px; }
.cam-bar { padding: 6px 14px calc(env(safe-area-inset-bottom) + 14px); background: #000; }
.cam-modes { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; }
.cam-modes button { background: none; border: 0; color: #aaa; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.cam-modes button.on { color: var(--yellow); }
.cam-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.shutter { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 5px solid #888; box-shadow: 0 0 0 3px #fff; }
.shutter:active { transform: scale(.94); }
.shutter.video { background: #e53935; }
.shutter.rec { border-radius: 18px; transform: scale(.7); background: #e53935; }
.big-btn { font-size: 22px; padding: 20px; margin-top: 14px; }
