/* ═══════════════════════════════════════════════════════════════
   GeoFaena — Styles  |  ZARGO Ingeniería y Mantención Integral
   Paleta: Dark Navy · Amarillo ZARGO · Azul ZARGO · Blanco
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Tokens ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nav-h:       60px;
  --sidebar-w:   300px;
  --navy:        #0f172a;
  --navy-2:      #1e293b;
  --navy-3:      #334155;
  --yellow:      #f59e0b;
  --yellow-d:    #d97706;
  --blue:        #3b82f6;
  --blue-d:      #2563eb;
  --red:         #ef4444;
  --green:       #22c55e;
  --white:       #ffffff;
  --surface:     #f8fafc;
  --border:      #e2e8f0;
  --text-1:      #0f172a;
  --text-2:      #475569;
  --text-3:      #94a3b8;
  --radius:      10px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.1);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 20px 48px rgba(0,0,0,.22);
  --transition:  .2s ease;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-1);
}

html, body { height: 100%; overflow: hidden; background: var(--surface); }

/* ── Navbar ────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--navy);
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.nav-brand {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
#company-logo {
  height: 42px; width: auto; object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}
.brand-title  { color: #fff; font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.brand-sub    { color: var(--text-3); font-size: .65rem; font-weight: 400; display: block; text-transform: uppercase; letter-spacing: .07em; }

.nav-center {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px;
}

.map-type-toggle {
  display: flex; background: var(--navy-2); border-radius: 8px; padding: 3px; gap: 2px;
}
.layer-btn {
  padding: 5px 14px; border: none; cursor: pointer; border-radius: 6px;
  background: transparent; color: var(--text-3); font-size: .8rem; font-weight: 500;
  transition: var(--transition);
}
.layer-btn.active { background: var(--yellow); color: var(--navy); }
.layer-btn:hover:not(.active) { color: #fff; }

.badge-edit {
  background: var(--yellow); color: var(--navy); font-weight: 700;
  font-size: .75rem; padding: 4px 12px; border-radius: 20px;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:.7} }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-nav {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: none; cursor: pointer;
  border-radius: 7px; font-size: .82rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn-nav svg { width: 15px; height: 15px; fill: currentColor; }

.btn-edit      { background: var(--yellow); color: var(--navy); }
.btn-edit:hover { background: var(--yellow-d); transform: translateY(-1px); }
.btn-edit.active { background: #fff; color: var(--navy); box-shadow: 0 0 0 2px var(--yellow); }

.btn-secondary { background: var(--navy-2); color: var(--text-3); border: 1px solid var(--navy-3); }
.btn-secondary:hover { color: #fff; border-color: #fff; transform: translateY(-1px); }

/* ── Layout ─────────────────────────────────────────────────── */
#main-wrapper {
  display: flex;
  height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
}

/* ── Sidebar ─────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width .25s ease, min-width .25s ease;
  box-shadow: 2px 0 12px rgba(0,0,0,.06);
  z-index: 10;
}
#sidebar.collapsed { width: 0; min-width: 0; }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-header h2 { font-size: 1rem; font-weight: 700; color: var(--text-1); }
#btn-collapse {
  background: none; border: none; cursor: pointer; color: var(--text-2);
  padding: 4px 6px; border-radius: 5px; font-size: .85rem; transition: var(--transition);
}
#btn-collapse:hover { background: var(--surface); }

.search-wrap {
  position: relative; padding: 12px 14px; flex-shrink: 0;
}
.search-icon {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3);
}
#search-input {
  width: 100%; padding: 9px 12px 9px 36px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: .85rem; background: var(--surface); color: var(--text-1);
  transition: var(--transition); outline: none;
}
#search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

.sidebar-section { padding: 0 14px 10px; flex-shrink: 0; overflow: hidden; }
.sidebar-section:last-child { flex: 1; overflow-y: auto; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 6px; border-top: 1px solid var(--border);
  font-size: .75rem; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .06em;
}
.link-btn { background: none; border: none; cursor: pointer; color: var(--blue); font-size: .72rem; font-weight: 600; }
.count-badge { background: var(--navy); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: .75rem; font-weight: 600; }

/* ── Category filters ───────────────────────────────────────── */
#category-filters { display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }

.cat-filter {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  transition: var(--transition); user-select: none;
}
.cat-filter:hover { background: var(--surface); }

.cat-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; transition: var(--transition); }
.cat-filter.inactive .cat-dot { filter: grayscale(1); opacity: .4; }

.cat-icon { font-size: 1.05rem; width: 22px; text-align: center; }
.cat-name { flex: 1; font-size: .82rem; font-weight: 500; color: var(--text-1); transition: var(--transition); }
.cat-filter.inactive .cat-name { color: var(--text-3); }

.cat-count { background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 1px 7px; font-size: .72rem; font-weight: 600; border: 1px solid var(--border); }

.cat-toggle { position: relative; width: 30px; height: 16px; flex-shrink: 0; }
.cat-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cat-slider {
  position: absolute; inset: 0; border-radius: 10px;
  background: var(--border); transition: var(--transition); cursor: pointer;
}
.cat-slider::before {
  content:''; position: absolute; width: 12px; height: 12px;
  border-radius: 50%; background: #fff;
  top: 2px; left: 2px; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
input:checked + .cat-slider { background: var(--green); }
input:checked + .cat-slider::before { transform: translateX(14px); }

/* ── Element list ───────────────────────────────────────────── */
#element-list { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }

.el-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
}
.el-item:hover  { background: var(--surface); border-color: var(--border); }
.el-item.active { background: rgba(59,130,246,.08); border-color: var(--blue); }

.el-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.el-info { flex: 1; overflow: hidden; }
.el-name { font-size: .82rem; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-cat  { font-size: .7rem; color: var(--text-3); }
.el-hidden-badge { font-size: .65rem; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; }

/* ── Map Area ───────────────────────────────────────────────── */
#map-area { flex: 1; position: relative; overflow: hidden; }
#map { position: absolute; inset: 0; z-index: 1; }

#btn-expand-sidebar {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1000;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  padding: 16px 6px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  color: var(--text-2);
  box-shadow: 2px 0 12px rgba(0,0,0,.15);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
#btn-expand-sidebar:hover {
  background: var(--surface);
  color: var(--text-1);
}

#status-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  background: rgba(15,23,42,.82); backdrop-filter: blur(6px);
  display: flex; gap: 20px; align-items: center;
  padding: 6px 16px; font-size: .72rem; color: rgba(255,255,255,.7);
  border-top: 1px solid rgba(255,255,255,.08);
}
#status-bar span { font-variant-numeric: tabular-nums; }

#edit-hint {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 5; background: var(--yellow); color: var(--navy);
  padding: 9px 20px; border-radius: 24px; font-weight: 700; font-size: .82rem;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md); white-space: nowrap;
  animation: floatHint 3s ease-in-out infinite;
}
#edit-hint svg { width: 16px; height: 16px; fill: var(--navy); }
@keyframes floatHint { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-4px)} }

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important; box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border); min-width: 220px;
}
.leaflet-popup-content { margin: 14px 18px !important; font-family: 'Inter', sans-serif; }
.popup-title { font-weight: 700; font-size: .95rem; color: var(--text-1); margin-bottom: 4px; }
.popup-cat   { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-bottom: 8px; }
.popup-desc  { font-size: .82rem; color: var(--text-2); line-height: 1.4; margin-bottom: 10px; }
.popup-actions { display: flex; gap: 6px; }
body:not(.edit-mode-active) .popup-actions { display: none; }
.popup-btn {
  flex: 1; padding: 6px 8px; border: none; border-radius: 6px; cursor: pointer;
  font-size: .75rem; font-weight: 600; transition: var(--transition);
}
.popup-btn-edit   { background: var(--yellow); color: var(--navy); }
.popup-btn-edit:hover { background: var(--yellow-d); }
.popup-btn-del    { background: rgba(239,68,68,.12); color: var(--red); }
.popup-btn-del:hover  { background: rgba(239,68,68,.22); }

/* Custom Leaflet marker */
.map-marker {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.map-marker:hover { box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.map-marker-inner {
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50% 50% 50% 0;
  font-size: 1rem;
}

/* ── Modal ──────────────────────────────────────────────────── */
#modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeOverlay .2s ease;
}
@keyframes fadeOverlay { from{opacity:0} to{opacity:1} }

#modal {
  background: var(--white); border-radius: 14px;
  width: 100%; max-width: 580px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideModal .22s ease;
}
@keyframes slideModal { from{transform:translateY(24px);opacity:0} to{transform:none;opacity:1} }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
#modal-close {
  background: none; border: none; cursor: pointer; color: var(--text-2);
  font-size: 1.1rem; padding: 4px 8px; border-radius: 6px; transition: var(--transition);
}
#modal-close:hover { background: var(--surface); color: var(--text-1); }

.modal-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-right { display: flex; gap: 8px; }

/* Forms */
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--text-2); }

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .88rem; font-family: inherit; color: var(--text-1);
  background: var(--white); transition: var(--transition); outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

.color-row { display: flex; align-items: center; gap: 10px; }
input[type="color"] { height: 38px; width: 60px; border: 1px solid var(--border); border-radius: 8px; padding: 3px; cursor: pointer; }
.color-dot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--white); box-shadow: var(--shadow-sm); }

.toggle-label { font-size: .78rem; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 5px; }
.toggle-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: relative; width: 40px; height: 22px; background: var(--border);
  border-radius: 11px; transition: var(--transition); flex-shrink: 0;
}
.toggle-slider::before {
  content:''; position: absolute; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; top: 3px; left: 3px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle-text { font-size: .82rem; color: var(--text-2); }

/* Upload */
.upload-area {
  border: 2px dashed var(--border); border-radius: 10px; padding: 22px;
  text-align: center; cursor: pointer; transition: var(--transition);
  color: var(--text-3); font-size: .82rem;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.upload-area svg { width: 32px; height: 32px; stroke: var(--text-3); }
.upload-area:hover, .upload-area.dragover { border-color: var(--blue); background: rgba(59,130,246,.04); color: var(--blue); }
.upload-area:hover svg, .upload-area.dragover svg { stroke: var(--blue); }

#icon-preview-wrap {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
}
#icon-preview { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
#btn-remove-icon { background: rgba(239,68,68,.1); border: none; color: var(--red); cursor: pointer; border-radius: 6px; padding: 4px 10px; font-size: .8rem; font-weight: 600; }

/* Buttons */
.btn-primary { background: var(--yellow); color: var(--navy); border: none; padding: 9px 20px; border-radius: 8px; font-size: .88rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-primary:hover { background: var(--yellow-d); transform: translateY(-1px); }
.btn-ghost   { background: none; color: var(--text-2); border: 1px solid var(--border); padding: 9px 16px; border-radius: 8px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.btn-ghost:hover { border-color: var(--navy); color: var(--text-1); }
.btn-danger  { background: rgba(239,68,68,.1); color: var(--red); border: 1px solid rgba(239,68,68,.25); padding: 9px 16px; border-radius: 8px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-danger:hover { background: rgba(239,68,68,.2); }

/* ── Toast ──────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast-msg {
  padding: 12px 20px; border-radius: 10px; font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow-lg); pointer-events: auto;
  animation: toastIn .25s ease;
  display: flex; align-items: center; gap: 8px;
}
@keyframes toastIn { from{transform:translateX(100%);opacity:0} to{transform:none;opacity:1} }
.toast-success { background: var(--navy); color: #fff; border-left: 4px solid var(--green); }
.toast-error   { background: var(--navy); color: #fff; border-left: 4px solid var(--red); }
.toast-info    { background: var(--navy); color: #fff; border-left: 4px solid var(--yellow); }

/* ── Utilities ──────────────────────────────────────────────── */
.hidden { display: none !important; }

/* Loading spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin .6s linear infinite; display: inline-block;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ── Hover Info Card ────────────────────────────────────────── */
#map-hover-card {
  position: absolute;
  z-index: 900;
  display: none;
  width: 360px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12);
  border: 1px solid var(--border);
  overflow: hidden;
  pointer-events: auto;
  transition: opacity .18s ease;
}

.hc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hc-icon-emoji {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.8);
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

.hc-icon-img {
  width: 72px; height: 72px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--white);
}

.hc-header-text { flex: 1; overflow: hidden; }

.hc-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-badge {
  font-size: .8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  display: inline-block;
  white-space: nowrap;
}

.hc-desc {
  padding: 12px 16px;
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.hc-coords {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--border);
}
.hc-coords svg {
  width: 16px; height: 16px;
  fill: var(--text-3); flex-shrink: 0;
}

.hc-hint {
  padding: 9px 16px;
  font-size: .8rem;
  color: var(--text-3);
  text-align: center;
  background: var(--surface);
  font-style: italic;
}

/* ── Scrollbar ──────────────────────────────────────────────── */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Mobile menu ──────────────────────────────────────────────── */
.btn-mobile-menu {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-mobile-menu:hover { background: rgba(255,255,255,.1); }

#sidebar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 40;
  backdrop-filter: blur(2px);
  transition: opacity .25s ease;
}
#sidebar-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 260px; }
  .btn-nav { font-size: .75rem; padding: 6px 10px; }
  .brand-sub { display: none; }
  .layer-text { display: none; }
  .layer-btn { padding: 5px 8px; font-size: 1.1rem; }
}

@media (max-width: 640px) {
  :root { --sidebar-w: 280px; }
  
  #navbar { padding: 0 10px; gap: 8px; }
  .btn-mobile-menu { display: block; }
  #company-logo { height: 32px; display: none; }
  .brand-title { font-size: 1.05rem; }
  
  .btn-nav .btn-text { display: none; }
  .btn-nav { padding: 6px 8px; }
  .nav-actions .btn-secondary { display: none; }
  
  /* Sidebar off-canvas */
  #sidebar { 
    position: absolute; 
    z-index: 50; 
    height: 100%; 
    left: calc(var(--sidebar-w) * -1);
    width: var(--sidebar-w) !important;
    min-width: var(--sidebar-w) !important;
    box-shadow: none;
    transition: left .25s ease;
  }
  #sidebar.mobile-open { 
    left: 0; 
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
  }
  
  /* Status bar */
  #status-bar { padding: 6px 10px; justify-content: space-between; font-size: .65rem; gap: 10px; }
  #coords-display { display: none; } /* Hide coords on mobile to save space */
  
  /* Edit hint */
  #edit-hint { top: auto; bottom: 40px; font-size: .75rem; padding: 6px 14px; }
  
  /* Hover card bottom sheet */
  #map-hover-card {
    width: calc(100% - 20px);
    bottom: 40px !important;
    top: auto !important;
    left: 10px !important;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  }
  
  /* Modal */
  .form-row.two-col { grid-template-columns: 1fr; }
  #modal { max-height: 95vh; border-radius: 14px 14px 0 0; margin-top: auto; }
  #modal-overlay { align-items: flex-end; padding: 0; }
}
