/* ═══════════════════════════════════════════════
   css/area-privada.css: área privada (area-privada.html)
   Usa los tokens y botones de shared.css. Sin estilos en línea: la página
   tiene una Content-Security-Policy estricta.
   ═══════════════════════════════════════════════ */

/* Layout común a todas las pestañas: el contenido ocupa casi todo el ancho de la pantalla,
   con un margen lateral que crece con el viewport y un tope solo para monitores muy anchos.
   Cabecera, contenido y pie usan los mismos tokens, así quedan alineados entre sí. */
:root {
  /* Paleta de los manuales (ml/, data-storytelling) con fondo #F2F0EB.
     Se redefinen los tokens de shared.css solo en esta página: todo el área privada los hereda. */
  --off: #F2F0EB;                 /* fondo */
  --white: #FFFFFF;               /* tarjetas */
  --ink: #1D2638;                 /* texto principal, pie */
  --text: #2D374B;
  --muted: #586278;               /* texto secundario: 5,7:1 sobre el fondo */
  --purple: #273A5F;              /* acento (barras, foco, selección) */
  --purple-text: #4A628E;         /* acento para texto y enlaces: 5,4:1 sobre el fondo */
  --purple-light: #E7ECF4;
  --green: #2F7D5B; --green-light: #E6F1EB; --green-ink: #1F5C42;
  --red: #A3223E;   --red-light: #F7E8EB;   --red-ink: #7A1A2E;
  --ap-support: #9A6414; --ap-support-soft: #F6EEDC; --ap-support-ink: #6B4508;
  --ap-line: #DCE2EB; --ap-line-soft: #E9EDF3; --ap-line-strong: #B9C5D6;
  --ap-surface-2: #F7F8FA;        /* cabeceras de tabla, días fuera de mes */
  --ap-hover: #F3F5F9;
  --ap-ring: rgba(74, 98, 142, .28);
  --ap-shadow: rgba(29, 38, 56, .14);
  --radius-lg: 12px; --radius-md: 10px;
  --font-mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;
  --ap-max: 1960px;
  --ap-gutter: clamp(16px, 3vw, 56px);
  --ap-inline: max(var(--ap-gutter), calc((100% - var(--ap-max)) / 2 + var(--ap-gutter)));
  --ap-top-h: 64px;
}
body { background: var(--off); }
[hidden] { display: none !important; }

/* ─── CABECERA MÍNIMA ─── */
.ap-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 16px;
  min-height: var(--ap-top-h); padding-inline: var(--ap-inline);
  background: var(--off); border-bottom: 1px solid var(--ap-line);
}
/* Reloj: módulo LCD de siete segmentos (lo dibuja area-privada.js). Caja navy (--ink), pantalla azul pálido
   (--purple-light) y dígitos navy: solo colores de la paleta. Los segmentos apagados quedan tenues, como en un LCD. */
.ap-now { justify-self: start; display: flex; align-items: center; color: var(--ink); white-space: nowrap; }
.ap-lcd { --h: 26px; --hs: 13px; display: block; padding: 4px; border-radius: 9px; background: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 5px var(--ap-shadow); }
.ap-lcd-screen { display: grid; gap: 4px; padding: 5px 9px 6px; border-radius: 5px; background: var(--purple-light); box-shadow: inset 0 1px 3px rgba(29, 38, 56, .4); }
.ap-lcd-days { display: flex; justify-content: space-between; gap: 2px; font-family: var(--font-mono); font-size: 7.5px; font-weight: 500; line-height: 1; letter-spacing: .04em; color: var(--muted); }
.ap-lcd-day { padding: 2px 2px 1px; border-radius: 1px; }
.ap-lcd-day.is-on { background: var(--ink); color: var(--purple-light); }
.ap-lcd-row { display: flex; align-items: flex-end; gap: 9px; }
.ap-lcd-date, .ap-lcd-time, .ap-lcd-sec { display: flex; align-items: flex-end; }
.ap-lcd-d { height: var(--h); width: calc(var(--h) * .68); flex: none; margin-right: -1px; }
.ap-lcd-d--s { height: var(--hs); width: calc(var(--hs) * .68); }
.ap-lcd-c { height: var(--h); width: calc(var(--h) * .26); flex: none; fill: var(--ink); }
.ap-lcd-dash { height: var(--hs); width: calc(var(--hs) * .4); flex: none; }
.ap-lcd-s { fill: var(--ink); fill-opacity: .08; }
.ap-lcd-s.is-on { fill-opacity: 1; }
.ap-lcd-blink { animation: ap-blink 1s steps(1, end) infinite; }
@keyframes ap-blink { 50% { opacity: .1; } }
@media (prefers-reduced-motion: reduce) { .ap-lcd-blink { animation: none; } }
.ap-top-title { justify-self: center; font-family: var(--font-serif); font-size: 21px; font-weight: 500; letter-spacing: -.3px; color: var(--ink); text-align: center; }
/* «Volver al Laboratorio» y «Cerrar sesión» juntos, a la derecha: salir de la sección y salir de la sesión son las dos
   acciones globales. El segundo es un botón discreto (sin caja) separado por una línea fina, para que no compita con el primero. */
.ap-top-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.ap-out {
  position: relative; min-height: 44px; padding: 0 0 0 15px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--muted);
}
.ap-out::before { content: ""; position: absolute; left: 0; top: 50%; height: 16px; margin-top: -8px; border-left: 1px solid var(--ap-line-strong); }
@media (hover: hover) and (pointer: fine) { .ap-out:hover { color: var(--ink); } }
.ap-out:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 720px) {
  .ap-top { grid-template-columns: 1fr auto; padding-block: 10px; }
  .ap-top-title { display: none; }                  /* en móvil el título de cada sección ya está debajo */
}
.ap-back {
  font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
}
@media (hover: hover) and (pointer: fine) { .ap-back:hover { color: var(--purple-text); } }

.skip-link:focus { position: absolute; left: 4px; top: 4px; z-index: 9999; background: var(--ink); color: #fff; padding: 8px 16px; font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 4px; }

main { min-height: calc(100vh - var(--ap-top-h) - 90px); outline: none; }

.ap-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted); margin-bottom: 10px;
}
.ap-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }

/* ─── ACCESO ─── */
.ap-lock {
  display: grid; place-items: center;
  min-height: calc(100vh - var(--ap-top-h) - 90px);
  padding: 48px 16px;
}
.ap-lock-card {
  width: min(420px, 100%);
  background: var(--white); border: 1px solid var(--ap-line); border-radius: 16px;
  padding: clamp(28px, 6vw, 44px);
  box-shadow: 0 1px 2px rgba(29,38,56,.05), 0 24px 48px -24px var(--ap-shadow);
}
.ap-lock-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px;
  border-radius: 12px; background: var(--purple-light); color: var(--purple-text);
}
.ap-lock-icon svg { width: 22px; height: 22px; }
.ap-lock-title {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 6vw, 40px);
  letter-spacing: -1.2px; line-height: 1.05; margin-bottom: 12px;
}
.ap-lock-sub { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

.ap-pass { display: flex; align-items: stretch; border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md); background: #fff; transition: border-color .2s, box-shadow .2s; }
.ap-pass:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px var(--ap-ring); }
.ap-pass input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; color: var(--ink);
  border-radius: var(--radius-md);
}
.ap-pass input[aria-invalid="true"] { color: var(--red); }
.ap-pass-toggle {
  border: 0; background: none; cursor: pointer; padding: 0 14px; min-width: 44px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.ap-pass-toggle:focus-visible { outline-offset: -2px; }
.ap-msg { min-height: 22px; margin: 10px 0 18px; font-size: 13px; color: var(--muted); }
.ap-msg.is-error { color: var(--red); font-weight: 500; }
.ap-login-btn { width: 100%; justify-content: center; }
.ap-login-btn:disabled { opacity: .55; cursor: progress; }

/* ─── APP ─── */
.ap-shell { padding: clamp(28px, 4vw, 48px) var(--ap-inline) 80px; }
.ap-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.ap-app-title {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -1.2px; line-height: 1.05; outline: none;
}

.ap-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.ap-search { position: relative; flex: 1 1 280px; }
.ap-search-ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ap-search input {
  width: 100%; min-height: 44px; padding: 10px 14px 10px 42px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md);
}
.ap-search input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--ap-ring); }
.ap-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.ap-tool {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md);
  transition: background .2s, border-color .2s, color .2s;
}
@media (hover: hover) and (pointer: fine) { .ap-tool:hover { border-color: var(--ink); } }
.ap-tool--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .ap-tool--dark:hover { background: var(--text); } }
.ap-tool--danger { color: var(--red); }
@media (hover: hover) and (pointer: fine) { .ap-tool--danger:hover { border-color: var(--red); background: var(--red-light); } }
.ap-upload:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }

.ap-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; margin-bottom: 8px; }
.ap-crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.ap-crumbs li + li::before { content: '/'; color: var(--muted); margin-right: 2px; }
.ap-crumbs a { color: var(--muted); text-decoration: none; padding: 6px 2px; display: inline-block; }
@media (hover: hover) and (pointer: fine) { .ap-crumbs a:hover { color: var(--ink); text-decoration: underline; } }
.ap-crumbs [aria-current] { color: var(--ink); font-weight: 600; padding: 6px 2px; }

.ap-status { min-height: 20px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ap-status.is-error { color: var(--red); font-weight: 500; }

/* subidas */
.ap-uploads { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; }
.ap-uploads:empty { display: none; }
.ap-up {
  display: grid; grid-template-columns: minmax(0, 1fr) 140px 120px; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-md); font-size: 13px;
}
.ap-up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-up-track { height: 4px; background: var(--ap-line-soft); border-radius: 4px; overflow: hidden; }
.ap-up-bar { display: block; height: 100%; width: 0; background: var(--purple); transition: width .2s; }
.ap-up-state { text-align: right; color: var(--muted); }
.ap-up.is-done .ap-up-bar { background: var(--green); }
.ap-up.is-done .ap-up-state { color: var(--green); }
.ap-up.is-error .ap-up-state { color: var(--red); font-weight: 500; }
@media (max-width: 600px) { .ap-up { grid-template-columns: 1fr auto; } .ap-up-track { grid-column: 1 / -1; grid-row: 2; } }

/* tabla de contenido */
.ap-table-wrap { background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); overflow: hidden; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ap-table th {
  text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--ap-line); background: var(--ap-surface-2);
}
.ap-table td { padding: 4px 16px; border-bottom: 1px solid var(--ap-line-soft); vertical-align: middle; }
.ap-table tr:last-child td { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) { .ap-table tbody tr:hover { background: var(--ap-hover); } }
.ap-col-type, .ap-col-date, .ap-col-size { color: var(--muted); white-space: nowrap; }
.ap-col-act { text-align: right; white-space: nowrap; }
.ap-name { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 500; }
.ap-name span:last-child { overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .ap-name:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; } }
.ap-ico { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--off); color: var(--ink); }
.ap-ico svg { width: 18px; height: 18px; }
.ap-ico--folder { background: var(--purple-light); color: var(--purple-text); }
.ap-ico--note { background: var(--ap-support-soft); color: var(--ap-support); }
.ap-ico--image { background: var(--green-light); color: var(--green); }

.ap-link-btn {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500;
  color: var(--muted); padding: 10px 8px; min-height: 44px; border-radius: 6px;
}
@media (hover: hover) and (pointer: fine) { .ap-link-btn:hover { color: var(--ink); text-decoration: underline; } }
.ap-link-btn--danger { color: var(--red); }
@media (hover: hover) and (pointer: fine) { .ap-link-btn--danger:hover { color: var(--red); } }

@media (max-width: 760px) {
  .ap-col-type, .ap-col-size { display: none; }
}
@media (max-width: 560px) {
  .ap-col-date { display: none; }
  .ap-table td { padding: 4px 10px; }
  .ap-col-act .ap-link-btn { padding: 10px 4px; }
}

.ap-empty {
  text-align: center; padding: 64px 24px; background: var(--white);
  border: 1px dashed var(--ap-line-strong); border-radius: var(--radius-lg); color: var(--muted); font-size: 14px;
}
.ap-empty-title { font-family: var(--font-serif); font-size: 22px; color: var(--ink); margin-bottom: 6px; }

/* ─── DOCUMENTO (nota o archivo) ─── */
.ap-doc { background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.ap-doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.ap-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-backlink { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
@media (hover: hover) and (pointer: fine) { .ap-backlink:hover { color: var(--ink); } }
.ap-doc-title {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -.8px; line-height: 1.12; overflow-wrap: anywhere;
}
.ap-doc-title--sm { font-size: 22px; }
.ap-doc-meta { font-size: 13px; color: var(--muted); margin: 8px 0 28px; }

.ap-editor {
  width: 100%; min-height: 55vh; resize: vertical; padding: 16px;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 14px; line-height: 1.65; color: var(--ink);
  background: var(--ap-surface-2); border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md);
}
.ap-editor:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--ap-ring); }
.ap-help { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.ap-help code { font-size: 11.5px; background: var(--off); padding: 1px 5px; border-radius: 4px; }

/* contenido Markdown */
.ap-md { max-width: 72ch; font-size: 16px; line-height: 1.7; color: var(--text); }
.ap-md > * + * { margin-top: 14px; }
.ap-md h3, .ap-md h4, .ap-md h5, .ap-md h6 { font-family: var(--font-serif); font-weight: 500; color: var(--ink); line-height: 1.2; margin-top: 32px; }
.ap-md h3 { font-size: 26px; letter-spacing: -.5px; }
.ap-md h4 { font-size: 21px; }
.ap-md h5, .ap-md h6 { font-size: 17px; font-family: var(--font); font-weight: 700; }
.ap-md ul, .ap-md ol { padding-left: 1.4em; }
.ap-md li + li { margin-top: 4px; }
.ap-md a { color: var(--purple-text); text-underline-offset: 3px; }
.ap-md code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .88em; background: var(--off); padding: 2px 6px; border-radius: 4px; }
.ap-md pre, .ap-pre {
  background: var(--ink); color: var(--ap-line-soft); padding: 16px 18px; border-radius: var(--radius-md); overflow-x: auto;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre;
}
.ap-md pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.ap-md blockquote { border-left: 3px solid var(--purple); padding: 4px 0 4px 16px; color: var(--muted); font-style: italic; }
.ap-md hr { border: 0; border-top: 1px solid var(--ap-line); margin: 28px 0; }
.ap-md li.ap-check { list-style: none; margin-left: -1.4em; display: flex; gap: 10px; align-items: baseline; }
.ap-check-box { flex: none; width: 15px; height: 15px; border: 1.5px solid var(--muted); border-radius: 4px; transform: translateY(2px); }
.ap-check.is-done { color: var(--muted); text-decoration: line-through; }
.ap-check.is-done .ap-check-box { background: var(--purple); border-color: var(--purple); }

.ap-preview { border-top: 1px solid var(--ap-line-soft); padding-top: 24px; }
.ap-preview img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--ap-line); }
.ap-preview iframe { width: 100%; height: 78vh; border: 1px solid var(--ap-line); border-radius: var(--radius-md); background: var(--off); }
.ap-pre { max-height: 70vh; overflow: auto; }
.ap-preview-msg { font-size: 14px; color: var(--muted); }

/* ─── ZONA DE SOLTAR ─── */
.ap-drop {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; pointer-events: none;
  background: var(--ap-ring); border: 3px dashed var(--purple);
}
.ap-drop p { background: var(--ink); color: #fff; font-weight: 600; padding: 14px 22px; border-radius: var(--radius-md); }

/* ─── DIÁLOGO ─── */
.ap-dialog {
  width: min(440px, calc(100vw - 32px)); margin: auto; padding: 28px;
  border: 1px solid var(--ap-line); border-radius: 14px; background: var(--white); color: var(--ink);
  box-shadow: 0 24px 64px rgba(29,38,56,.25);
}
.ap-dialog::backdrop { background: rgba(29,38,56,.45); }
.ap-dialog-title { font-family: var(--font-serif); font-weight: 500; font-size: 24px; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 10px; overflow-wrap: anywhere; }
.ap-dialog-text { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.ap-dialog-field { margin: 16px 0 4px; }
.ap-dialog-field input {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md);
}
.ap-dialog-field input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--ap-ring); }
.ap-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger::before { background: var(--red-ink); }
@media (hover: hover) and (pointer: fine) { .btn-primary.btn-danger:hover { color: #fff; } }

/* ─── PIE ─── */
.ap-foot { display: grid; justify-items: center; gap: 18px; padding: 36px var(--ap-inline) 28px; background: var(--ink); color: #fff; }
.ap-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ap-social-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(185, 197, 214, .45); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.ap-social-btn svg { width: 17px; height: 17px; flex: none; }
@media (hover: hover) and (pointer: fine) { .ap-social-btn:hover { background: rgba(185, 197, 214, .14); border-color: var(--ap-line-strong); } }
.ap-social-btn:focus-visible { outline: 2px solid var(--ap-line-strong); outline-offset: 3px; }
.ap-foot-copy { font-size: 12.5px; color: var(--ap-line-strong); text-align: center; }
.ap-foot-copy a { color: inherit; text-underline-offset: 3px; }
.ap-foot-copy a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ───────────── PESTAÑAS ───────────── */
.ap-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ap-line); margin-bottom: 20px; }
.ap-tabs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-bottom: -1px;
  font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
@media (hover: hover) and (pointer: fine) { .ap-tabs a:hover { color: var(--ink); } }
.ap-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--purple); }

/* ───────────── FICHERO (area-privada-fichero.js) ───────────── */
.apf-bar { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.apf-search { flex: 1 1 260px; }
.apf-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.apf-select {
  min-height: 44px; padding: 0 34px 0 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235a5a5a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.apf-select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--ap-ring); }
.apf-count { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }

.apf-wrap { overflow-x: auto; }
.apf-table td { padding: 12px 16px; vertical-align: top; }
/* el botón mide 44px de alto: sin padding superior su texto queda a la altura del título de la fila */
.apf-table td.ap-col-act { padding-top: 0; }
.apf-table th { white-space: nowrap; }
.apf-sort {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; margin: -4px 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer;
}
.apf-sort:hover, .apf-table th[aria-sort] .apf-sort { color: var(--ink); }
.apf-arrow { min-width: 10px; }
.apf-c-res { min-width: 260px; }
.apf-title { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .apf-title:hover { text-decoration: underline; text-underline-offset: 3px; } }
.apf-domain { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.apf-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 60ch;
}
.apf-sub.is-note { color: var(--ink); }
.apf-meta-m { display: none; }
.apf-c-tema, .apf-c-fmt, .apf-c-date { color: var(--muted); }
.apf-c-tema { min-width: 96px; }
.apf-c-fmt, .apf-c-date { white-space: nowrap; }
.apf-c-tags { min-width: 130px; }
.apf-c-tags .apf-tag { white-space: normal; }
.apf-tag {
  display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 999px;
  background: var(--purple-light); color: var(--purple-text); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.apf-c-rate { color: var(--ap-support); white-space: nowrap; letter-spacing: 1px; }
.apf-none { color: var(--muted); }
.apf-empty { text-align: center; padding: 56px 24px !important; color: var(--muted); }

.apf-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
.apf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 8px; }
.apf-wide { grid-column: 1 / -1; }
.apf-field input, .apf-field textarea, .apf-field .apf-select { width: 100%; }
.apf-field input, .apf-field textarea {
  min-height: 44px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md);
}
.apf-field textarea { resize: vertical; line-height: 1.5; }
.apf-field input:focus, .apf-field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--ap-ring); }
.apf-hint { margin-top: 4px; font-size: 12px; color: var(--muted); }
.apf-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.apf-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.apf-check {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--ap-line-strong); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink);
}
.apf-check:has(input:checked) { border-color: var(--purple); background: var(--purple-light); color: var(--purple-text); }
.apf-check input { accent-color: var(--purple); width: 16px; height: 16px; }
.apf-check:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }

/* Tablet: fuera las columnas secundarias; tema y formato pasan bajo el título */
@media (max-width: 1180px) { .apf-c-tags { display: none; } }
@media (max-width: 960px) {
  .apf-c-date, .apf-c-rate { display: none; }
}
@media (max-width: 680px) {
  .apf-c-tema, .apf-c-fmt { display: none; }
  .apf-meta-m { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--purple-text); }
  .apf-c-res { min-width: 0; }
  .apf-table td { padding: 12px 10px; }
  .apf-table .ap-col-act { white-space: normal; text-align: right; width: 1%; }
  .apf-table .ap-col-act .ap-link-btn { display: block; width: 100%; text-align: right; padding: 8px 4px; }
  .apf-grid { grid-template-columns: 1fr; }
  .apf-filters { width: 100%; }
  .apf-filters .apf-select { flex: 1 1 140px; }
}

/* ───────────── PESTAÑAS: cinco secciones, desplazables en móvil ───────────── */
.ap-tabs { overflow-x: auto; scrollbar-width: none; }
.ap-tabs::-webkit-scrollbar { display: none; }
.ap-tabs a { white-space: nowrap; flex: 0 0 auto; }

/* Subnavegación dentro de una pestaña (Procesos | Análisis, Mes | Agenda) */
.ape-subnav { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 14px; background: var(--white); border: 1px solid var(--ap-line); border-radius: 999px; }
.ape-subnav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.ape-subnav a[aria-current] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .ape-subnav a:not([aria-current]):hover { color: var(--ink); } }

/* Textos comunes de los módulos */
.ape-h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 500; letter-spacing: -.3px; color: var(--ink); margin: 0 0 6px; }
.ape-meta { font-size: 13px; line-height: 1.55; color: var(--muted); }
.ape-meta + .ape-meta { margin-top: 4px; }

/* ───────────── ENTREVISTAS (area-privada-entrevistas.js) ───────────── */
.ape-badge {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle;
  background: var(--ap-line-soft); color: var(--text);
}
.ape-badge.is-live { background: var(--purple-light); color: var(--purple-text); }
.ape-badge.is-ok { background: var(--green-light); color: var(--green-ink); }
.ape-badge.is-ko { background: var(--red-light); color: var(--red-ink); }
.ape-c-emp { min-width: 220px; }
.ape-c-src, .ape-c-date, .ape-c-fase, .ape-c-next { color: var(--muted); white-space: nowrap; }

.ap-backlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ape-detail-head { display: flex; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; margin: 4px 0 24px; }
.ape-detail-head .ap-doc-title { margin-bottom: 6px; }
.ape-detail-head .ap-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ape-ext { margin-left: 10px; color: var(--purple-text); font-weight: 600; }
.ape-notes { display: grid; gap: 14px; padding: 18px 20px; margin-bottom: 28px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }

.ape-timeline { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.ape-card { position: relative; padding: 18px 20px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }
.ape-card-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.ape-card-title { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.ape-card-act { display: flex; gap: 4px; }
/* Correos de Gmail por revisar (lista de procesos) */
.ape-mail { margin: 4px 0 18px; padding: 16px 18px; background: var(--ap-support-soft); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }
.ape-mail .ape-h3 { font-size: 19px; }
.ape-mail-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ape-mail-item { display: flex; gap: 12px 20px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-md); }
.ape-mail-main { flex: 1 1 320px; min-width: 0; }
.ape-mail-subj { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ape-mail-ext { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.ape-mail-item .ape-card-act { align-items: center; flex-wrap: wrap; }
.ape-sync { margin: -4px 0 8px; }
.ape-cal { color: var(--purple-text); font-weight: 600; }
.ape-scores { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 12px 0 0; font-size: 13px; }
.ape-scores dt { color: var(--muted); }
.ape-scores dd { margin: 0; color: var(--ap-support); letter-spacing: 1px; }
.ape-block { margin-top: 14px; }
.ape-block .ap-label { margin-bottom: 4px; }
.ape-text { font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.ape-qs { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--ink); }

/* Análisis */
.ape-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 32px; }
.ape-kpi { padding: 16px 18px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }
.ape-kpi .ap-label { margin-bottom: 6px; letter-spacing: .12em; }
.ape-kpi-v { font-family: var(--font-serif); font-size: 34px; line-height: 1.1; letter-spacing: -.8px; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.ape-section { margin-bottom: 36px; }
.ape-section > .ape-meta { margin-bottom: 12px; max-width: 70ch; }
.ape-funnel { list-style: none; padding: 18px 20px; margin: 0; display: grid; gap: 10px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }
.ape-funnel li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 210px; gap: 14px; align-items: center; font-size: 13px; }
.ape-funnel-label { color: var(--ink); font-weight: 600; }
.ape-calib .ape-funnel-label { color: var(--ap-support); letter-spacing: 1px; }
.ape-track { height: 14px; background: var(--ap-line-soft); border-radius: 4px; overflow: hidden; }
.ape-bar { display: block; height: 100%; background: var(--purple); border-radius: 4px; }
.ape-funnel-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.ape-funnel-n strong { color: var(--ink); font-size: 15px; }
.ape-stats td, .ape-stats th { padding: 10px 16px; }
.ape-stats tbody th { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); text-align: left; background: none; }
.ape-stats .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 960px) { .ape-c-src, .ape-c-fase { display: none; } }
@media (max-width: 680px) {
  .ape-c-date, .ape-c-st, .ape-c-next { display: none; }
  .ape-table .apf-meta-m { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
  .ape-funnel li { grid-template-columns: 1fr auto; }
  .ape-funnel .ape-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ───────────── CALENDARIO (area-privada-calendario.js) ─────────────
   Barra lateral (nuevo, mini calendario, tareas, capas) + vista principal (día, semana, mes, agenda).
   Cada evento recibe su color en --c; el fondo es una mezcla suave de ese color con blanco. */
.apc-app { display: grid; grid-template-columns: 288px minmax(0, 1fr); grid-template-areas: "side main"; gap: 20px; align-items: start; }
.apc-main { grid-area: main; min-width: 0; display: grid; gap: 14px; }
.apc-side { grid-area: side; display: grid; gap: 14px; position: sticky; top: 16px; }

/* Barra superior */
.apc-toolbar { display: flex; gap: 12px 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.apc-nav, .apc-right { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
.apc-nav .ap-tool, .apc-right .ap-tool { text-decoration: none; }
.apc-arrows { display: flex; gap: 4px; }
.apc-arrow { min-width: 44px; justify-content: center; font-size: 20px; line-height: 1; }
.apc-month { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--font-serif); font-size: 26px; font-weight: 500; letter-spacing: -.5px; color: var(--ink); margin: 0 4px; }
.apc-weekno { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); padding: 3px 10px; border: 1px solid var(--ap-line); border-radius: 999px; font-variant-numeric: tabular-nums; }
/* posición de la semana en el año: --p = semana / semanas del año (la cifra ya está en el texto; la barra es decorativa) */
.apc-weekbar { display: block; width: 56px; height: 4px; background: var(--ap-line-strong); border-radius: 4px; overflow: hidden; }
.apc-weekbar i { display: block; width: var(--p, 0%); height: 100%; background: var(--ink); border-radius: 4px; }
.apc-search { flex: 0 1 220px; }
.apc-views { display: flex; align-items: center; gap: 10px; flex: none; }
.apc-modes { margin-bottom: 0; }
.apc-help-btn { min-width: 44px; justify-content: center; font-weight: 700; }

/* Resumen de carga */
.apc-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.apc-stat { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; font-size: 13px; color: var(--muted); background: var(--white); border: 1px solid var(--ap-line); border-radius: 999px; }
.apc-stat strong { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.apc-stat--label { font-weight: 600; color: var(--ink); background: transparent; border-color: transparent; padding-left: 0; }
.apc-stat.is-alert { color: var(--red-ink); background: var(--red-light); border-color: transparent; }
.apc-stat.is-alert strong { color: var(--red-ink); }
.apc-stat.is-search { background: var(--purple-light); border-color: transparent; }

/* Barra lateral */
.apc-new { width: 100%; justify-content: center; }
.apc-panel { padding: 16px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }
.apc-panel-head { display: flex; align-items: baseline; gap: 8px; }
.apc-panel-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.apc-empty-note { font-size: 13px; color: var(--muted); padding: 6px 0 2px; }

.apc-mini-head { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.apc-mini-title { flex: 1; font-family: var(--font-serif); font-size: 17px; font-weight: 500; color: var(--ink); }
.apc-mini-nav { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; font-size: 18px; color: var(--ink); text-decoration: none; }
.apc-mini-nav:hover { background: var(--ap-hover); }
.apc-mini-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.apc-mini-grid th { font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 2px 0 4px; text-align: center; }
.apc-mini-grid td { padding: 1px; text-align: center; }
.apc-mini-day {
  position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums;
}
.apc-mini-day:hover { background: var(--ap-hover); }
.apc-mini-day.is-out { color: var(--muted); }
.apc-mini-day.is-range { background: var(--purple-light); border-radius: 8px; }
.apc-mini-day.is-today { background: var(--ink); color: #fff; font-weight: 700; }
.apc-mini-day.has-items::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--purple-text); }
.apc-mini-day.is-today.has-items::after { background: #fff; }

.apc-quick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-bottom: 10px; }
.apc-quick input[type="text"] {
  min-height: 40px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md);
}
.apc-quick input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--ap-ring); }
.apc-quick .apf-select { min-height: 40px; font-size: 12.5px; padding-right: 30px; }
.apc-tasks { list-style: none; margin: 0; padding: 0; display: grid; }
.apc-task { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 7px 0; border-top: 1px solid var(--ap-line-soft); }
.apc-task input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--purple); cursor: pointer; }
.apc-task-body { display: grid; min-width: 0; }
.apc-task-title { all: unset; cursor: pointer; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.apc-task-title:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; border-radius: 3px; }
.apc-task-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.apc-task-meta { font-size: 12px; color: var(--muted); }
.apc-task.is-overdue .apc-task-meta { color: var(--red-ink); font-weight: 600; }
.apc-prio { display: inline-block; margin-right: 6px; padding: 0 6px; font-size: 10.5px; font-weight: 700; color: var(--red-ink); background: var(--red-light); border-radius: 4px; vertical-align: 1px; }
.apc-more-btn { width: 100%; text-align: left; }

.apc-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.apc-layer { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 13px; color: var(--ink); cursor: pointer; }
.apc-layer input { width: 16px; height: 16px; accent-color: var(--purple); cursor: pointer; }
.apc-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--c, var(--purple)); flex: none; }
.apc-swatch--cat { width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; }
.apc-swatch--cat[hidden] { display: none; }
.apc-swatch.is-interview { --c: #273A5F; box-shadow: 0 0 0 2px var(--white), 0 0 0 3px #273A5F; }
.apc-legend { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }

.apc-sync-panel { display: grid; gap: 10px; }
.apc-sync { font-size: 12.5px; color: var(--muted); }
.apc-sync.is-error { color: var(--red); font-weight: 600; }
.apc-sync-btn { justify-content: center; }

/* Vista día / semana */
.apc-tg { --gutter: 58px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); overflow: hidden; }
.apc-tg-head, .apc-tg-allday { display: grid; grid-template-columns: var(--gutter) repeat(var(--days), minmax(0, 1fr)); border-bottom: 1px solid var(--ap-line); }
.apc-dh { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; text-decoration: none; color: var(--ink); border-left: 1px solid var(--ap-line-soft); }
.apc-dh:hover { background: var(--ap-hover); }
.apc-dh-wd { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.apc-dh-n { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 4px; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; border-radius: 999px; }
.apc-dh.is-today .apc-dh-wd { color: var(--purple); }
.apc-dh.is-today .apc-dh-n { background: var(--ink); color: #fff; }
.apc-load { display: block; width: 70%; height: 3px; margin-top: 3px; background: var(--ap-line-soft); border-radius: 3px; overflow: hidden; }
.apc-load i { display: block; height: 100%; background: var(--ap-line-strong); border-radius: 3px; }
.apc-dh.is-today .apc-load i { background: var(--purple-text); }
.apc-tg-allday { min-height: 34px; }
.apc-gutter { border-right: 0; }
.apc-gutter-label { display: grid; place-items: center end; padding-right: 8px; font-size: 10.5px; color: var(--muted); text-align: right; line-height: 1.2; }
.apc-ad-cell { display: grid; align-content: start; gap: 3px; padding: 4px; border-left: 1px solid var(--ap-line-soft); min-width: 0; }
.apc-tg-body { height: clamp(440px, calc(100vh - 380px), 1100px); overflow-y: auto; overscroll-behavior: contain; }
.apc-tg-body:focus-visible { outline: 2px solid var(--purple-text); outline-offset: -2px; }
.apc-tg-inner { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); height: calc(24 * 48px); }
.apc-hours { display: grid; grid-template-rows: repeat(24, 48px); }
.apc-hour { position: relative; top: -7px; padding-right: 8px; text-align: right; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.apc-cols {
  display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr));
  background-image: linear-gradient(to bottom, var(--ap-line-soft) 1px, transparent 1px);
  background-size: 100% 48px;
}
.apc-col { position: relative; border-left: 1px solid var(--ap-line-soft); cursor: cell; touch-action: pan-y; }
.apc-col.is-today { background-color: rgba(231, 236, 244, .45); }
.apc-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 4; pointer-events: none; }
.apc-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.apc-ev {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 1px; overflow: hidden;
  padding: 3px 6px 3px 8px; text-align: left; font: inherit; font-size: 12px; line-height: 1.3; color: var(--ink);
  background: color-mix(in srgb, var(--c) 13%, #fff); border: 0; border-left: 3px solid var(--c); border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9); cursor: pointer; touch-action: none;
}
.apc-ev:hover { background: color-mix(in srgb, var(--c) 20%, #fff); z-index: 3; }
.apc-ev:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 5; }
.apc-ev-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.apc-ev-time, .apc-ev-loc { font-size: 11px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apc-ev-time { font-family: var(--font-mono); font-size: 10.5px; }
.apc-ev.is-short { flex-direction: row; align-items: center; gap: 6px; padding-top: 1px; padding-bottom: 1px; }
.apc-ev.is-short .apc-ev-title { -webkit-line-clamp: 1; flex: 1; min-width: 0; }
.apc-ev--entrevista { background: var(--c); color: #fff; border-left-color: #1D2638; }
.apc-ev--entrevista:hover { background: #1D2638; }
.apc-ev--entrevista .apc-ev-time, .apc-ev--entrevista .apc-ev-loc { color: #E7ECF4; }
.apc-ev--foco { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, #fff) 0 7px, color-mix(in srgb, var(--c) 17%, #fff) 7px 14px); }
.apc-ev--tarea { background: #fff; border: 1px dashed var(--c); border-left: 3px solid var(--c); }
.apc-ev.is-done .apc-ev-title { text-decoration: line-through; color: var(--muted); }
.apc-ev.is-editable { cursor: grab; }
.apc-ev.is-dragging { cursor: grabbing; opacity: .92; z-index: 6; box-shadow: 0 10px 24px var(--ap-shadow); }
.apc-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.apc-resize::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--c); opacity: 0; }
.apc-ev:hover .apc-resize::after { opacity: .7; }
.apc-ghost {
  position: absolute; left: 2px; right: 2px; z-index: 6; padding: 4px 6px; pointer-events: none;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink);
  background: color-mix(in srgb, var(--purple) 16%, #fff); border: 1px dashed var(--purple); border-radius: 6px;
}

/* Chips (todo el día y vista mes) */
.apc-chip {
  display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; min-height: 24px; padding: 2px 6px; text-align: left;   /* 24 px: tamaño mínimo de objetivo (WCAG 2.2) */
  font: inherit; font-size: 11.5px; line-height: 1.35; color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--c) 13%, #fff); border: 0; border-left: 3px solid var(--c); border-radius: 4px;
}
.apc-chip:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.apc-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.apc-chip--entrevista { background: var(--c); color: #fff; font-weight: 600; }
.apc-chip--entrevista:hover { background: #1D2638; }
.apc-chip--entrevista .apc-chip-time { color: #E7ECF4; }
.apc-chip--tarea { background: #fff; border: 1px dashed var(--c); border-left: 3px solid var(--c); }
.apc-chip.is-done .apc-chip-title { text-decoration: line-through; color: var(--muted); }
.apc-chip-check { display: inline-grid; place-items: center; width: 12px; height: 12px; flex: none; font-size: 9px; border: 1.5px solid var(--c); border-radius: 50%; }
.apc-chip-time { flex: none; font-family: var(--font-mono); font-size: 10.5px; color: var(--text); }
.apc-chip-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Vista mes */
.apc-grid-wrap { background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); overflow: hidden; }
.apc-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.apc-grid th { padding: 10px 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--ap-line); }
.apc-grid td { height: 128px; padding: 4px 5px 6px; vertical-align: top; border-right: 1px solid var(--ap-line-soft); border-bottom: 1px solid var(--ap-line-soft); }
.apc-grid td:last-child { border-right: 0; }
.apc-grid tr:last-child td { border-bottom: 0; }
.apc-grid td.is-out { background: var(--ap-surface-2); }
.apc-grid td.is-out .apc-num { color: var(--muted); }
.apc-cell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.apc-num {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums;
}
.apc-num:hover { background: var(--ap-hover); }
.is-today .apc-num { background: var(--ink); color: #fff; }
.apc-dot { display: none; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; font-weight: 700; border-radius: 999px; background: var(--ap-line-soft); color: var(--ink); }
.apc-dot.is-interview { background: var(--purple); color: #fff; }
.apc-evs { display: grid; gap: 3px; }
.apc-more { font-size: 11.5px; font-weight: 600; color: var(--purple-text); padding-left: 6px; }
.apc-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Vista agenda */
.apc-agenda { display: grid; gap: 12px; }
.apc-agenda-day { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 20px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }
.apc-agenda-date { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.apc-agenda-n { font-family: var(--font-serif); font-size: 30px; font-weight: 500; color: var(--ink); text-decoration: none; }
.apc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.apc-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding-left: 12px; border-left: 3px solid var(--c, var(--ap-line)); }
.apc-item-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.apc-item-title { all: unset; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.apc-item-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.apc-item-title:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; border-radius: 3px; }
.apc-item.is-done .apc-item-title { text-decoration: line-through; color: var(--muted); }

/* Ficha de un elemento y ayuda */
.apc-detail { width: min(480px, calc(100vw - 24px)); }
.apc-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.apc-detail-kind { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.apc-close { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px 0 0; font-size: 24px; line-height: 1; color: var(--muted); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.apc-close:hover { background: var(--ap-hover); color: var(--ink); }
.apc-detail-when { font-size: 14px; color: var(--ink); margin: 4px 0 10px; }
.apc-detail-row { display: grid; gap: 2px; font-size: 14px; color: var(--ink); margin-top: 8px; overflow-wrap: anywhere; }
.apc-detail-row .ap-label { margin-bottom: 0; }
.apc-detail-desc { margin-top: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.55; color: var(--text); background: var(--ap-surface-2); border-radius: var(--radius-md); white-space: pre-line; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; }
.apc-detail-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.apc-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.apc-detail-actions a.ap-tool { text-decoration: none; }
.apc-keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 14px 0 4px; align-items: center; font-size: 14px; }
.apc-keys dd { margin: 0; color: var(--text); }
.apc-keys kbd { display: inline-block; padding: 2px 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: var(--ap-surface-2); border: 1px solid var(--ap-line); border-bottom-width: 2px; border-radius: 6px; white-space: nowrap; }
.apc-f-todo { align-self: end; }

/* Responsive */
@media (min-width: 1700px) { .apc-app { grid-template-columns: 312px minmax(0, 1fr); } .apc-grid td { height: 140px; } }
@media (max-width: 1100px) {
  .apc-app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; }
  .apc-side { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
  .apc-new { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .apc-month { font-size: 21px; }
  .apc-search { flex: 1 1 100%; order: 3; }
  .apc-right { width: 100%; }
  .apc-tg { --gutter: 44px; }
  .apc-dh-n { font-size: 16px; min-width: 28px; height: 28px; }
  .apc-dh-wd { font-size: 10px; letter-spacing: .04em; }
  .apc-gutter-label { font-size: 9.5px; }
  .apc-ev { font-size: 11px; padding: 2px 3px 2px 5px; }
  .apc-ev-time, .apc-ev-loc { display: none; }
  .apc-tg:not(.is-day) .apc-ad-cell .apc-chip-title { font-size: 10px; }
  .apc-grid td { height: 60px; padding: 3px 2px; }
  .apc-evs { display: none; }
  .apc-cell-head { flex-direction: column; gap: 3px; }
  .apc-dot { display: inline-grid; }
  .apc-agenda-day { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .apc-item { grid-template-columns: 1fr; gap: 2px; }
}

/* ───────────── HOY (area-privada-hoy.js) ───────────── */
.aph-date { font-size: 14px; color: var(--muted); margin: -4px 0 18px; }
.aph-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; align-items: start; }
.aph-card { padding: 20px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }
.aph-card-head { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.aph-card-head .ape-h3 { margin: 0; font-size: 20px; }
.aph-more { font-size: 13px; font-weight: 600; color: var(--purple-text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .aph-more:hover { text-decoration: underline; text-underline-offset: 3px; } }
.aph-week { display: grid; gap: 14px; }
.aph-day-t { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.aph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aph-list li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.aph-list li.is-interview { font-weight: 600; }
.aph-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ap-line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.aph-list li.is-interview a { color: var(--purple-text); text-decoration-color: currentColor; }
.aph-time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.aph-empty { font-size: 14px; color: var(--muted); }
.aph-note { margin-top: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--ap-support-ink); background: var(--ap-support-soft); border-radius: var(--radius-md); }
@media (max-width: 1100px) { .aph-grid { grid-template-columns: 1fr 1fr; } .aph-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .aph-grid { grid-template-columns: 1fr; } }
.ape-section .apf-wrap:focus-visible, .ape-table-region:focus-visible, .apf-wrap[tabindex]:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }

/* Fichero: acciones de la barra (Temas y formatos · + Añadir enlace) */
.apf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.apf-actions a.ap-tool { text-decoration: none; }

/* ───────────── CONFIGURACIÓN (area-privada-configuracion.js) ───────────── */
.apx-intro { max-width: 70ch; margin-bottom: 24px; }
.apx-section + .apx-section { margin-top: 36px; }
.apx-section-title { margin-bottom: 12px; }
.apx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.apx-card { padding: 20px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); }
.apx-card-head { display: flex; align-items: baseline; gap: 10px; }
.apx-card-head .ape-h3 { margin: 0; font-size: 20px; }
.apx-count { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.apx-card > .ape-meta { margin: 4px 0 14px; }
.apx-list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--ap-line-soft); }
.apx-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--ap-line-soft); }
.apx-name { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.apx-uses { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.apx-act { display: flex; gap: 2px; }
.apx-empty { font-size: 14px; color: var(--muted); padding: 12px 0 16px; }
@media (max-width: 480px) {
  .apx-item { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 0; }
  .apx-uses { grid-row: 2; }
  .apx-act { grid-row: 1 / span 2; grid-column: 2; }
}


/* ───────────── PORTFOLIO (area-privada-portfolio.js) ───────────── */
.app-sections { display: grid; gap: 36px; margin-top: 8px; }
.app-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.app-section-head .ape-h3 { margin: 0; font-size: 22px; }
.app-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.app-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 12px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); min-width: 0; }
.app-card.is-featured { border-color: var(--ap-line-strong); }
.app-card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 22px; }
.app-card-top:empty { display: none; }
.app-star { font-size: 12px; font-weight: 600; color: var(--ap-support); }
.app-title { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.app-title-link { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .app-title-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.app-card .apf-domain { margin-top: -6px; }
.app-desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.app-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.app-note { font-size: 13px; line-height: 1.5; color: var(--ap-support-ink); background: var(--ap-support-soft); border-radius: var(--radius-md); padding: 8px 10px; overflow-wrap: anywhere; }
.app-card-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--ap-line-soft); display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.app-links { flex: 1 1 auto; min-width: 0; display: flex; gap: 0 14px; flex-wrap: wrap; }   /* si no caben, pasan de línea los enlaces, no las acciones */
.app-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ap-line-strong); text-underline-offset: 3px; }
.app-link--main { color: var(--purple-text); text-decoration-color: currentColor; }
.app-act { flex: 0 0 auto; display: flex; gap: 2px; }
.aph-tag { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ───────────── PREPARACIÓN DE ENTREVISTAS (area-privada-preparacion.js) ───────────── */
.ape-badge.is-warn { background: var(--ap-support-soft); color: var(--ap-support-ink); }
.apb-intro { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.apb-intro .ape-meta { max-width: 70ch; }
.apb-list { margin-bottom: 28px; }
.apb-list > .ape-h3 { margin-bottom: 10px; }
.apb-table .apb-c-when, .apb-table .apb-c-kind, .apb-table .apb-c-upd { color: var(--muted); white-space: nowrap; }
.apb-c-st { min-width: 170px; }
.apb-note, .apb-signals { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 46ch; }
.apb-c-act { white-space: nowrap; }
.apb-past { margin-top: 8px; }
.apb-past > summary, .apb-matrix > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); list-style: none; }
.apb-past > summary::-webkit-details-marker, .apb-matrix > summary::-webkit-details-marker { display: none; }
.apb-past > summary::before, .apb-matrix > summary::before { content: '▸'; color: var(--muted); }
.apb-past[open] > summary::before, .apb-matrix[open] > summary::before { content: '▾'; }
.apb-bar { display: flex; gap: 10px 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.apb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* El briefing: una hoja, lectura rápida */
.apb { max-width: 900px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 36px); color: var(--text); font-size: 15px; line-height: 1.55; }
.apb-head { border-bottom: 1px solid var(--ap-line); padding-bottom: 14px; margin-bottom: 14px; }
.apb-title { margin: 2px 0 10px; }
.apb-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.apb-meta dt { color: var(--muted); font-weight: 600; }
.apb-meta dd a, .apb-sources a { color: var(--purple-text); }
.apb-alert { background: var(--ap-support-soft); color: var(--ap-support-ink); border-radius: var(--radius-md); padding: 8px 12px; font-size: 14px; margin-bottom: 10px; }
.apb-warn { border-left: 3px solid var(--ap-support); padding: 4px 0 4px 12px; margin-bottom: 14px; font-size: 14px; }
.apb-warn-t { font-weight: 600; color: var(--ap-support-ink); margin-bottom: 2px; }
.apb-block { padding: 12px 0; border-bottom: 1px solid var(--ap-line-soft); }
.apb-block > p + p, .apb-block > p + ul, .apb-block > ul + p { margin-top: 6px; }
.apb-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 8px; letter-spacing: -.2px; }
.apb-h--sm { font-size: 16px; }
.apb-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font); font-size: 12px; font-weight: 700; }
.apb-ul { padding-left: 20px; }
.apb-ul li + li { margin-top: 4px; }
.apb-people li { list-style: none; margin-left: -20px; }
.apb-sub { display: block; font-size: 14px; color: var(--muted); }
.apb-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.apb-pair { font-size: 14.5px; }
.apb-pair strong { color: var(--ink); }
.apb-project { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--ap-line); }
.apb-intro-box { background: var(--ap-surface-2); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 10px; }
.apb-intro-box .apb-k { margin-top: 0; }
.apb-qs { padding-left: 20px; }
.apb-qs li + li { margin-top: 8px; }
.apb-q { font-weight: 600; color: var(--ink); }
.apb-guide { font-size: 14.5px; }
.apb-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--ap-line-strong); border-radius: 999px; padding: 0 7px; vertical-align: 1px; }
.apb-refs { white-space: nowrap; }
.apb-ref { display: inline-block; min-width: 18px; margin-left: 3px; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; color: var(--purple-text); background: var(--purple-light); border-radius: 4px; text-decoration: none; vertical-align: 2px; }
.apb-ref:focus-visible, .apb-past > summary:focus-visible, .apb-matrix > summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.apb-reminder { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.apb-reminder dt { font-weight: 600; color: var(--ink); }
.apb-sources { padding-top: 12px; font-size: 13px; }
.apb-sources ol { padding-left: 22px; }
.apb-src-meta { color: var(--muted); }
.apb-matrix { margin-top: 10px; }
.apb-versions, .apb-foot { margin-top: 10px; }
@media (max-width: 560px) {
  .apb { padding: 16px; font-size: 14.5px; }
  .apb-meta, .apb-reminder { grid-template-columns: 1fr; }
  .apb-meta dt, .apb-reminder dt { margin-top: 6px; }
}

/* Impresión / PDF: solo el briefing, dos A4 como máximo */
@media print {
  @page { size: A4; margin: 12mm 13mm; }
  body { background: #fff; }
  .ap-top, .ap-foot, .ap-head, .ap-tabs, .ap-toolbar, .ap-crumbs, .ap-status, .ap-uploads, .skip-link,
  .apb-bar, .apb-matrix, .apb-versions, .apb-foot { display: none !important; }
  .ap-shell, .ap-view, main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .apb { border: 0; padding: 0; max-width: none; font-size: 9.4pt; line-height: 1.35; color: #000; }
  .apb-head { padding-bottom: 6pt; margin-bottom: 6pt; }
  .apb-title { font-size: 16pt; margin: 0 0 4pt; }
  .apb-meta { font-size: 8.8pt; gap: 1pt 10pt; }
  .apb-block { padding: 5pt 0; break-inside: auto; }
  .apb-h { font-size: 12.5pt; margin-bottom: 3pt; break-after: avoid; }
  .apb-n { width: 15pt; height: 15pt; font-size: 8pt; }
  .apb-qs li, .apb-project, .apb-people li { break-inside: avoid; }
  .apb-qs li + li { margin-top: 3pt; }
  .apb-pair, .apb-guide, .apb-sub { font-size: 9pt; }
  .apb-intro-box { padding: 4pt 7pt; }
  .apb-sources { font-size: 7.8pt; padding-top: 5pt; }
  .apb-sources a { color: #000; }
  .apb-ref { background: none; color: #000; font-size: 7pt; vertical-align: 3pt; min-width: 0; line-height: 1; }
  .apb-alert, .apb-warn { font-size: 8.6pt; padding: 3pt 6pt; margin-bottom: 4pt; }
  .ape-badge { min-height: 0; padding: 0 5pt; font-size: 7.6pt; border: 1px solid #999; background: none !important; color: #000 !important; }
}


/* ═══════════════════════════════════════════════
   CENTRO DE TRABAJO (area-privada-kanban.js) · prefijo apk-
   ═══════════════════════════════════════════════ */
.apk { margin-bottom: 40px; }
.apk-head { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.apk-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.5px; line-height: 1.15; color: var(--ink); }
.apk-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.apk-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.apk-seg { display: inline-flex; border: 1px solid var(--ap-line-strong); border-radius: 999px; background: var(--white); padding: 2px; }
.apk-seg-btn { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: 8px 14px; min-height: 36px; cursor: pointer; }
.apk-seg-btn[aria-pressed="true"] { background: var(--purple); color: #fff; }
.apk-btn { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; }
.apk-btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.apk-link { font: inherit; font-size: 13px; font-weight: 600; color: var(--purple-text); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.apk button:focus-visible, .apk input:focus-visible, .apk select:focus-visible, .apk-dialog button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .apk-btn:hover, .apk-seg-btn:hover:not([aria-pressed="true"]) { background: var(--ap-hover); }
  .apk-btn--primary:hover { background: var(--purple); }
}

.apk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.apk-input, .apk-select { font: inherit; font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: var(--radius-md); padding: 9px 12px; min-height: 40px; }
.apk-input { min-width: 220px; flex: 1 1 220px; max-width: 360px; }
.apk-chipbtn { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.apk-chipbtn[aria-pressed="true"] { background: var(--red-light); border-color: var(--red); color: var(--red-ink); }

.apk-board { display: grid; grid-template-columns: repeat(5, minmax(248px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity; }
.apk-col { background: var(--ap-surface-2); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); padding: 12px; min-width: 0; scroll-snap-align: start; transition: border-color .15s, background-color .15s; }
.apk-col.is-target { border-color: var(--purple-text); background: var(--purple-light); }
.apk-col-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.apk-col-title, .apk-block-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.apk-col-head .apk-link { margin-left: auto; }
.apk-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.apk-count.is-at { color: var(--ap-support-ink); font-weight: 600; }
.apk-count.is-over { color: var(--red-ink); font-weight: 600; }
.apk-wipwarn { font-size: 12.5px; line-height: 1.45; color: var(--ap-support-ink); background: var(--ap-support-soft); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.apk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 8px; }
.apk-empty { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 6px 2px 10px; }
.apk-hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }

.apk-card { position: relative; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-md); padding: 10px 12px 10px; display: grid; gap: 6px; cursor: grab; touch-action: pan-y pan-x; box-shadow: 0 1px 2px rgba(29, 38, 56, .05); }
.apk-card.is-new { animation: apk-in .32s cubic-bezier(.16, 1, .3, 1); }
.apk-card.is-blocked { border-color: var(--red); background: linear-gradient(var(--red), var(--red)) top / 100% 3px no-repeat, var(--white); }
.apk-chip.apk-stale { color: var(--ap-support-ink); border-color: var(--ap-support); }
.apk-count-note { font-size: 12px; color: var(--red-ink); }
.apk-learn { font-size: 13px; line-height: 1.45; color: var(--ink); }
.apk-capture { margin-bottom: 14px; }
.apk-capture .apk-input { width: 100%; max-width: 520px; }
.apk-card.is-done .apk-card-open { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ap-line-strong); }
.apk-card.is-src { opacity: .35; }
@keyframes apk-in { from { opacity: .01; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.apk-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.apk-grip { display: inline-flex; color: var(--muted); padding: 6px 4px; margin: -6px 0 -6px -6px; touch-action: none; cursor: grab; user-select: none; }
.apk-ico { display: inline-flex; vertical-align: middle; }
.apk-proj { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.apk-proj-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apk-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.apk-adv { display: inline-flex; align-items: center; gap: 5px; }
.apk-btn .apk-ico, .apk-add .apk-ico { margin-right: 6px; }
.apk-add { display: flex; align-items: center; justify-content: center; }
.apk-proj { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apk-proj--none { color: var(--muted); font-weight: 500; }
.apk-card-open { font: inherit; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); background: none; border: 0; padding: 2px 0; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.apk-next, .apk-why-block, .apk-why { font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.apk-why-block { color: var(--red-ink); }
.apk-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.apk-chip { font-size: 12px; line-height: 1; color: var(--muted); border: 1px solid var(--ap-line); border-radius: 999px; padding: 4px 8px; }
.apk-prio[data-prio="4"] { color: var(--red-ink); border-color: var(--red); font-weight: 600; }
.apk-prio[data-prio="3"] { color: var(--ap-support-ink); border-color: var(--ap-support); font-weight: 600; }
.apk-due[data-tone="late"] { color: var(--red-ink); border-color: var(--red); }
.apk-due[data-tone="soon"] { color: var(--ap-support-ink); border-color: var(--ap-support); }
.apk-chip.apk-block { color: var(--red-ink); background: var(--red-light); border-color: var(--red-light); font-weight: 600; }
.apk-card-act { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; }
.apk-card-act--static { position: static; justify-content: flex-end; }
.apk-card-top .apk-proj { max-width: calc(100% - 150px); }
.apk-mini { font: inherit; font-size: 12px; font-weight: 600; color: var(--purple-text); background: none; border: 0; border-radius: 6px; padding: 8px 6px; min-height: 32px; margin: -8px 0; cursor: pointer; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .apk-mini:hover { background: var(--purple-light); }
  .apk-card:hover { border-color: var(--ap-line-strong); }
  .apk-card-act:not(.apk-card-act--static) { opacity: 0; transition: opacity .12s; }
  .apk-card:hover .apk-card-act, .apk-card:focus-within .apk-card-act { opacity: 1; }
}
.apk-add { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 1px dashed var(--muted); border-radius: var(--radius-md); width: 100%; padding: 10px; min-height: 40px; margin-top: 8px; cursor: pointer; }
.apk-add-form { margin-top: 8px; }
.apk-add-form .apk-input { width: 100%; max-width: none; }
.apk-drop { height: 56px; border: 2px dashed var(--purple-text); border-radius: var(--radius-md); background: rgba(74, 98, 142, .08); }
.apk-ghost { position: fixed; z-index: 10000; margin: 0; pointer-events: none; box-shadow: 0 12px 28px var(--ap-shadow); cursor: grabbing; animation: none; }
.apk.is-dragging, .apk.is-dragging * { user-select: none; cursor: grabbing !important; }
.apk-coltabs { display: none; }

.apk-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; z-index: 9000; display: flex; gap: 14px; align-items: center; max-width: min(560px, calc(100vw - 32px)); background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.4; transition: opacity .2s, transform .2s; }
.apk-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.apk-toast.is-error { background: var(--red-ink); }
.apk-toast .apk-link { color: #fff; }

/* Barra de flujo y detalles de tarjeta */
.apk-flow { display: flex; gap: 3px; height: 8px; width: min(420px, 100%); margin-top: 12px; }
.apk-flow-seg { flex-basis: 0; min-width: 8px; border-radius: 4px; background: var(--ap-line-strong); transition: flex-grow .4s cubic-bezier(.16, 1, .3, 1); }
.apk-steps { display: inline-flex; align-items: center; gap: 6px; }
.apk-bar { width: 28px; height: 4px; border-radius: 2px; background: var(--ap-line); overflow: hidden; }
.apk-bar-fill { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.apk-cap { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.apk-cap-dots { display: inline-flex; gap: 4px; }
.apk-cap-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); }
.apk-cap-dot.is-on { background: var(--purple); border-color: var(--purple); }
.apk-cap-dot.is-over { background: var(--red); border-color: var(--red); }

/* Vista Hoy */
.apk-main { background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 16px; }
.apk-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.apk-main-text { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.3px; line-height: 1.25; color: var(--ink); margin-bottom: 6px; }
.apk-main-text.is-empty { color: var(--muted); font-style: italic; }
.apk-hoy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.apk-hoy-grid > .apk-block { background: var(--ap-surface-2); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); padding: 14px; }
.apk-hoy-grid > .apk-block--wide { grid-column: 1 / -1; background: var(--white); }
.apk-block-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.apk-sug { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.apk-sug-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ap-line-soft); }
.apk-sug-item:first-child { border-top: 0; }

/* Diálogos */
.apk-dialog { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.apk-dates { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.apk-promote { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--ap-surface-2); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 14px; }
.apk-promote .apk-hint { margin: 0 8px 0 0; }
.apk-check { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.apk-subs, .apk-hist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.apk-hist { font-size: 13px; color: var(--muted); }
.apk-sub { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.apk-sub label { display: flex; gap: 8px; align-items: center; }
.apk-dlg-actions { align-items: center; }

/* Tarjeta (crear y editar, area-privada-kanban.js → cardDialog): cabecera y pie fijos, solo el cuerpo se desplaza.
   El <dialog> no lleva relleno: así un clic con destino el propio <dialog> es siempre el fondo (cierra). */
.apk-card-dlg { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; }
.apk-card-dlg[open] { display: flex; flex-direction: column; }
.apk-dlg-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.apk-dlg-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 28px; border-bottom: 1px solid var(--ap-line-soft); }
.apk-dlg-title { margin: 0; font-size: 22px; }
.apk-dlg-title:focus { outline: none; }
.apk-dlg-title:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 4px; }
.apk-dlg-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .apk-dlg-x:hover { background: var(--ap-hover); } }
.apk-dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 28px 22px; }
.apk-dlg-main { margin-top: 0; }
.apk-dlg-foot { flex: none; padding: 12px 28px 16px; border-top: 1px solid var(--ap-line-soft); background: var(--white); }
.apk-dlg-msg:empty { display: none; }
.apk-dlg-msg { margin: 0 0 10px; }
.apk-dlg-btns { display: flex; justify-content: flex-end; gap: 10px; }
.apk-card-dlg .apf-hint { color: var(--muted); line-height: 1.4; }      /* gris neutro, 5,7:1 sobre blanco */
.apk-err { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red-ink); }
.apk-card-dlg [aria-invalid="true"] { border-color: var(--red) !important; }

/* Bloqueo: interruptor (checkbox con role=switch) con su efecto explicado debajo */
.apk-block { padding: 12px 14px; border: 1px solid var(--ap-line); border-radius: var(--radius-md); background: var(--ap-surface-2); }
.apk-block:has(.apk-switch-in:checked) { border-color: var(--st-bloq); background: var(--red-light); }
.apk-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.apk-switch-in { position: absolute; left: 0; top: 50%; width: 44px; height: 28px; margin: -14px 0 0; opacity: 0; cursor: pointer; }
.apk-switch-ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--ap-line-strong); transition: background .15s; }
.apk-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px var(--ap-shadow); transition: transform .15s; }
.apk-switch-in:checked + .apk-switch-ui { background: var(--st-bloq); }
.apk-switch-in:checked + .apk-switch-ui::after { transform: translateX(18px); }
.apk-switch-in:focus-visible + .apk-switch-ui { outline: 2px solid var(--purple); outline-offset: 2px; }
.apk-switch-t { display: inline-flex; align-items: center; gap: 6px; }
.apk-switch-in:checked ~ .apk-switch-t { color: var(--red-ink); }
.apk-block .apf-hint { margin-top: 0; }
.apk-block-why { margin-top: 10px; }
.apk-block-why input { width: 100%; }

/* Secciones plegables: <summary> con título y resumen de lo que contienen */
.apk-sec { border-top: 1px solid var(--ap-line); margin-top: 16px; }
.apk-sec + .apk-sec { margin-top: 0; }
.apk-sec-h { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 34px 4px 0; position: relative; cursor: pointer; list-style: none; }
.apk-sec-h::-webkit-details-marker { display: none; }
.apk-sec-h::after { content: ''; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
.apk-sec[open] > .apk-sec-h::after { transform: rotate(-135deg); margin-top: -2px; }
.apk-sec-h:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.apk-sec-t { flex: none; font-size: 15px; font-weight: 700; color: var(--ink); }
.apk-sec-sum { min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apk-sec-b { margin: 0 0 18px; }
.apk-dlg-more { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--ap-line); }
.apk-card-dlg .apk-promote { margin-bottom: 0; }

/* Imágenes de las notas */
.apk-imgs { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.apk-img { position: relative; display: grid; grid-template-rows: auto auto; border: 1px solid var(--ap-line); border-radius: var(--radius-md); overflow: hidden; background: var(--ap-surface-2); }
.apk-img.is-new { border-style: dashed; border-color: var(--ap-line-strong); }
.apk-img-a, .apk-img-ph { display: block; aspect-ratio: 1; }
.apk-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.apk-img-a:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.apk-img-ph { display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.apk-img-tag { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.apk-img-x { min-height: 40px; border: 0; border-top: 1px solid var(--ap-line); background: var(--white); font: inherit; font-size: 13px; font-weight: 600; color: var(--red-ink); cursor: pointer; }
.apk-img-x:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.apk-img-row { display: flex; gap: 10px; align-items: center; }
.apk-img-msg:empty { display: none; }
.apk-img-msg.is-error { color: var(--red-ink); font-weight: 600; }
@media (pointer: coarse) { .apk-img-x { min-height: 44px; } .apk-dlg-btns .btn { min-height: 48px; } }

/* Móvil (o pantalla muy baja): a pantalla completa. La altura la ajusta el JS al viewport visual, así el pie queda sobre el teclado */
@media (max-width: 599.98px), (max-height: 520px) {
  .apk-card-dlg { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .apk-dlg-head { padding: calc(6px + env(safe-area-inset-top, 0px)) 6px 6px 16px; }
  .apk-dlg-title { font-size: 20px; }
  .apk-dlg-body { padding: 14px 16px 24px; }
  .apk-dlg-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .apk-dlg-btns .btn { flex: 1 1 0; justify-content: center; }
  .apk-dlg-btns .btn-primary { flex-grow: 2; }
  .apk-card-dlg .apf-field input, .apk-card-dlg .apf-field textarea, .apk-card-dlg .apf-select { font-size: 16px; }   /* iOS no hace zoom al enfocar */
}
@media (prefers-reduced-motion: reduce) { .apk-switch-ui, .apk-switch-ui::after, .apk-sec-h::after { transition: none; } }
.apk-grow { flex: 1 1 auto; }
.apk-danger { color: var(--red-ink) !important; border-color: var(--red) !important; }
.apk-proj-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ap-line-soft); }
.apk-proj-act { display: flex; gap: 10px; flex-shrink: 0; }
.apk-setup { padding: 18px 20px; background: var(--white); border: 1px solid var(--ap-line); border-radius: var(--radius-lg); font-size: 14px; color: var(--muted); }

/* Hoy: la agenda que ya existía pasa a ser secundaria */
.aph-section-t { font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -.3px; color: var(--ink); margin: 8px 0 14px; }

@media (max-width: 1100px) { .apk-hoy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .apk-hoy-grid { grid-template-columns: 1fr; }
  .apk-coltabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
  .apk-coltab { flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; white-space: nowrap; }
  .apk-coltab { display: inline-flex; align-items: center; gap: 6px; }
  .apk-coltab[aria-pressed="true"] { background: var(--st-soft); border-color: var(--st); color: var(--ink); box-shadow: inset 0 0 0 1px var(--st); }
  .apk-board { display: block; overflow: visible; }
  .apk-board .apk-col { display: none; }
  .apk-tablero[data-tab="ideas"] .apk-col[data-estado="ideas"], .apk-tablero[data-tab="pendiente"] .apk-col[data-estado="pendiente"],
  .apk-tablero[data-tab="en_curso"] .apk-col[data-estado="en_curso"], .apk-tablero[data-tab="revision"] .apk-col[data-estado="revision"],
  .apk-tablero[data-tab="hecho"] .apk-col[data-estado="hecho"] { display: block; }

  .apk-input { max-width: none; }
}
@media (pointer: coarse) {
  .apk-grip { padding: 12px 10px; margin: -12px 0 -12px -10px; }
  .apk-mini, .apk-seg-btn, .apk-coltab, .apk-btn, .apk-chipbtn { min-height: 44px; }
  .apk-card-open { padding: 10px 0; }
  .apk-card-act { top: 2px; right: 2px; }
}
@media (prefers-reduced-motion: reduce) { .apk-card, .apk-toast, .apk-col, .apk-flow-seg { animation: none; transition: none; } }

/* ═══ Centro de trabajo v2: color semántico por estado (siempre con forma y texto), iconos, paleta e IA ═══
   Contraste de cada color de estado ≥ 4,2:1 sobre el fondo y ≥ 4,3:1 sobre su tinte (WCAG 1.4.11 pide 3:1). */
.apk, .apk-dialog, .apk-pal, .apk-review, .aps {
  --st-ideas: #7652B0;     --st-ideas-soft: #F5F2FA;
  --st-pendiente: #5A6E8F; --st-pendiente-soft: #F2F4F8;
  --st-en_curso: #1F5FD1;  --st-en_curso-soft: #EEF3FD;
  --st-revision: #A8620A;  --st-revision-soft: #FAF4EC;
  --st-hecho: #2B7A57;     --st-hecho-soft: #EEF6F2;
  --st-bloq: #B0273F;      --ia: #6A4FB0;
}
[data-estado="ideas"] { --st: var(--st-ideas); --st-soft: var(--st-ideas-soft); }
[data-estado="pendiente"] { --st: var(--st-pendiente); --st-soft: var(--st-pendiente-soft); }
[data-estado="en_curso"] { --st: var(--st-en_curso); --st-soft: var(--st-en_curso-soft); }
[data-estado="revision"] { --st: var(--st-revision); --st-soft: var(--st-revision-soft); }
[data-estado="hecho"] { --st: var(--st-hecho); --st-soft: var(--st-hecho-soft); }

.apk-st { display: inline-flex; flex: none; color: var(--st, var(--muted)); }
.apk-st svg, .apk-ico svg { display: block; }
.apk-type { display: inline-flex; color: var(--st-ideas); }
.apk-col { background: var(--st-soft); border-color: color-mix(in srgb, var(--st) 24%, var(--ap-line)); }
.apk-col-head { align-items: center; }
.apk-col-head .apk-st svg { width: 16px; height: 16px; }
.apk-col.is-target { background: color-mix(in srgb, var(--st) 12%, #fff); border-color: var(--st); }
.apk-card { border-color: color-mix(in srgb, var(--st) 22%, var(--ap-line)); transition: transform .16s cubic-bezier(.16, 1, .3, 1), box-shadow .16s, border-color .16s; }
.apk-card.is-blocked { border-color: var(--st-bloq); }
.apk-drop { border-color: var(--st, var(--purple-text)); background: color-mix(in srgb, var(--st, #4A628E) 8%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .apk-card:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(29, 38, 56, .35); border-color: color-mix(in srgb, var(--st) 45%, var(--ap-line)); }
}
.apk-chip { display: inline-flex; align-items: center; gap: 5px; }
.apk-chip .apk-ico svg { width: 12px; height: 12px; }
.apk-chip[data-estado] { color: var(--ink); border-color: color-mix(in srgb, var(--st) 40%, var(--ap-line)); background: var(--st-soft); }
.apk-chip[data-estado] .apk-st svg { width: 12px; height: 12px; }
.apk-chip.apk-today { color: var(--st-en_curso); border-color: color-mix(in srgb, var(--st-en_curso) 40%, var(--ap-line)); }
.apk-next { display: flex; gap: 6px; align-items: baseline; }
.apk-next .apk-ico { flex: none; color: var(--st, var(--muted)); transform: translateY(2px); }
.apk-learn { display: flex; gap: 6px; align-items: baseline; }
.apk-learn .apk-ico { color: var(--st-hecho); transform: translateY(2px); }

/* Leyenda de la barra de flujo */
.apk-flowbox { margin-top: 12px; }
.apk-flowbox .apk-flow { margin-top: 0; }
.apk-flow-seg { background: var(--st); }
.apk-flow-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.apk-flow-legend li { display: inline-flex; align-items: center; gap: 5px; }
.apk-flow-legend strong { color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.apk-flow-legend .apk-st svg { width: 12px; height: 12px; }

/* Buscar / paleta */
.apk-btn { display: inline-flex; align-items: center; gap: 6px; }
.apk-btn .apk-ico { margin-right: 0 !important; }
.apk-kbd { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--ap-line); border-radius: 5px; padding: 1px 5px; }
.apk-btn--ia { color: var(--ia); border-color: color-mix(in srgb, var(--ia) 40%, var(--ap-line)); background: color-mix(in srgb, var(--ia) 6%, #fff); }
.apk-btn--ia.is-busy { opacity: .7; cursor: progress; }
.apk-btn--ia.is-busy .apk-ico { animation: apk-spin 1.1s linear infinite; }
@keyframes apk-spin { to { transform: rotate(360deg); } }
.apk-push { margin-left: auto; }
.apk-ia-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.apk-ia-break { margin-top: 8px; }
.apk-pal { width: min(620px, calc(100vw - 24px)); padding: 0; overflow: hidden; margin-top: 12vh; }
.apk-pal-box { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--ap-line); color: var(--muted); }
.apk-pal-box .apk-ico svg { width: 18px; height: 18px; }
.apk-pal-input { flex: 1; font: inherit; font-size: 17px; border: 0; outline: none; background: none; color: var(--ink); min-height: 32px; }
.apk-pal-list { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 420px); overflow-y: auto; }
.apk-pal-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--ink); min-height: 44px; }
.apk-pal-item[aria-selected="true"] { background: var(--purple-light); }
.apk-pal-ico { display: inline-flex; color: var(--muted); }
.apk-pal-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apk-pal-kind { font-size: 12px; color: var(--muted); }
.apk-pal-hint { margin: 0; padding: 10px 18px; border-top: 1px solid var(--ap-line); font-size: 12px; color: var(--muted); background: var(--ap-surface-2); }

/* Captura inteligente */
.apk-capture { margin-bottom: 16px; max-width: 760px; }
.apk-capture-row { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--ap-line-strong); border-radius: var(--radius-lg); padding: 6px 6px 6px 14px; }
.apk-capture-row:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px var(--ap-ring); }
.apk-capture-ico { display: inline-flex; color: var(--st-ideas); }
.apk-capture .apk-input { border: 0; padding: 8px 0; min-width: 0; max-width: none; flex: 1; box-shadow: none; outline: none; }
.apk-cap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 0; }
.apk-cap-help { margin: 6px 0 0; font-size: 12px; }

/* Revisión de propuestas de IA */
.apk-rv-title { display: flex; align-items: center; gap: 8px; }
.apk-rv-title .apk-ico { color: var(--ia); }
.apk-rv-title .apk-ico svg { width: 20px; height: 20px; }
.apk-rv-intro { font-size: 15px; line-height: 1.5; color: var(--ink); background: color-mix(in srgb, var(--ia) 6%, #fff); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 12px; }
.apk-rv-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.apk-rv-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--ap-line); border-radius: var(--radius-md); }
.apk-rv-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 10px; accent-color: var(--ia); }
.apk-rv-body { display: grid; gap: 6px; min-width: 0; }
.apk-rv-body .apk-input { max-width: none; width: 100%; }
.apk-rv-body .apk-hint { margin: 0; }
.apk-rv-t { font-weight: 600; color: var(--ink); padding-top: 8px; }
.apk-rv-note { margin-top: 4px; }

/* Movimiento: cambio de vista nativo y un único momento al terminar */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
.apk-card.is-justdone { animation: apk-done .8s cubic-bezier(.16, 1, .3, 1); }
.apk-card.is-justdone .apk-card-top .apk-st { animation: apk-pop .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes apk-done { 0% { box-shadow: 0 0 0 0 rgba(43, 122, 87, .5); } 100% { box-shadow: 0 0 0 16px rgba(43, 122, 87, 0); } }
@keyframes apk-pop { 0% { transform: scale(.3) rotate(-25deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .apk-card.is-justdone, .apk-card.is-justdone .apk-st, .apk-btn--ia.is-busy .apk-ico { animation: none; }
  .apk-card:hover { transform: none; }
}
.apk-block-title { display: inline-flex; align-items: center; gap: 7px; }
.apk-block-title .apk-ico { color: var(--muted); }
.apk-block-title .apk-st svg, .apk-block-title .apk-ico svg { width: 15px; height: 15px; }


/* ───────────── APPS (area-privada-apps.js, prefijo apl-) Y MODO APP ───────────── */
/* El catálogo usa el fondo neutro de las apps (#FBFBFB, como Color Studio): el color lo ponen los iconos */
body:has(.apl) { --off: #FBFBFB; background: #FBFBFB; }
.apl-intro { max-width: 60ch; margin: 0 0 24px; font-size: 15px; line-height: 1.55; color: var(--muted); }
/* Fichas de icono + nombre + una línea: en 390 px caben dos por fila con objetivos de ~185 × 150 px */
.apl-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 4px 8px; margin-inline: -12px; }
@media (min-width: 900px) { .apl-grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); } }
.apl-app {
  display: grid; justify-items: start; align-content: start; gap: 4px; height: 100%; padding: 14px 12px 16px; border-radius: 16px;
  color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease;
}
/* misma máscara para todos los iconos (se publican cuadrados, a sangre) */
.apl-icon { width: 64px; height: 64px; margin-bottom: 10px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(29, 38, 56, .06), 0 1px 3px rgba(29, 38, 56, .12); transition: transform .12s ease; }
.apl-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.apl-desc { font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .apl-app:hover { background: rgba(29, 38, 56, .045); } }
.apl-app:active .apl-icon { transform: scale(.95); }
.apl-app:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* Modo app (area-privada.js → setAppMode): la app ocupa la pantalla y del área privada solo queda la vuelta */
.ap-in-app .ap-top, .ap-in-app .ap-tabs, .ap-in-app .ap-foot { display: none; }
/* Manual de Claude: sin el título ni las pestañas del área privada (el h1 sigue para lectores de pantalla) */
.ap-in-manual .ap-tabs { display: none; }
.ap-in-manual .ap-app-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-in-app .ap-shell { padding-top: 0; }
.ap-in-app .ap-head { margin: 0; }
/* sigue siendo el h1 de la página (y el nombre de la sección de la app) para lectores de pantalla */
.ap-in-app .ap-app-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-appbar { display: flex; align-items: center; min-height: 56px; margin-bottom: 4px; }
.ap-appbar-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-left: -12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .ap-appbar-back:hover { background: rgba(29, 38, 56, .06); } }
.ap-appbar-back:active { background: rgba(29, 38, 56, .1); }
.ap-appbar-back:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ───────────── NAVEGACIÓN MÓVIL: barra inferior + hoja «Más» (area-privada.js → buildNav) ───────────── */
.ap-bar, .ap-more:not([open]) { display: none; }
@media (max-width: 899.98px) {
  .ap-tabs, .ap-out { display: none; }      /* las pestañas pasan a la barra inferior; «Cerrar sesión» a la hoja «Más» */
  .ap-head { margin-bottom: 8px; }
  .ap-shell { padding-top: 20px; padding-bottom: calc(40px + 60px + env(safe-area-inset-bottom, 0px)); }
  .ap-foot { padding-bottom: calc(28px + 60px + env(safe-area-inset-bottom, 0px)); }
  .apk-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .mp-detail { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .ap-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--off); border-top: 1px solid var(--ap-line); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @supports (background: color-mix(in srgb, red 50%, transparent)) { .ap-bar { background: color-mix(in srgb, var(--off) 94%, transparent); } }
  @supports (backdrop-filter: blur(8px)) { .ap-bar { backdrop-filter: blur(10px); } }
  .ap-bar-a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; padding: 0;
    border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .ap-bar-ico, .ap-bar-ico svg { display: block; width: 24px; height: 24px; }
  .ap-bar-more .ap-bar-ico svg { fill: currentColor; stroke: none; }
  .ap-bar-a[aria-current], .ap-bar-a.is-on { color: var(--ink); }
  .ap-bar-a[aria-current]::before, .ap-bar-a.is-on::before { content: ''; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: var(--purple); border-radius: 0 0 2px 2px; }
  .ap-bar-a:active { background: var(--ap-hover); }
  .ap-bar-a:focus-visible { outline: 2px solid var(--purple); outline-offset: -3px; }
  .ap-in-app .ap-bar { display: none; }
  /* «+ Tarjeta»: una acción, no una sección; el «+» va en un círculo de tinta para que se reconozca al instante */
  .ap-bar-new { color: var(--ink); }
  .ap-bar-new .ap-bar-ico { display: grid; place-items: center; width: 32px; height: 32px; margin-block: -4px; border-radius: 50%; background: var(--ink); color: #fff; }
  .ap-bar-new .ap-bar-ico svg { width: 20px; height: 20px; stroke-width: 2; }
  .ap-bar-new:active .ap-bar-ico { background: var(--text); }
  /* Sin reloj en móvil: el título sigue centrado y, por debajo de 720 px (sin título), «Volver al Laboratorio» va a la izquierda */
  .ap-now { display: none; }
  .ap-top-title { grid-column: 2; }
  .ap-top-actions { grid-column: 3; }

  /* Hoja «Más»: <dialog> modal anclado abajo (Esc, foco atrapado y fondo los pone el navegador) */
  .ap-more[open] {
    display: block; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 85dvh; padding: 0; overflow: auto;
    border: 0; border-radius: 18px 18px 0 0; background: var(--white); color: var(--ink); animation: ap-sheet .22s ease-out;
  }
  .ap-more::backdrop { background: rgba(29, 38, 56, .45); }
  .ap-more-card { padding: 6px 8px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .ap-more-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 2px 12px; }
  .ap-more-title { font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -.3px; }
  .ap-more-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
  .ap-more-x svg { width: 22px; height: 22px; }
  .ap-more-list { list-style: none; display: grid; margin: 4px 0; }
  .ap-more-a {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-radius: 12px; background: none;
    font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .ap-more-a[aria-current] { background: var(--purple-light); font-weight: 600; }
  .ap-more-a:active { background: var(--ap-hover); }
  .ap-more-a:focus-visible, .ap-more-x:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
  .ap-more-ico, .ap-more-ico svg { display: block; width: 22px; height: 22px; color: var(--muted); }
  .ap-more-out { margin-top: 6px; border-top: 1px solid var(--ap-line); border-radius: 0 0 12px 12px; padding-top: 4px; }
  @keyframes ap-sheet { from { transform: translateY(28px); opacity: 0; } }
}
@media (max-width: 720px) {
  .ap-top { grid-template-columns: 1fr; min-height: 52px; padding-block: 4px; }
  .ap-top-actions { grid-column: 1; justify-self: start; }
}
@media (min-width: 900px) { .ap-more { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ap-more[open] { animation: none; } }

/* ─── PANTALLA DE ACCESO: negro y blanco ───
   Mientras #ap-lock está visible la página es un espacio cerrado: fondo negro, sin reloj, título ni pie.
   Solo CSS (body:has): al entrar, el área privada recupera su aspecto de siempre. */
body:has(#ap-lock:not([hidden])) { background: #000; color: #fff; }
body:has(#ap-lock:not([hidden])) .ap-top { background: transparent; border-bottom: 0; grid-template-columns: 1fr; }
body:has(#ap-lock:not([hidden])) .ap-now,
body:has(#ap-lock:not([hidden])) .ap-top-title,
body:has(#ap-lock:not([hidden])) .ap-foot,
body:has(#ap-lock:not([hidden])) .ap-out { display: none; }
body:has(#ap-lock:not([hidden])) .ap-top-actions { grid-column: 1; justify-self: start; }
body:has(#ap-lock:not([hidden])) .ap-top .ap-back { color: #fff; opacity: .7; transition: opacity .2s; }
body:has(#ap-lock:not([hidden])) .ap-top .ap-back:hover,
body:has(#ap-lock:not([hidden])) .ap-top .ap-back:focus-visible { opacity: 1; color: #fff; }
body:has(#ap-lock:not([hidden])) :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body:has(#ap-lock:not([hidden])) main { min-height: calc(100vh - var(--ap-top-h)); }
.ap-lock:not([hidden]) { min-height: calc(100vh - var(--ap-top-h) - 24px); padding: 24px 24px 72px; }
.ap-lock .ap-lock-card { width: min(320px, 100%); padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; text-align: center; }
.ap-lock .ap-lock-icon { width: 44px; height: 44px; margin-bottom: 28px; border: 1px solid #fff; border-radius: 50%; background: none; color: #fff; }
.ap-lock .ap-lock-icon svg { width: 20px; height: 20px; }
.ap-lock .ap-lock-title {
  margin-bottom: 40px; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; line-height: 1.4; color: #fff;
}
.ap-lock .ap-login { text-align: left; }
.ap-lock .ap-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ap-lock .ap-pass { border: 0; border-bottom: 1px solid #fff; border-radius: 0; background: transparent; }
.ap-lock .ap-pass:focus-within { border-color: #fff; box-shadow: 0 2px 0 #fff; }
.ap-lock .ap-pass input { padding: 12px 0; color: #fff; border-radius: 0; caret-color: #fff; letter-spacing: .08em; }
.ap-lock .ap-pass input[aria-invalid="true"] { color: #fff; }
.ap-lock .ap-pass input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #000 inset; }
.ap-lock .ap-pass-toggle { padding: 0 0 0 14px; border-radius: 0; color: #fff; opacity: .7; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ap-lock .ap-pass-toggle:hover, .ap-lock .ap-pass-toggle:focus-visible { opacity: 1; }
.ap-lock .ap-msg { color: #fff; opacity: .75; text-align: center; font-size: 13px; }
.ap-lock .ap-msg.is-error { color: #FF8A8A; opacity: 1; }
.ap-lock .ap-login-btn {
  background: #fff; color: #000; border: 1px solid #fff; border-radius: 0;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.ap-lock .ap-login-btn::before { display: none; }
@media (hover: hover) and (pointer: fine) { .ap-lock .ap-login-btn:hover { background: #000; color: #fff; } }
.ap-lock .ap-login-btn:focus-visible { outline-color: #fff; outline-offset: 4px; }
body:has(#ap-lock:not([hidden])) .ap-lock .ap-pass input:focus-visible { outline: none; }   /* el foco lo marca el subrayado */
.ap-lock .ap-pass input::placeholder { color: rgba(255, 255, 255, .55); letter-spacing: .08em; }
