/* Admin panel for rogerblock.com. Mobile first; site palette and Manrope. */
@font-face { font-family: Manrope; src: url('manrope-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('manrope-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url('manrope-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root { --navy: #172a43; --copper: #99512f; --sand: #e6b69a; --ivory: #f5f2ec; --line: #e4ddd0; --muted: #5a6474; --ok: #2f6b4f; --bad: #9b2c2c; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ivory); color: var(--navy); font: 16px/1.5 Manrope, system-ui, sans-serif; min-height: 100vh; }
[hidden] { display: none !important; }
#app { max-width: 1100px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; }
.auth { max-width: 420px; margin: 8vh auto 0; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--copper); font-weight: 700; }
h1 { margin: 6px 0 18px; font-size: 24px; line-height: 1.25; }
h2 { margin: 0 0 6px; font-size: 19px; }
.help { color: var(--muted); margin: 0 0 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
input { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid #c9c0b0; border-radius: 8px; background: #fff; }
input:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 8px;
  border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--copper); color: #fff; width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 14px; }
.link { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.msg { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }
.top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-right: auto; }
.mono { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--ivory); font-size: 13px; }
.who { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
.tabs a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
@media (min-width: 768px) {
  #app { padding: 28px; }
  .card { padding: 28px; }
  .tabs { margin: 0 0 18px; padding: 0; }
}

/* ---------- Visitas (traffic) ---------- */
.tr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.tr-periods { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.tr-periods button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; }
.tr-periods button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }
.tr-bots { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tr-bots input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--copper); }
.tr-body { transition: opacity .15s; }
.tr-body.is-loading { opacity: .5; }
.tr-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tr-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.tr-kpi .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tr-kpi .value { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.tr-kpi .delta { font-size: 12px; color: var(--muted); }
.tr-kpi .delta.up { color: var(--ok); } .tr-kpi .delta.down { color: var(--bad); }
.tr-g2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.tr-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; margin-bottom: 12px; }
.tr-g2 > .tr-panel { margin-bottom: 0; }
.tr-hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 12px; }
.tr-hd h2 { margin: 0; font-size: 17px; }
.tr-hd .meta { font-size: 12px; color: var(--muted); }
.tr-empty { color: var(--muted); margin: 6px 0; }
.tr-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.tr-foot { font-size: 12px; color: var(--muted); margin: 6px 2px 24px; }
.tr-muted { color: var(--muted); font-size: 12px; }
.tr-sub { font-size: 12px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.tr-bar { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; }
.tr-bar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-bar .t { height: 10px; background: #f1ece4; border-radius: 4px; overflow: hidden; }
.tr-bar .t i { display: block; height: 100%; background: var(--copper); border-radius: 0 4px 4px 0; }
.tr-bar .n { font-size: 12px; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-country summary { list-style: none; cursor: pointer; }
.tr-country summary::-webkit-details-marker { display: none; }
.tr-cities { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 10px; }
.tr-cities span, .tr-chips span { font-size: 13px; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-days { display: block; width: 100%; height: 140px; }
.tr-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.tr-days .b { fill: var(--copper); }
.tr-days .hit { fill: transparent; }
.tr-days g:hover .b { fill: #7d3f22; }
.tr-days .base { stroke: #d8d0c2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tr-days text { font-size: 12px; fill: var(--muted); }
.tr-feed { display: flex; flex-direction: column; }
.tr-feed .fi { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tr-feed .fi:first-child { border-top: 0; padding-top: 0; }
.tr-feed .tm { font-size: 12px; color: var(--muted); padding-top: 2px; }
.tr-feed .mid { min-width: 0; }
.tr-feed .path { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.tr-tag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.tr-tag.ok { background: #e3efe8; color: var(--ok); }
.tr-tag.bot { background: #eceef1; color: #4a5160; }
.tr-live { font-size: 12px; font-weight: 700; color: var(--ok); }
.tr-live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.tr-org { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tr-org:first-of-type { border-top: 0; padding-top: 0; }
.tr-org .who { font-weight: 700; overflow-wrap: anywhere; }
.tr-org .where { font-size: 12px; color: var(--muted); }
.tr-org .side { font-size: 13px; white-space: nowrap; }
.tr-donut { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tr-donut .big { font-size: 20px; font-weight: 700; fill: var(--navy); }
.tr-donut .small { font-size: 11px; fill: var(--muted); }
.tr-dl { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tr-dl i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.tr-tw { overflow-x: auto; }
.tr-hm { display: grid; grid-template-columns: 2.2em repeat(24, minmax(0, 1fr)); gap: 2px; }
.tr-hm .c { aspect-ratio: 1; border-radius: 3px; }
.tr-hm .hl { font-size: 10px; color: var(--muted); text-align: left; white-space: nowrap; }
.tr-hm .rl { font-size: 11px; color: var(--muted); align-self: center; }
.tr-meter { margin-bottom: 10px; font-size: 14px; }
.tr-meter .top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tr-meter .top b { font-size: 12px; font-variant-numeric: tabular-nums; }
.tr-meter .t { height: 8px; background: #f1ece4; border-radius: 4px; overflow: hidden; }
.tr-meter .t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.tr-tip { position: fixed; z-index: 50; max-width: 260px; background: var(--navy); color: var(--ivory); font-size: 13px; line-height: 1.35; padding: 7px 10px; border-radius: 8px; pointer-events: none; box-shadow: 0 6px 18px rgba(23, 42, 67, .25); }
@media (min-width: 768px) {
  .tr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-bar { grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; }
}
@media (min-width: 1024px) { .tr-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Mensajes tab */
.tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--copper); color: #fff; font-size: 12px; font-weight: 700; }
.ms-top-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 14px; }
.ms-search { flex: 1 1 260px; margin: 0; }
.ms-search input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--navy); }
.ms-top-bar .tr-periods { max-width: 100%; overflow-x: auto; }
.ms-top-bar .tr-periods button { white-space: nowrap; }
.ms-top-bar .n { font-weight: 500; opacity: .75; margin-left: 2px; }
.ms-count { flex-basis: 100%; }
.ms-list { display: grid; gap: 10px; margin-bottom: 24px; }
.ms-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ms-card.unread { border-left: 4px solid var(--copper); }
.ms-card summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; gap: 4px; min-height: 44px; }
.ms-card summary::-webkit-details-marker { display: none; }
.ms-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ms-name { font-size: 16px; color: var(--navy); overflow-wrap: anywhere; }
.ms-card.unread .ms-name { font-weight: 800; }
.ms-card:not(.unread) .ms-name { font-weight: 600; }
.ms-name .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); margin-right: 8px; vertical-align: middle; }
.ms-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ms-meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ms-preview { font-size: 14px; color: var(--navy); overflow-wrap: anywhere; }
.ms-card[open] .ms-preview { display: none; }
.ms-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-tags:empty { display: none; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--navy); }
.tag.nl { border-color: var(--copper); color: var(--copper); }
.tag.warn { border-color: var(--bad); color: var(--bad); }
.ms-body { padding: 0 16px 16px; }
.ms-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; margin: 0 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ms-mail { margin: 0 0 12px; font-size: 14px; overflow-wrap: anywhere; }
.ms-mail a { color: var(--copper); }
.ms-warn { color: var(--bad); font-size: 14px; margin: 0 0 12px; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ms-actions .btn.primary { width: auto; }
.btn.ghost { background: #fff; color: var(--copper); border: 1px solid var(--copper); }
.ms-sub { font-size: 14px; font-weight: 600; color: var(--ok); }
.ms-sub.unsubscribed { color: var(--muted); }
.ms-sub.pending { color: var(--muted); }
.ms-note { margin: 10px 0 0; font-size: 14px; }
.ms-note:empty { display: none; }
.ms-note.ok { color: var(--ok); }
.ms-note.bad { color: var(--bad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) { .ms-actions .btn { flex: 1 1 100%; } }

/* ---------- Suscriptores ---------- */
.sb-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
.sb-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-tools .btn, .sb-actions .btn { width: auto; min-height: 44px; padding: 0 16px; }
.sb-status { max-width: 100%; overflow-x: auto; margin-bottom: 10px; }
.sb-status button { white-space: nowrap; }
.sb-status .n, .chip .n { font-weight: 500; opacity: .75; margin-left: 2px; }
.sb-tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sb-tagbar:empty { display: none; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.chip.danger { color: var(--bad); border-color: var(--bad); }
.sb-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 8px; }
.sb-all { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; cursor: pointer; }
.sb-panel input[type="checkbox"], .sb-list input[type="checkbox"], .sb-all input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; accent-color: var(--copper); }
.sb-bulk { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--ivory); border: 1px solid var(--copper); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.sb-bulk[hidden] { display: none; }
.sb-bulk b { flex-basis: 100%; font-size: 14px; }
.sb-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sb-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sb-row.open { border-color: var(--navy); }
.sb-check { display: grid; place-items: center; margin: 0; min-height: 44px; cursor: pointer; }
.sb-main { display: grid; gap: 3px; text-align: left; background: none; border: 0; padding: 12px 14px 12px 0; font: inherit; color: var(--navy); cursor: pointer; min-height: 44px; min-width: 0; }
.sb-l1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sb-l1 b { overflow-wrap: anywhere; }
.sb-l2 { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sb-l2:empty { display: none; }
.sb-st { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sb-st i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--muted); }
.sb-st.confirmed { color: var(--ok); } .sb-st.confirmed i { background: var(--ok); }
.sb-st.pending { color: var(--copper); } .sb-st.pending i { background: var(--sand); border: 1px solid var(--copper); }
.sb-st.unsubscribed i { background: #fff; border: 1px solid var(--muted); }
.sb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.sb-detail { grid-column: 1 / -1; padding: 0 14px 14px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.sb-edit { padding-top: 12px; }
.sb-edit label, .sb-form label { margin-bottom: 10px; }
.sb-edit small, .sb-form small { font-weight: 400; color: var(--muted); }
.sb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-hist { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 14px; }
.sb-hist dt { color: var(--muted); font-weight: 600; }
.sb-hist dd { margin: 0; overflow-wrap: anywhere; }
.sb-form h3 { margin: 0 0 10px; font-size: 17px; }
.sb-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; background: var(--ivory); border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; }
.sb-consent input { margin-top: 1px !important; }
.sb-form select { display: block; width: 100%; margin-top: 6px; min-height: 44px; padding: 0 10px; font: inherit; border: 1px solid #c9c0b0; border-radius: 8px; background: #fff; color: var(--navy); }
.sb-mapgrid { display: grid; gap: 0 12px; }
.sb-preview { overflow-x: auto; margin-bottom: 12px; }
.sb-preview table { border-collapse: collapse; font-size: 13px; width: 100%; }
.sb-preview th, .sb-preview td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sb-preview th { color: var(--muted); font-weight: 600; }
.sb-form [data-go-import] { width: 100%; margin-bottom: 10px; }
.sb-file input { padding: 10px; }
.sb-toast { margin: 0 0 10px; font-weight: 600; }
.sb-more { width: 100%; margin-bottom: 24px; }
.sb-more[hidden] { display: none; }
@media (min-width: 720px) {
  .sb-top .ms-search { flex: 1 1 320px; }
  .sb-mapgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sb-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sb-bulk b { flex-basis: auto; margin-right: 6px; }
}
.sb-tools { display: grid; grid-template-columns: auto 1fr 1fr; width: 100%; }
.sb-tools .btn { padding: 0 12px; font-size: 14px; white-space: nowrap; }
.sb-status { display: flex; flex-wrap: wrap; border-radius: 16px; overflow: visible; }
@media (min-width: 720px) { .sb-tools { display: flex; width: auto; } .sb-status { display: inline-flex; border-radius: 999px; } }
.sb-st.bounced { color: var(--bad); } .sb-st.bounced i { background: var(--bad); }

/* Boletín (task 6) */
.nl-grid { display: grid; gap: 14px; }
.nl-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.nl-lbl { margin: 4px 0 8px; font-weight: 600; font-size: 14px; }
.nl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nl-edit textarea, .nl-block textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: inherit; border: 1px solid #c9c0b0; border-radius: 8px; background: #fff; resize: vertical; min-height: 120px; }
.nl-edit textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.nl-blocks { display: grid; gap: 12px; margin-bottom: 14px; }
.nl-block { border: 1px solid var(--line); border-left: 4px solid var(--sand); border-radius: 10px; padding: 10px 12px 2px; background: #fdfcf9; }
.nl-block header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.nl-block header > span:first-child { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--copper); font-weight: 700; }
.nl-btns { display: flex; gap: 4px; }
.nl-btns button, .nl-x { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font: inherit; font-size: 16px; cursor: pointer; flex: none; }
.nl-btns button:disabled { opacity: .35; cursor: default; }
.nl-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 44px; gap: 6px; margin-bottom: 8px; align-items: center; }
.nl-row input { margin: 0; }
.nl-img { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.nl-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; background: var(--ivory); }
.nl-thumb.empty { display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.nl-imgbtns .ms-note { margin: 6px 0 0; }
.nl-upload { width: auto; margin: 0; position: relative; }
.nl-phead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.nl-phead h2, .nl-aud h2 { margin: 0; }
.nl-aud h2 { margin-bottom: 10px; }
.nl-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); height: 600px; }
.nl-frame iframe { position: absolute; top: 0; left: 50%; border: 0; background: #f5f2ec; transform-origin: top center; translate: -50% 0; }
.nl-perr:empty { display: none; }
.nl-count { margin: 4px 0 12px; }
.nl-count .help { display: block; margin: 2px 0 0; font-size: 13px; }
.nl-actions { display: grid; gap: 8px; }
.nl-actions .btn { width: 100%; }
.nl-tested { font-size: 13px; margin: 10px 0 0; }
.nl-sure { margin-top: 12px; padding: 14px; border: 2px solid var(--copper); border-radius: 10px; background: #fbf4ef; }
.nl-sure p { margin: 0 0 10px; }
.nl-sendmsg:empty { display: none; }
.nl-pickq { display: block; margin-bottom: 8px; }
.nl-pickall { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 4px; font-weight: 600; }
.nl-people { list-style: none; margin: 0 0 8px; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.nl-people li + li { border-top: 1px solid var(--line); }
.nl-people label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; margin: 0; font-weight: 400; cursor: pointer; }
.nl-people input, .nl-pickall input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; accent-color: var(--copper); }
.nl-people span { min-width: 0; }
.nl-people b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.nl-people small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.nl-hist { margin-top: 14px; }
.nl-hist h2 .n { font-weight: 500; color: var(--muted); font-size: 15px; }
.nl-hist ul { list-style: none; margin: 8px 0 0; padding: 0; }
.nl-camp { padding: 12px 0; border-top: 1px solid var(--line); }
.nl-ctop { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.nl-ctop b { overflow-wrap: anywhere; padding-top: 10px; }
.nl-ctop .link { flex: none; }
.nl-camp .help { margin: 0 0 4px; font-size: 14px; }
.nl-stat { margin: 0; font-size: 14px; }
.nl-stat .ok { color: var(--ok); font-weight: 600; } .nl-stat .bad { color: var(--bad); font-weight: 600; }
.nl-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 6px 0; }
.nl-bar i { display: block; height: 100%; background: var(--copper); border-radius: 4px; }
@media (min-width: 900px) {
  .nl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .nl-side { position: sticky; top: 12px; }
  .nl-actions { grid-template-columns: 1fr 1fr; }
}
.nl-phead .tr-periods button { min-height: 44px; }

/* Sign-in view (2026-11-17): monogram header, show-password, caps-lock note, boxed error with its fix, magic link as second button */
.auth { box-shadow: 0 10px 30px rgba(23, 42, 67, .08); }
.auth-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.auth-head h1 { margin: 2px 0 0; font-size: 22px; }
.mono.lg { width: 48px; height: 48px; font-size: 16px; font-weight: 700; flex: none; }
.pw { position: relative; display: block; }
.pw input { padding-right: 96px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(calc(-50% + 3px)); min-height: 44px; min-width: 44px; padding: 0 12px;
  background: none; border: 0; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 700; color: var(--copper); cursor: pointer; }
.pw-eye:focus-visible { outline: 2px solid var(--copper); }
.caps { margin: -6px 0 12px; font-size: 14px; font-weight: 600; color: #7a5200; }
.alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: #fbeeee; border-left: 4px solid var(--bad); color: var(--bad); }
.alert-text { margin: 0; font-weight: 600; }
.alert-act { color: var(--bad); padding: 6px 0 0; min-height: 44px; font-weight: 700; }
.btn.wide { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.help.small { font-size: 14px; margin: 8px 0 0; }
.auth .links { margin-top: 8px; }
@media (min-width: 768px) { .auth { margin-top: 12vh; } }

/* Noticias tab (2026-11-18): list of notes with state dot, editor reusing the Boletín block editor */
.nw-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.nw-head h2 { margin: 0; }
.nw-head .n { color: var(--muted); font-weight: 600; font-size: 15px; }
.nw-head .btn.primary { width: auto; }
.nw-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nw-row { display: grid; grid-template-columns: 12px auto 1fr; grid-template-areas: "dot st d" "t t t"; gap: 4px 8px; align-items: center; width: 100%;
  min-height: 56px; padding: 10px 12px; text-align: left; font: inherit; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nw-row:hover, .nw-row:focus-visible { border-color: var(--copper); }
.nw-row .nw-dot { grid-area: dot; } .nw-st { grid-area: st; font-size: 13px; font-weight: 600; color: var(--muted); }
.nw-t { grid-area: t; font-weight: 600; overflow-wrap: anywhere; } .nw-d { grid-area: d; justify-self: end; font-size: 13px; color: var(--muted); }
.nw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c9c2b5; flex: none; }
.nw-dot.on { background: var(--ok); }
.nw-back { margin-bottom: 6px; }
.nw-state { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.news textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400; color: inherit; border: 1px solid var(--line); border-radius: 8px; background: #fff; resize: vertical; }
.news textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.nw-count { float: right; font-weight: 400; color: var(--muted); } .nw-count.bad { color: var(--bad); font-weight: 600; }
.nw-slugin { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-weight: 400; margin-bottom: 0; }
.nw-slugin span { color: var(--muted); font-size: 14px; }
.nw-slugin input { flex: 1 1 160px; width: auto; min-width: 0; }
.nw-url { margin: 0; overflow-wrap: anywhere; }
.nw-del { color: var(--bad); margin-top: 8px; }
.nw-actions a.btn { text-decoration: none; }
.nw-unsaved { color: var(--bad); font-weight: 600; font-size: 13px; }
