:root {
  --gb-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --gb-border: rgba(139, 92, 246, 0.12);
}
html { scroll-behavior: smooth; }
body { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  padding: .875rem 1rem;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.04);
  transition: all .2s ease;
}
.mobile-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.soft-card {
  border-radius: 1.75rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--gb-shadow);
}
.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: var(--gb-shadow);
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}
.form-label {
  display: block;
  margin-bottom: .55rem;
  font-size: .85rem;
  font-weight: 700;
  color: #334155;
}
.form-help {
  margin-top: .45rem;
  font-size: .75rem;
  color: #64748b;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 2px solid rgba(203, 213, 225, .9);
  background: #fff;
  padding: .95rem 1rem;
  font-size: .95rem;
  color: #0f172a;
  outline: none;
  transition: all .2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(139, 92, 246, .55);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .13);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-checkbox,
.form-radio { accent-color: #7c3aed; }
.table-wrap {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(226,232,240,.9);
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap thead { background: #f8fafc; }
.table-wrap th,
.table-wrap td {
  padding: 1rem;
  font-size: .92rem;
  text-align: left;
  border-bottom: 1px solid rgba(226,232,240,.9);
  vertical-align: top;
}
.table-wrap tbody tr:hover { background: rgba(248,250,252,.9); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .42rem .8rem;
  font-size: .75rem;
  font-weight: 700;
}
.status-success { background: #dcfce7; color: #166534; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-danger { background: #ffe4e6; color: #be123c; }
.status-info { background: #dbeafe; color: #1d4ed8; }
.status-neutral { background: #dbeafe; color: #334155; }
.search-results {
  display: grid;
  gap: .75rem;
  margin-top: .9rem;
}
.search-result-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: .25rem;
  border-radius: 1rem;
  border: 1px solid rgba(165, 180, 252, .35);
  background: linear-gradient(180deg, rgba(238, 242, 255, .9), rgba(255,255,255,.96));
  padding: .95rem 1rem;
  text-align: left;
  transition: all .2s ease;
}
.search-result-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(99,102,241,.12);
}
.leaflet-stage {
  width: 100%;
  min-height: 520px;
  border-radius: 1.5rem;
  border: 1px solid rgba(148,163,184,.25);
  overflow: hidden;
  background: #dbeafe;
}
.leaflet-stage.shared { min-height: 620px; }
.chart-bar {
  width: 100%;
  border-radius: 999px 999px .8rem .8rem;
  background: linear-gradient(180deg, rgba(99,102,241,1), rgba(236,72,153,.9));
  min-height: .5rem;
}
.chart-bar.secondary { background: linear-gradient(180deg, rgba(16,185,129,1), rgba(56,189,248,.95)); }
.sticky-panel { position: sticky; top: 6.5rem; }
.copy-btn { transition: transform .2s ease; }
.copy-btn:hover { transform: scale(1.04); }
.activity-line > li { position: relative; padding-left: 1.5rem; }
.activity-line > li::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .45rem;
  height: .6rem;
  width: .6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
}
.activity-line > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: .58rem;
  top: 1.15rem;
  width: 1px;
  height: calc(100% + .8rem);
  background: rgba(203,213,225,.9);
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  padding: .45rem .8rem;
  font-size: .78rem;
  font-weight: 700;
}
.gradient-outline {
  position: relative;
  border-radius: 1.8rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,.85), rgba(236,72,153,.75));
}
.gradient-outline > div {
  border-radius: calc(1.8rem - 1px);
  background: white;
}
@media (max-width: 1279px) {
  .sticky-panel { position: static; }
  .leaflet-stage.shared { min-height: 380px; }
}
