/* Vectair Sightline v1.1 */
:root {
  --bistre: #402D1C;
  --flame: #CF5C36;
  --seaweed: #00798C;
  --light: #CDD7D6;
  --white: #FFFFFF;
  --app-bg: #f5f7f7;
  --border: #CDD7D6;
  --muted: #645f5a;
  --shadow: 0 2px 10px rgba(64, 45, 28, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bistre);
  background: var(--app-bg);
}
.app-header {
  background: var(--white);
  border-bottom: 3px solid var(--seaweed);
  padding: 8px 18px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1000;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 82px;
}
.brand-logo {
  height: 74px;
  width: 260px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.brand-copy strong { color: var(--bistre); font-size: .95rem; }
.brand-copy span { color: var(--seaweed); font-size: .85rem; }
main {
  display: grid;
  grid-template-columns: 390px 1fr;
  min-height: calc(100vh - 101px);
}
#panel {
  padding: 16px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--white);
}
#mapWrap { min-width: 0; background: var(--light); }
#map { height: 100%; min-height: calc(100vh - 101px); }
section {
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(64,45,28,0.04);
}
.workflow-note { border-left: 5px solid var(--flame); }
.workflow-note ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.45;
}
h2 { margin: 0 0 10px; font-size: .98rem; color: var(--bistre); }
label {
  display: block;
  margin: 8px 0;
  font-size: .88rem;
  color: var(--bistre);
  font-weight: 600;
}
input, select {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--bistre);
}
input:focus, select:focus {
  outline: 2px solid rgba(0, 121, 140, .18);
  border-color: var(--seaweed);
}
button {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--seaweed);
  background: var(--seaweed);
  color: white;
  cursor: pointer;
  transition: .15s ease;
}
button:hover { background: #006b7c; border-color: #006b7c; }
button.secondary {
  background: #fff;
  color: var(--bistre);
  border-color: var(--border);
}
button.secondary:hover { background: #f1f5f5; border-color: var(--seaweed); }
#exportKmlBtn { background: var(--flame); border-color: var(--flame); }
#exportKmlBtn:hover { background: #b94d2b; border-color: #b94d2b; }
#clearBtn.danger-lite:hover { color: var(--flame); border-color: var(--flame); }
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hint { margin: 6px 0 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }
dl { margin: 0; }
dt { margin-top: 8px; font-weight: 800; font-size: .82rem; color: var(--bistre); }
dd {
  margin: 2px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  overflow-wrap: anywhere;
  color: var(--seaweed);
}
.app-note p { margin: 0 0 8px; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.small-note { font-size: .8rem !important; color: var(--flame) !important; }
.tick-label {
  padding: 2px 5px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--seaweed);
  border-radius: 4px;
  color: var(--bistre);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(64,45,28,.12);
}
.leaflet-control-layers, .leaflet-bar, .leaflet-control-zoom a {
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 8px rgba(64,45,28,.08) !important;
}
.leaflet-control-layers {
  background: white !important;
  color: var(--bistre) !important;
  font: inherit !important;
}
.leaflet-control-layers label { font-weight: 500; }
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  border-top: 3px solid var(--seaweed);
}
.leaflet-popup-content { color: var(--bistre); font-size: .9rem; }
.leaflet-container a { color: var(--seaweed); }
@media (max-width: 900px) {
  main { grid-template-columns: 1fr; }
  #panel {
    max-height: 48vh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  #map { min-height: 52vh; }
  .brand-logo { height: 56px; width: 190px; }
  .brand-copy { display: none; }
}
