/* Backoffice */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.subnav { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 4.5rem; }
@media (max-width: 860px) { .subnav { flex-direction: row; flex-wrap: wrap; position: static; } }
.subnav a { text-decoration: none; color: var(--text); padding: .45rem .7rem; border-radius: 8px; font-size: .92rem; font-weight: 600; display: flex; justify-content: space-between; gap: .5rem; }
.subnav a:hover { background: var(--surface); }
.subnav a.active { background: var(--surface); box-shadow: inset 3px 0 0 var(--signal); }
.subnav .count { font-family: var(--mono); font-size: .72rem; background: var(--info-soft); color: var(--info); border-radius: 999px; padding: 0 .45rem; }
table.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .9rem; }
table.list th, table.list td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.list th { background: var(--bg); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.list tr.clickable { cursor: pointer; }
table.list tr.clickable:hover td { background: var(--bg); }
.tablewrap { overflow-x: auto; }
.pagehead { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.pagehead h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0; }
.i18n-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 .8rem; }
.i18n-pair .lang { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-left: .3rem; }
.qrow { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: .8rem; margin-bottom: .6rem; }
.qrow .row > .field { flex: 1 1 160px; margin-bottom: .5rem; }
.zone-list { list-style: none; padding: 0; margin: 0; }
.zone-list li { padding: .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); margin-bottom: .45rem; }
.zone-list li.editing { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.member { display: inline-flex; gap: .3rem; align-items: center; padding: .15rem .3rem .15rem .55rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; margin: .15rem .2rem .15rem 0; background: var(--surface); }
.member select { width: auto; padding: .05rem .2rem; font-size: .75rem; }
.member button { border: none; background: none; color: var(--err); cursor: pointer; font-size: .9rem; padding: 0 .2rem; }
.todo li { margin-bottom: .3rem; }
.audit-row td { font-size: .82rem; }

/* Editor de mapas: mapa grande + panel lateral; «Ancho completo» quita el menú lateral y el límite de anchura */
.map-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 1rem; align-items: start; }
.map.editor { height: max(520px, calc(100vh - 250px)); }
@media (max-width: 1000px) { .map-grid { grid-template-columns: 1fr; } .map.editor { height: 70vh; } }
body.wide main { max-width: none; }
body.wide .layout { grid-template-columns: 1fr; }
body.wide .subnav { flex-direction: row; flex-wrap: wrap; position: static; }
body.wide .subnav a.active { box-shadow: inset 0 -3px 0 var(--signal); }
body.wide header.site .inner { max-width: none; }

/* Lanzamiento del radar */
.card.launch { border-color: color-mix(in srgb, var(--signal) 35%, var(--border)); }
.card.launch h3 { margin: 0; }
.launch-steps { display: flex; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.launch-steps li { padding: .25rem .6rem; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.launch-steps li + li { border-left: none; }
.launch-steps li:first-child { border-radius: 999px 0 0 999px; } .launch-steps li:last-child { border-radius: 0 999px 999px 0; }
.launch-steps li.done { color: var(--ok); }
.launch-steps li.current { background: var(--signal); border-color: var(--signal); color: #06281C; font-weight: 700; }
.launch-access { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.launch-access .grow { flex: 1 1 320px; min-width: 0; }
.launch-access.off { opacity: .55; }

.phase-row { display: flex; gap: .6rem 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-top: .9rem; }
.filters select { width: auto; }
.cap-detail img { width: 100%; max-height: 360px; object-fit: contain; background: var(--bg); border-radius: 8px; display: block; margin: .6rem 0; }
.cap-detail video { width: 100%; max-height: 320px; border-radius: 8px; background: #000; margin-bottom: .6rem; }
.feed li.sel { background: var(--signal-soft); }
.sig.mover { width: 26px; height: 26px; background: #E03131; border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(224,49,49,.35), 0 2px 6px rgba(0,0,0,.4); cursor: move; }
