/* CMSA Encuestas — estilos mobile-first (teléfono → tableta → escritorio) */
:root {
  --primary: #0b3d6e;
  --primary-2: #1f6fb2;
  --bg: #eef2f6;
  --surface: #ffffff;
  --text: #1b2733;
  --muted: #5d6b79;
  --border: #d5dde6;
  --ok: #2e9e5b;
  --warn: #c98a00;
  --error: #c93a3a;
  --radius: 14px;
  --tap: 48px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 4px 14px rgba(16, 32, 48, .06);
  --nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
}
body.page-login { padding-bottom: 0; }
img { max-width: 100%; }
a { color: var(--primary-2); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.35rem; }
h2, .h2 { font-size: 1.12rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
[hidden] { display: none !important; }

/* --- Barra superior y navegación (inferior en teléfono) -------------------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; min-height: 52px;
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { border-radius: 6px; background: #fff; }
.logout { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; opacity: .9; }
.topbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 600;
}
.nav svg { width: 24px; height: 24px; fill: currentColor; }
.nav a.on { color: var(--primary); }

/* --- Layout ------------------------------------------------------------------ */
.container { max-width: 860px; margin: 0 auto; padding: 12px 12px 24px; }
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin: 0 0 12px;
}
.stack > * + * { margin-top: 12px; }
.grid-2, .grid-3, .grid-name { display: grid; gap: 12px; grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-name { grid-template-columns: 1fr 96px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* --- Formularios ----------------------------------------------------------- */
.field { display: block; margin: 0 0 12px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; min-height: var(--tap);
  font: inherit; font-size: 16px; /* evita zoom en iOS */
  color: var(--text); background: #fff;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 80px; resize: vertical; }
input[type="color"] { padding: 4px; height: var(--tap); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(31,111,178,.18);
}
input[readonly] { background: #f4f7fa; color: #33414f; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 3px rgba(201,58,58,.15); }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--primary); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* --- Botones ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--primary); background: #fff;
  border: 1.5px solid var(--border); border-radius: 10px;
  transition: background .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-danger { color: var(--error); border-color: #efc4c4; }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 54px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn .ico { width: 22px; height: 22px; fill: currentColor; }
.btn.loading .ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Alertas, insignias, avisos ------------------------------------------- */
.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 12px; font-weight: 500; }
.alert-error { background: #fdeeee; color: #8f2424; }
.alert-warn { background: #fff6e0; color: #6d4c00; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: #e8eef5; color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: #e3f4ea; color: #1e6e40; }
.badge-off { background: #f1f1f1; color: #888; }
.inactive { opacity: .6; }

#toasts {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  z-index: 3000; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  margin: 0 auto; max-width: 520px; width: 100%;
  padding: 12px 16px; border-radius: 12px; color: #fff; background: #26323e;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); font-weight: 500;
  animation: toast-in .25s ease-out; transition: opacity .35s, transform .35s;
}
.toast-ok { background: #1f7a47; }
.toast-error { background: #b02f2f; }
.toast-warn { background: #8a6200; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* --- Login ------------------------------------------------------------------ */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; text-align: center; padding: 28px 20px; }
.login-card .field { text-align: left; }
.login-icon { margin: 0 auto 8px; display: block; }

/* --- Inicio de jornada ----------------------------------------------------- */
.survey-pick { display: grid; gap: 10px; }
.survey-opt { position: relative; display: block; cursor: pointer; }
.survey-opt input, .chip input, .seg input, .scale input { position: absolute; opacity: 0; pointer-events: none; }
.survey-opt-body {
  display: flex; flex-direction: column; gap: 4px; padding: 14px;
  border: 2px solid var(--border); border-radius: 12px; border-left: 6px solid var(--accent, var(--primary));
}
.survey-opt input:checked + .survey-opt-body { border-color: var(--accent, var(--primary)); background: #f3f8fd; }
.survey-opt input:focus-visible + .survey-opt-body { box-shadow: 0 0 0 3px rgba(31,111,178,.3); }
.survey-logos { display: flex; gap: 12px; align-items: center; }
.survey-logos img { height: 36px; width: auto; max-width: 45%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-block { flex-direction: column; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 8px 16px;
  border: 2px solid var(--border); border-radius: 12px; font-weight: 600; background: #fff;
}
.chip small { font-weight: 400; color: var(--muted); }
.chip input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip input:checked + span small { color: rgba(255,255,255,.8); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,111,178,.3); }

/* --- Encuesta -------------------------------------------------------------- */
.jornada {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 12px;
  background: #dfe8f2; border-radius: 10px; font-size: .9rem;
}
.jornada .btn { margin-left: auto; flex: none; }
.jornada .sep { color: var(--muted); }
.jornada > span:first-child { white-space: nowrap; flex: none; }
.survey-head { border-top: 6px solid var(--primary); }
.survey-head-logos { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.survey-head-logos .logo { height: 56px; width: auto; max-width: 46%; object-fit: contain; }
.folio-box {
  display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 12px;
  border: 2px solid var(--primary); border-radius: 10px; overflow: hidden;
}
.folio-box > div { display: flex; flex-direction: column; padding: 6px 10px; }
.folio-box > div + div { border-left: 2px solid var(--primary); }
.folio-box dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--primary); letter-spacing: .05em; }
.folio-box dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.folio-box dd small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.indicaciones, .presentacion { margin: 0 0 8px; font-size: .95rem; }
.aviso {
  margin: 8px 0 0; padding: 8px 12px; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: .88rem; font-weight: 600; text-align: center;
}

.question { scroll-margin-top: 80px; }
.q-title { display: flex; gap: 10px; font-size: 1.05rem; }
.q-num {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .9rem; font-weight: 700;
}
.q-note { margin: 10px 0 0; padding: 8px 10px; background: #fff8e5; border-left: 4px solid #f0b400; border-radius: 6px; font-size: .88rem; color: #5c4500; }
.q-error { margin: 8px 0 0; color: var(--error); font-weight: 600; font-size: .9rem; }
.question.has-error, .geo-block.has-error { box-shadow: 0 0 0 2px var(--error), var(--shadow); }
.sub { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.sub-label { margin: 0 0 8px; font-weight: 600; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  border: 2px solid var(--border); border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; background: #fff;
}
.seg input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.seg input:focus-visible + span, .scale input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,111,178,.35); }

.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.scale label { position: relative; }
.scale span {
  display: flex; align-items: center; justify-content: center; height: 48px;
  border: 2px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 1.05rem; cursor: pointer; background: #fff;
  font-variant-numeric: tabular-nums;
}
.scale label:nth-child(-n+6) input:checked + span { background: #d64545; border-color: #d64545; color: #fff; }
.scale label:nth-child(n+7):nth-child(-n+8) input:checked + span { background: #e39a00; border-color: #e39a00; color: #fff; }
.scale label:nth-child(n+9) input:checked + span { background: #2e9e5b; border-color: #2e9e5b; color: #fff; }
.scale-legend { display: flex; justify-content: space-between; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.input-num { max-width: 160px; }

.geo-block { margin: 4px 0 12px; padding: 12px; border-radius: 12px; background: #f3f7fb; border: 1px solid var(--border); }
.geo-actions .btn { width: 100%; }
.gps-status { margin: 8px 0 0; font-size: .9rem; }
.gps-status.ok { color: #1e6e40; }
.gps-status.warn { color: #7a5600; }
.gps-status.error { color: var(--error); font-weight: 600; }
.minimap { height: 200px; margin-top: 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); z-index: 0; }

.elaboro, .kv { margin: 8px 0 0; display: grid; gap: 8px; }
.elaboro { grid-template-columns: 2fr 1fr; padding-top: 12px; border-top: 1px solid var(--border); }
.elaboro dt, .kv dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.elaboro dd, .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.kv { grid-template-columns: 1fr; margin-bottom: 12px; }

.submit-bar {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 500;
  padding: 10px 0; background: linear-gradient(to bottom, rgba(238,242,246,0), var(--bg) 35%);
}

.dialog { border: 0; border-radius: 18px; padding: 0; width: min(92vw, 400px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dialog::backdrop { background: rgba(10, 25, 40, .55); }
.dialog-body { padding: 24px 20px; }
.ok-icon { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #e3f4ea; color: var(--ok); font-size: 2rem; font-weight: 700; }
.folio-big { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: .03em; margin: 0 0 16px; font-variant-numeric: tabular-nums; }

.answers { margin: 0; padding-left: 1.3em; }
.answers li { padding: 8px 0; border-bottom: 1px solid #edf1f5; }
.answers li span { display: block; }
.answers li strong { color: var(--primary); }

/* --- Mapa ------------------------------------------------------------------ */
.page-map { padding-bottom: 0; }
.map-layout { position: relative; height: calc(100vh - 52px - var(--nav-h) - var(--safe-b)); height: calc(100dvh - 52px - var(--nav-h) - var(--safe-b)); }
.map { position: absolute; inset: 0; z-index: 1; }
.map-panel {
  position: absolute; z-index: 800; top: 10px; left: 56px; right: 10px;
  background: var(--surface); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.18);
  max-height: calc(100% - 20px); display: flex; flex-direction: column;
}
.panel-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: var(--tap); padding: 8px 14px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer;
}
.panel-toggle::after { content: "▾"; transition: transform .2s; }
.map-panel.open .panel-toggle::after { transform: rotate(180deg); }
.count { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--muted); }
.filters { display: none; padding: 0 14px 14px; overflow-y: auto; }
.map-panel.open .filters { display: block; }
.filters .field { margin-bottom: 8px; }
.filters input, .filters select { min-height: 42px; padding: 8px 10px; }
.export { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: .88rem; }
.legend {
  position: absolute; z-index: 800; left: 10px; bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 20px);
  padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.15); font-size: .8rem;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.locate-btn { width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border: 0; cursor: pointer; color: #333; }
.pop p { margin: 6px 0; }
.pop-head { display: flex; justify-content: space-between; gap: 8px; }
.pop-head span { color: var(--muted); font-size: .85em; }
.pop-table { width: 100%; border-collapse: collapse; margin: 6px 0 8px; font-size: .85em; }
.pop-table td { padding: 4px 0; border-top: 1px solid #eee; vertical-align: top; }
.pop-table td + td { padding-left: 8px; text-align: right; white-space: nowrap; }
.leaflet-container { font: inherit; }
.marker-cluster-small, .marker-cluster-small div { background-color: rgba(31,111,178,.25); }
.marker-cluster-small div { background-color: rgba(31,111,178,.75); color: #fff; }
.marker-cluster-medium { background-color: rgba(240,165,0,.3); }
.marker-cluster-medium div { background-color: rgba(230,140,0,.85); color: #fff; }
.marker-cluster-large { background-color: rgba(214,69,69,.3); }
.marker-cluster-large div { background-color: rgba(200,50,50,.85); color: #fff; }

/* --- Tablas / listas ------------------------------------------------------- */
.filters-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 0; }
.filters-inline .field { margin-bottom: 8px; }
.table-wrap { margin-top: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid #edf1f5; }
/* En teléfono cada fila se muestra como tarjeta */
.responsive-table thead { display: none; }
.responsive-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
.responsive-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
.responsive-table td[data-th]::before { content: attr(data-th); color: var(--muted); font-size: .82rem; }
.responsive-table td:last-child { justify-content: flex-end; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: .9rem; }

.subnav { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; scrollbar-width: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 99px; text-decoration: none; font-weight: 600; color: var(--muted); background: #e3e9f0; }
.subnav a.on { background: var(--primary); color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.stat span { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-weight: 600; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 10px; padding: 6px 0; }
.bar { height: 10px; background: #e8eef5; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary-2); border-radius: 99px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf1f5; }
.list-item summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: var(--tap); }
.list-item details[open] summary { margin-bottom: 12px; }
.list-logos { display: flex; gap: 6px; }
.list-logos img { height: 32px; width: auto; max-width: 70px; object-fit: contain; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.inline-form .w-code { flex: 0 0 110px; }
.inline-form .grow { flex: 1 1 180px; }

.logos-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logo-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }
.logo-preview { height: 80px; display: grid; place-items: center; }
.logo-preview img { height: 80px; width: auto; max-width: 100%; object-fit: contain; }

.q-list { list-style: none; margin: 0 0 12px; padding: 0; }
.q-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.q-item details { flex: 1; min-width: 0; }
.q-item summary { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-height: var(--tap); padding-top: 4px; }
.q-item details[open] summary { margin-bottom: 12px; }
.q-move { display: flex; flex-direction: column; gap: 4px; }
.add-q summary { list-style: none; display: inline-flex; }
.add-q summary::-webkit-details-marker { display: none; }
.add-q[open] summary { margin-bottom: 12px; }

/* --- Tableta (≥600px) ------------------------------------------------------ */
@media (min-width: 600px) {
  .container { padding: 20px 20px 32px; }
  .card { padding: 22px; }
  h1 { font-size: 1.55rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-name { grid-template-columns: 1fr 120px; }
  .scale { grid-template-columns: repeat(11, 1fr); }
  .survey-head-logos .logo { height: 72px; }
  .survey-pick { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .seg { max-width: 420px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .kv { grid-template-columns: 1fr 1fr; }
  .filters-inline { grid-template-columns: repeat(3, 1fr); }
  .minimap { height: 260px; }
  .map-panel { right: auto; width: 340px; }
  .responsive-table thead { display: table-header-group; }
  .responsive-table tr { display: table-row; padding: 0; border: 0; }
  .responsive-table td { display: table-cell; padding: 10px 8px; border-bottom: 1px solid #edf1f5; }
  .responsive-table td[data-th]::before { content: none; }
  #toasts { left: auto; right: 20px; width: 380px; }
}

/* --- Escritorio (≥900px): navegación en la barra superior -------------------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .nav { position: static; height: auto; padding: 0; background: none; border: 0; box-shadow: none; justify-content: flex-start; gap: 4px; margin-left: 24px; }
  .nav a { flex: none; flex-direction: row; gap: 8px; padding: 8px 14px; border-radius: 10px; color: rgba(255,255,255,.8); font-size: .95rem; }
  .nav a svg { width: 20px; height: 20px; }
  .nav a.on, .nav a:hover { color: #fff; background: rgba(255,255,255,.14); }
  .logout { margin-left: auto; }
  .submit-bar { bottom: 0; }
  .map-layout { height: calc(100vh - 52px); height: calc(100dvh - 52px); }
  .map-panel .panel-toggle { cursor: default; }
  .map-panel .panel-toggle::after { content: none; }
  .map-panel .filters { display: block; }
  #toasts { bottom: 20px; }
  .filters-inline { grid-template-columns: repeat(6, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
