* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #2C2C2A; background: #F1EFE8; }
.app { display: grid; grid-template-columns: 340px 1fr; height: 100vh; }
.panel { background: #fff; border-right: 1px solid #e3e1d9; overflow-y: auto; padding: 18px 18px 24px; }
.panel h1 { font-size: 19px; font-weight: 600; margin: 0 0 14px; }
.panel section { padding: 12px 0; border-top: 1px solid #efede6; }
.lbl { display: block; font-size: 12.5px; color: #6b6a64; margin: 6px 0 5px; }
.lbl.inline { display: inline; margin: 0; }
input[type=text], textarea, select { width: 100%; font: inherit; padding: 7px 9px; border: 1px solid #d6d4cb; border-radius: 6px; background: #fff; }
textarea { resize: vertical; margin-top: 6px; }
button { font: inherit; padding: 7px 11px; border: 1px solid #cfcdc4; border-radius: 6px; background: #fff; cursor: pointer; }
button:hover { background: #f6f5f0; }
button.primary { background: #2C2C2A; color: #fff; border-color: #2C2C2A; }
button.primary:hover { background: #444441; }
button.ghost { border-color: transparent; color: #8a2d1a; }
button.mode.on { background: #2C2C2A; color: #fff; }
.row { display: flex; align-items: center; }
.row input { flex: 1; }
.row.gap { gap: 8px; margin-top: 8px; }
.row.wrap { flex-wrap: wrap; }
form.row { gap: 6px; }
.results { list-style: none; padding: 0; margin: 6px 0 0; }
.results li { padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.results li:hover { background: #f1efe8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button.on { background: #2C2C2A; color: #fff; border-color: #2C2C2A; }
.check { display: flex; gap: 7px; align-items: center; margin: 4px 0; }
.check .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.poilist { list-style: none; padding: 0; margin: 6px 0 0; max-height: 220px; overflow-y: auto; font-size: 13px; }
.poilist li { display: flex; gap: 6px; align-items: center; padding: 2px 0; }
.poilist small { color: #8b8a84; margin-left: auto; }
.hint { font-size: 12.5px; color: #6b6a64; margin: 8px 0 0; min-height: 1em; }
.embed textarea { font: 12px/1.4 ui-monospace, Consolas, monospace; }
.foot { font-size: 11.5px; color: #8b8a84; margin-top: 14px; }
.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.frame { position: relative; background: #ddd; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
#map { position: absolute; inset: 0; }
#map.crosshair .maplibregl-canvas { cursor: crosshair; }
.attrib { position: absolute; right: 0; bottom: 0; font-size: 10px; background: rgba(255,255,255,.8); padding: 1px 5px; color: #444441; pointer-events: none; }
.status { color: #6b6a64; font-size: 12.5px; min-height: 1em; }
.bt-card { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.96); border-radius: 8px; padding: 12px 14px; max-width: 380px; box-shadow: 0 1px 3px rgba(0,0,0,.15); pointer-events: none; }
.bt-card-title { font-weight: 700; font-size: 16px; color: #2C2C2A; margin-bottom: 4px; font-family: Arial, Helvetica, sans-serif; }
.bt-card-line { font-size: 13px; color: #5F5E5A; font-family: Arial, Helvetica, sans-serif; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; height: auto; } .stage { padding: 12px; } }
