/* LBS Agent 前端样式：移动优先，大按钮，深色中性。 */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1c2733;
  --muted: #6b7684;
  --line: #dfe5ec;
  --accent: #2f6fd6;
  --accent-dark: #2359b0;
  --ok: #1e9e5a;
  --warn: #d97706;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000;
}
.topbar h1 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tag { font-size: 12px; font-weight: 500; color: var(--accent); background: #e8f0fd; padding: 2px 8px; border-radius: 20px; }

.status { font-size: 13px; padding: 4px 10px; border-radius: 16px; }
.status-wait { background: #f3f4f6; color: var(--muted); }
.status-ok { background: #e6f6ec; color: var(--ok); }
.status-err { background: #fdecea; color: #c53030; }
.status-run { background: #fff7e0; color: var(--warn); }

.wrap { max-width: 720px; margin: 0 auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card h2 { font-size: 15px; margin-bottom: 8px; }

.map-card { padding: 8px; }
.map { height: 300px; border-radius: 8px; overflow: hidden; }
.map-hint { font-size: 12px; color: var(--muted); padding: 6px 4px 2px; }

.row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.row:last-child { margin-bottom: 0; }

.btn {
  min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 10px;
  border: 1px solid var(--line); background: #f7f9fb; color: var(--ink); cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-dark); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.coord-row input {
  flex: 1; min-width: 110px; min-height: 44px; padding: 10px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fafbfc;
}
textarea {
  width: 100%; min-height: 56px; padding: 10px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; resize: vertical;
  font-family: inherit;
}

.ctx { font-size: 14px; }
.ctx .muted, .muted { color: var(--muted); }
.ctx dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.ctx dt { color: var(--muted); }
.ctx dd { word-break: break-all; }

.pois { margin-top: 8px; }
.pois ul { list-style: none; }
.pois li { font-size: 13px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.pois li:last-child { border-bottom: none; }

.answer {
  margin-top: 12px; padding: 12px; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; white-space: pre-wrap; word-break: break-word;
}
.hidden { display: none; }
.err { color: #c53030; font-size: 14px; margin-top: 8px; }
