body.mobile { overflow: hidden; height: 100dvh; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mbar { position: fixed; top: 0; left: 0; right: 0; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0;
  display: flex; align-items: center; gap: 8px; background: var(--head); color: #f3f1ea; z-index: 1000; }
.mbar .logo { color: #ff8a50; font-size: 20px; }
.mbar select { flex: 1; min-width: 0; min-height: 40px; border-radius: 6px; border: 1px solid #4b5560; background: #2a323a; color: #f3f1ea; padding: 0 8px; font-size: 15px; }
.net { font-size: 12px; background: #b26a00; color: #fff; border-radius: 4px; padding: 3px 6px; white-space: nowrap; }
#mmap { position: fixed; top: calc(52px + env(safe-area-inset-top)); left: 0; right: 0; bottom: 0; }
.fab { position: fixed; right: 12px; top: calc(64px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.fab button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4); font-size: 22px; }
.fab button.on { background: var(--focus); color: #fff; }
.mlayers { position: fixed; right: 68px; top: calc(64px + env(safe-area-inset-top)); z-index: 1001; max-height: 55vh; }
.mlayers label { min-height: 36px; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--panel); border-radius: 14px 14px 0 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,.25); height: 42dvh; display: flex; flex-direction: column; transition: height .2s; padding-bottom: env(safe-area-inset-bottom); }
.sheet.full { height: 88dvh; } .sheet.min { height: 112px; }
.grip { background: none; border: 0; height: 22px; display: grid; place-items: center; flex: none; }
.grip span { width: 44px; height: 5px; border-radius: 3px; background: #c9c4b8; display: block; }
.mtabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; }
.mtabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); min-height: 44px; }
.mtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.mpanel { overflow-y: auto; padding: 10px 14px 24px; flex: 1; -webkit-overflow-scrolling: touch; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; font-size: 14px; margin: 6px 0 12px; }
.kv b { color: var(--muted); font-weight: 600; }
details.el { border-bottom: 1px solid #ece9e1; }
details.el summary { padding: 12px 2px; font-size: 15px; display: flex; gap: 8px; align-items: center; min-height: 44px; }
details.el summary .code { font-weight: 700; color: var(--muted); width: 28px; }
details.el .body { padding: 0 2px 12px; font-size: 14px; line-height: 1.5; }
details.el .body h5 { margin: 8px 0 2px; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .4px; }
details.el .body p { margin: 0; white-space: pre-wrap; }
.step { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; }
.step b { background: var(--accent); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; flex: none; font-size: 13px; }
.me-dot { width: 16px; height: 16px; background: #1f6fb2; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #1f6fb2; }
.capture { position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.cap-card { background: var(--panel); width: 100%; max-height: 92dvh; overflow-y: auto; border-radius: 14px 14px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
.cap-head { display: flex; align-items: center; justify-content: space-between; }
.cap-head h3 { margin: 0; font-size: 19px; }
.gps-line { font-size: 13px; padding: 6px 8px; border-radius: 6px; margin: 8px 0 12px; font-variant-numeric: tabular-nums; background: #eee; }
.gps-line.good { background: #e6f4e8; color: #1b5e20; } .gps-line.ok { background: #fff4de; color: #6b4300; } .gps-line.poor, .gps-line.wait { background: #fbecec; color: #8a1c1c; }
.visit-head .gps-line { margin: 4px 0 0; }
.cap-card .field input, .cap-card .field select, .cap-card .field textarea { min-height: 44px; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.cap-card .field input, .cap-card .field select, .cap-card .field textarea { width: 100%; min-width: 0; }
.seg { display: flex; border: 1px solid #b9b4a8; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.seg label { flex: 1; } .seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px 6px; font-weight: 600; font-size: 14px; }
.seg input:checked + span { background: var(--head); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -3px; }
.loadout { font-weight: 700; padding: 8px 10px; background: #f4f2ec; border-radius: 6px; margin-bottom: 12px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.visit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sync-state { font-size: 13px; margin: 6px 0; } .sync-state.wait { color: var(--warn); } .sync-state.done { color: var(--ok); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 4px; }
.quick .btn { min-height: 52px; justify-content: center; font-weight: 600; }
.chk { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #efede6; font-size: 14px; }
.chk .lbl { flex: 1; } .chk-btns { display: flex; gap: 6px; } .chk-btns .btn { min-height: 40px; min-width: 52px; justify-content: center; }
.btn.is-ok { background: var(--ok); border-color: var(--ok); color: #fff; } .btn.is-issue { background: var(--bad); border-color: var(--bad); color: #fff; }
.rec { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #efede6; font-size: 14px; } .rec .dot { margin-top: 5px; flex: none; } .rec .lbl { flex: 1; }
