:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #1c1c1e;
  --muted: #74747a;
  --line: rgba(0, 0, 0, .08);
  --soft: rgba(0, 0, 0, .045);
  --accent: #2e5e4e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(46, 94, 78, .11);
  --late: #a5650a;
  --late-soft: rgba(196, 128, 20, .14);
  --over: #c0392b;
  --over-soft: rgba(192, 57, 43, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --r: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --card: #1d1d1f;
    --ink: #f2f2f0;
    --muted: #9a9aa0;
    --line: rgba(255, 255, 255, .09);
    --soft: rgba(255, 255, 255, .06);
    --accent: #7cc4a9;
    --accent-ink: #0d1f19;
    --accent-soft: rgba(124, 196, 169, .14);
    --late: #e3a948;
    --late-soft: rgba(227, 169, 72, .15);
    --over: #ff6b5e;
    --over-soft: rgba(255, 107, 94, .15);
    --shadow: none;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
code { font-size: .9em; }

/* ---------- Cabecera + captura ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  padding: calc(env(safe-area-inset-top) + 6px) 16px 10px;
  border-bottom: 1px solid var(--line);
}
.titlebar { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.titlebar h1 { flex: 1; margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.iconbtn:active { background: var(--soft); }

#capture { display: flex; gap: 8px; margin-top: 6px; }
#captureInput {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 17px; outline: none; box-shadow: var(--shadow);
}
#captureInput:focus { border-color: var(--accent); }
.addbtn { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.addbtn:active { transform: scale(.95); }
.preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.preview:empty { display: none; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; line-height: 1; padding: 5px 8px; border-radius: 999px;
  background: var(--soft); color: var(--muted); white-space: nowrap;
}
.chip.tag, .tag { color: var(--accent); }
.chip.tag { background: var(--accent-soft); }
.chip.today { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chip.late { background: var(--late-soft); color: var(--late); }
.chip.over { background: var(--over-soft); color: var(--over); font-weight: 600; }

/* ---------- Listas ---------- */
main { padding: 8px 16px 24px; }
.section-title { margin: 18px 4px 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; justify-content: space-between; }
.section-title.over { color: var(--over); }
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item:active { background: var(--soft); }
.check {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  border: 2px solid var(--muted); opacity: .6; display: grid; place-items: center;
  position: relative;
}
.check::after { content: ""; position: absolute; inset: -10px; } /* área táctil más grande */
.item.done .check { background: var(--accent); border-color: var(--accent); opacity: 1; }
.item.done .check::before { content: ""; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2.2px 2.2px 0; transform: translateY(-1px) rotate(45deg); }
.item .body { flex: 1; min-width: 0; }
.item .text { word-wrap: break-word; overflow-wrap: anywhere; }
.item.done .text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.item .meta:empty { display: none; }
.tag { font-weight: 500; }

.empty { text-align: center; color: var(--muted); padding: 48px 24px; }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

.segmented { display: flex; background: var(--soft); border-radius: 10px; padding: 3px; margin: 6px 0 4px; }
.segmented button { flex: 1; padding: 7px 0; border-radius: 8px; font-size: 14px; color: var(--muted); }
.segmented button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.banner { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px; background: var(--late-soft); color: var(--late); font-size: 14px; }
.banner span { flex: 1; }
.banner button { font-weight: 600; }

.taglist { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.taglist li { display: flex; align-items: center; padding: 13px 14px; border-top: 1px solid var(--line); }
.taglist li:first-child { border-top: 0; }
.taglist li:active { background: var(--soft); }
.taglist .name { flex: 1; font-weight: 500; }
.taglist .name.none { color: var(--muted); font-weight: 400; }
.taglist .count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.taglist .count b { color: var(--ink); font-weight: 600; }
.taglist svg { width: 16px; height: 16px; color: var(--muted); margin-left: 8px; }

.searchbox { width: 100%; height: 42px; padding: 0 14px; margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); outline: none; font-size: 16px; }
.searchbox:focus { border-color: var(--accent); }
.hint { color: var(--muted); font-size: 14px; margin: 8px 4px; }

/* ---------- Tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 11px; font-weight: 500; }
.tabs button.active { color: var(--accent); }
.tabs svg { width: 24px; height: 24px; }

/* ---------- Hojas (bottom sheets) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); animation: fade .18s ease; }
.panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg); border-radius: 18px 18px 0 0;
  padding: 6px 16px calc(24px + env(safe-area-inset-bottom));
  animation: up .22s cubic-bezier(.2, .9, .3, 1);
}
.panel.tall { height: 88vh; height: 88dvh; }
@media (min-width: 640px) { .panel { left: 50%; width: 560px; margin-left: -280px; } }
.panel-head { position: sticky; top: -6px; z-index: 2; background: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.panel-head .grab { position: absolute; left: 50%; top: 4px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--line); }
.panel-title { font-weight: 600; }
.textbtn { padding: 6px 2px; color: var(--accent); }
.textbtn.strong { font-weight: 600; }
.textbtn.danger { color: var(--over); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

#fText {
  width: 100%; resize: none; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-size: 17px; line-height: 1.4; outline: none; margin-bottom: 8px;
}
#fText:focus { border-color: var(--accent); }
#fTags:empty { display: none; }
.fields { margin-top: 10px; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 14px; border-top: 1px solid var(--line); }
.field:first-child { border-top: 0; }
.field > span { flex: 1; }
.field input[type=date] { border: 0; background: var(--soft); border-radius: 8px; padding: 6px 10px; min-width: 130px; min-height: 34px; color: var(--ink); font-size: 16px; }
.field .clear { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); font-size: 20px; line-height: 1; }
.field.switch input { position: absolute; opacity: 0; pointer-events: none; }
.field.switch i { width: 51px; height: 31px; border-radius: 16px; background: var(--soft); position: relative; transition: background .2s; margin-right: 6px; border: 1px solid var(--line); }
.field.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.field.switch input:checked + i { background: var(--accent); }
.field.switch input:checked + i::after { transform: translateX(20px); }

.block h3 { margin: 22px 4px 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.block h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.minilist { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.minilist:empty { display: none; }
.minilist li { display: flex; align-items: center; gap: 10px; padding: 11px 8px 11px 14px; border-top: 1px solid var(--line); }
.minilist li:first-child { border-top: 0; }
.minilist .t { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.minilist .t.done { color: var(--muted); text-decoration: line-through; }
.minilist .act { flex: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.minilist .act.rm { color: var(--muted); background: transparent; font-size: 20px; padding: 2px 8px; }
.ghostbtn { width: 100%; margin-top: 8px; padding: 12px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.primarybtn { width: 100%; margin-top: 8px; padding: 14px; border-radius: 12px; color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.fineprint { color: var(--muted); font-size: 13px; margin: 16px 4px 0; }
#pickerInput { width: 100%; height: 42px; padding: 0 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); outline: none; font-size: 16px; }
#pickerList li { cursor: pointer; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 8px; }
.stats div { background: var(--card); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--muted); }
.stats .wide { grid-column: 1 / -1; }
.stats .wide b { font-size: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 12px; right: 12px; z-index: 60;
  bottom: calc(80px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: #1f1f21; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  animation: fade .15s ease; max-width: 520px; margin: 0 auto;
}
.toast span { flex: 1; font-size: 15px; }
.toast button { color: #9fe0c6; font-weight: 600; }
.toast button:empty { display: none; }

/* ---------- V0.1: foco, algún día, estado, sugerencias de etiquetas ---------- */
.pulse { margin: 10px 4px 0; font-size: 14px; color: var(--muted); }
.pulse b { color: var(--ink); font-variant-numeric: tabular-nums; }
.section-title.focus { color: var(--accent); }
.item.focused { box-shadow: inset 3px 0 0 var(--accent); }
.chip.focus { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.focus-hint { padding: 12px 14px; margin: 14px 0 0; border-radius: 12px; border: 1px dashed var(--line); }

.fields + .fields { margin-top: 10px; }
.field.stack { padding: 8px; }
.seg { flex: 1; display: flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; padding: 8px 0; border-radius: 8px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
@media (prefers-color-scheme: dark) { .seg button.on { background: #3a3a3c; } .segmented button.on { background: #3a3a3c; } }
.field small { color: var(--muted); font-size: 12px; margin-left: 4px; }

button.chip.sug { cursor: pointer; font-size: 14px; padding: 7px 10px; }
button.chip.sug small { opacity: .6; font-size: 11px; }
.chip.newtag { background: transparent; border: 1px dashed var(--line); }

.tagactions { display: flex; gap: 8px; margin: 10px 0 2px; }
.tagactions button { flex: 1; padding: 10px 8px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--accent); background: var(--accent-soft); }
.tagactions button.danger { color: var(--over); background: var(--over-soft); }
.bulkbtn { width: 100%; margin: 8px 0 2px; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 1px dashed var(--line); color: var(--muted); }

/* ---------- V0.2: dominios ---------- */
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dc, var(--muted)); margin-right: 5px; vertical-align: 1px; }
.pulse .dot { margin: 0 0 0 3px; }
.chip.dom { color: var(--ink); background: var(--soft); }
.chip.dom .dot { margin-right: 2px; }
.muted { color: var(--muted); font-style: normal; }
.nudge { color: var(--late); margin-top: 4px; }
.insight { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.section-title.withdot span:first-child { display: flex; align-items: center; }

.domcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.domcard { text-align: left; background: var(--card); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); border-top: 3px solid var(--dc); display: flex; flex-direction: column; gap: 8px; min-height: 104px; }
.domcard:active { transform: scale(.98); }
.dc-head { display: flex; align-items: center; gap: 2px; font-size: 15px; }
.dc-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-focus { font-size: 12px; font-weight: 600; color: var(--accent); }
.dc-bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.dc-bar span { display: block; height: 100%; background: var(--dc); border-radius: 3px; min-width: 0; }
.dc-nums { font-size: 12px; color: var(--muted); line-height: 1.35; }
.dc-nums b { color: var(--ink); }
.dc-warn { font-size: 12px; color: var(--late); }

.sugbtn { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--soft); margin-left: 8px; }
.bulkbtn.strong { color: var(--accent); background: var(--accent-soft); border-style: solid; border-color: transparent; font-weight: 600; margin-bottom: 8px; }
.rowbtns { display: flex; gap: 8px; margin-top: 18px; }
.rowbtns .ghostbtn { margin-top: 0; }
.domtags { margin: 10px 0 2px; }
.domtags .chip { cursor: pointer; }
.taglist li .dot { margin-right: 8px; }

.navrow { width: 100%; text-align: left; }
.navrow svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.navrow.single { background: var(--card); border-radius: 12px; margin-top: 10px; box-shadow: var(--shadow); }
.domval { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; }
.domval small { color: var(--muted); font-size: 12px; margin-left: 4px; }

.domgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dombtn { display: flex; align-items: center; gap: 4px; padding: 14px 12px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; font-weight: 500; text-align: left; border: 2px solid transparent; }
.dombtn span { flex: 1; }
.dombtn small { font-size: 11px; color: var(--accent); font-weight: 600; }
.dombtn.on { border-color: var(--dc); }
.dombtn.clear { grid-column: 1 / -1; justify-content: center; color: var(--muted); }
.domval { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
.domval > span.dname { display: inline-flex; align-items: center; }
.domval small { margin-left: 0; }

/* ---------- V0.3: inbox con clasificar, mapa y revisión ---------- */
:root { --edge: rgba(0, 0, 0, .16); }
@media (prefers-color-scheme: dark) { :root { --edge: rgba(255, 255, 255, .2); } }

.segmented.four button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; font-size: 13px; line-height: 1.15; }
.segmented.four button b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.segmented.four button.on b { color: var(--accent); }
.segmented { margin-top: 14px; }

.item.triage .tri { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tri button, .tri .tri-date { position: relative; flex: 1 1 auto; min-width: 64px; padding: 7px 8px; border-radius: 9px; font-size: 13px; font-weight: 500; text-align: center; color: var(--accent); background: var(--accent-soft); cursor: pointer; }
.tri .del { color: var(--muted); background: var(--soft); flex: 0 1 auto; }
.tri-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.chip.nodom { background: transparent; border: 1px dashed var(--line); }
.item.leaving { opacity: 0; transform: translateX(24px); transition: opacity .2s, transform .2s; }

/* Barra de reparto por dominio */
.sharebar { background: var(--card); border-radius: var(--r); padding: 12px 14px; margin-top: 10px; box-shadow: var(--shadow); }
.sb-title { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.sb-title small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.sb-bar { display: flex; gap: 2px; height: 12px; }
.sb-seg { min-width: 6px; background: var(--dc); border-radius: 0; padding: 0; }
.sb-seg:first-child { border-radius: 4px 0 0 4px; }
.sb-seg:last-child { border-radius: 0 4px 4px 0; }
.sb-seg:only-child { border-radius: 4px; }
.sb-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.sb-leg { display: inline-flex; align-items: center; }
.sb-leg b { color: var(--ink); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.sb-note { margin: 8px 0 0; }

/* Controles + lienzo */
.mapctl-row { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.segmented.mini { flex: 1; margin: 0; }
.segmented.mini button { padding: 6px 0; font-size: 13px; }
.togglechip { padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; background: var(--soft); color: var(--muted); white-space: nowrap; }
.togglechip.on { background: var(--accent-soft); color: var(--accent); }
#mapwrap { position: relative; height: 58vh; min-height: 320px; max-height: 620px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
#mapsvg { display: block; width: 100%; height: 100%; }
#mapg { font-family: inherit; }
.e { stroke-linecap: round; opacity: .75; }
.e-tt { opacity: .55; }
.e-ee { stroke-dasharray: 4 3; opacity: .9; }
.e.dim { opacity: .08; }
.n { cursor: pointer; }
.n .hit { fill: transparent; }
.n .dot2 { fill: var(--dc); stroke: var(--card); stroke-width: 2; }
.n-tag .dot2 { fill: color-mix(in srgb, var(--dc) 30%, var(--card)); stroke: var(--dc); stroke-width: 1.6; }
.n-tag.nodom .dot2 { fill: var(--card); stroke: var(--muted); stroke-dasharray: 3 2; }
.n-entry .dot2 { stroke-width: 1.5; }
.n-entry.someday .dot2 { fill: var(--card); stroke: var(--dc); stroke-width: 2; }
.n-entry.done .dot2 { fill: var(--muted); opacity: .5; }
.n-entry.focus .dot2 { stroke: var(--ink); stroke-width: 2; }
.n text { fill: var(--ink); text-anchor: middle; font-size: 1em; pointer-events: none; paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; }
.n-domain text { font-weight: 700; font-size: 1.15em; }
.n-domain text.cnt { fill: #fff; stroke: none; font-size: 1em; font-weight: 700; }
.n-tag text { fill: var(--muted); }
.n.sel .dot2 { stroke: var(--ink); stroke-width: 2.5; }
.n.sel text, .n.sel.n-tag text { fill: var(--ink); font-weight: 700; }
.n.dim { opacity: .18; }
.mapzoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.mapzoom button { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-size: 18px; color: var(--ink); }
.maplegend { position: absolute; left: 10px; right: 50px; bottom: 6px; margin: 0; font-size: 11px; color: var(--muted); pointer-events: none; }

#mappanel { margin-top: 10px; }
.mpanel { background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.mpanel .list { box-shadow: none; margin: 10px -14px 0; border-radius: 0; border-top: 1px solid var(--line); }
.mp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 17px; }
.mp-head b { flex: 1; }
.mp-head > span { color: var(--muted); font-size: 13px; }
.mp-sub { margin: 4px 0 6px; font-size: 13px; color: var(--muted); }
.chip.pick { cursor: pointer; font-size: 13px; }
.mpanel .chips .chip, .acard .chips .chip { cursor: pointer; font-size: 13px; padding: 6px 9px; }
.chip small { opacity: .65; font-size: 11px; }

/* Tarjetas de revisión */
.acard { background: var(--card); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.acard p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.acard p .chip { font-size: 13px; padding: 3px 7px; vertical-align: 1px; }
.acard .chips { margin-bottom: 8px; }
.chip.rm { color: var(--over); background: var(--over-soft); }
.aacts { display: flex; flex-wrap: wrap; gap: 6px; }
.aacts button { padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; background: var(--soft); }
.aacts button.go { color: var(--accent); background: var(--accent-soft); }
.aacts button.quiet { color: var(--muted); background: transparent; }
#mapsvg, #mapsvg * { stroke-linecap: round; }
#mapsvg { fill: initial; stroke: none; stroke-width: initial; width: 100%; height: 100%; }
#mapsvg .hit { stroke: none; }
#mapwrap { height: 64vh; }
.maplegend { position: static; margin: 6px 4px 0; }
#mapsvg.lowzoom .n-tag.w1 text { display: none; }
#mapsvg.lowzoom .n-tag.w1.near text, #mapsvg.lowzoom .n-tag.w1.sel text { display: block; }
.sharebar { margin-top: 14px; }
#mapsvg.lowzoom .n-tag.w1.nodom text { display: block; }
