:root {
  --bg: #0f1115;
  --card: #171a21;
  --card2: #1f242e;
  --line: #2a3040;
  --text: #e8ecf3;
  --dim: #94a0b4;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 640px; margin: 0 auto; padding: 12px 12px 40px; }
.wide { max-width: 1080px; }
h1 { font-size: 18px; margin: 8px 0 12px; font-weight: 600; }
h2 { font-size: 15px; margin: 18px 0 8px; font-weight: 600; color: var(--dim); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
label { display: block; font-size: 13px; color: var(--dim); margin: 10px 0 4px; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
button {
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); cursor: pointer;
}
button:active { transform: scale(0.985); }
button.primary { background: var(--green); border-color: var(--green); color: #06210f; font-weight: 700; }
button.ghost { background: transparent; }
button:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.muted { color: var(--dim); font-size: 13px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px;
  background: var(--card2); border: 1px solid var(--line); color: var(--dim); }
.pill.ok { color: #86efac; border-color: #14532d; background: #06210f; }
.pill.warn { color: #fcd34d; border-color: #78350f; background: #2a1c05; }
.pill.bad { color: #fca5a5; border-color: #7f1d1d; background: #2a0b0b; }
.videoBox { position: relative; width: 100%; aspect-ratio: 3/4; background: #000;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.videoBox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.videoBox img.preview { width: 100%; height: 100%; object-fit: contain; background: #000; }
.overlay { position: absolute; left: 8px; top: 8px; right: 8px; display: flex;
  justify-content: space-between; gap: 6px; pointer-events: none; font-size: 11px; }
.gpsTag { background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.gpsTag.ok { color: #86efac; } .gpsTag.bad { color: #fca5a5; }
.wxTip { background: #2a1c05; border: 1px solid #78350f; color: #fcd34d;
  padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.list li:last-child { border-bottom: none; }
ul.list img { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; background: #000; flex: 0 0 auto; }
pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; color: var(--dim); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { flex: 0 0 auto; padding: 8px 14px; }
.tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.shot { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.shot img { width: 100%; display: block; background: #000; }
.shot .meta { padding: 8px; font-size: 12px; color: var(--dim); }
.shot .meta b { color: var(--text); font-size: 13px; display: block; margin-bottom: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 500; }
.hide { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #000; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px;
  font-size: 13px; max-width: 90vw; z-index: 99; }
