/* Appita: sistema de diseño compartido (portal y todas las apps). Única fuente: shared/appita.css
   (npm run sync lo copia a cada sitio; no se edita la copia). Dos temas: oscuro (por defecto) y claro "colorido 2005".
   El tema lo pone js/theme.js como data-theme en <html> (botón sol/luna del header; arranca según el sistema).
   1) Tokens del sistema (tokens.json v2, oscuro y claro)  2) Componentes del sistema (bundle.css)  3) Capa de la app. */

:root {
  color-scheme: dark;
  --bg: #1a1b1f;
  --surface: #212227;
  --surface-2: #292a30;
  --line: #2f3037;
  --line-strong: #3f4048;
  --control: #6e6f79;
  --ink: #ededee;
  --muted: #9a9ba4;
  --brand: var(--ink);
  --on-brand: #1a1b1f;
  --success: #3fc283;
  --danger: #ff7a6e;
  --logo-orange: #ff5a36;
  --logo-blue: #2f5bff;
  --logo-green: #14c27a;
  --logo-yellow: #ffc53d;
  --on-yellow: #1a1b1f;
  --on-app: #1a1b1f;
  --chrome: #1a1b1f;
  --on-chrome: #ededee;
  --stripe: #2f3037;
  --pop: #ffc53d;
  --app-recorta: #ff5a36;
  --app-recorta-strong: #ff7152;
  --app-recorta-soft: #492c2a;
  --app-cvlisto: #2f5bff;
  --app-cvlisto-strong: #7c97ff;
  --app-cvlisto-soft: #242c4e;
  --app-cuentas: #12a372;
  --app-cuentas-strong: #14b37d;
  --app-cuentas-soft: #1e3934;
  --app-cotiza: #7c3aed;
  --app-cotiza-strong: #b189f4;
  --app-cotiza-soft: #31264b;
  --app-pdf: #e5484d;
  --app-pdf-strong: #ec7b7f;
  --app-pdf-soft: #44292e;
  --app-qr: #0d9488;
  --app-qr-strong: #0fb0a2;
  --app-qr-soft: #1d3738;
  --app-liviana: #db2777;
  --app-liviana-strong: #e878aa;
  --app-liviana-soft: #422335;
  --app-mp3: #0284c7;
  --app-mp3-strong: #4fb3e6;
  --app-mp3-soft: #1b3341;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 64px;
  --space-8: 112px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-pop: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-card: none;
  --shadow-button: none;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #fff3cc;
  --surface: #ffffff;
  --surface-2: #ffe08a;
  --line: #f5d576;
  --line-strong: #e9bb3c;
  --control: #a07a2a;
  --ink: #2b1404;
  --muted: #6e4512;
  --brand: #d4161c;
  --on-brand: #ffffff;
  --success: #146c34;
  --danger: #b4121b;
  --on-yellow: #2b1404;
  --on-app: #ffffff;
  --chrome: #d4161c;
  --on-chrome: #ffffff;
  --stripe: #ffc72c;
  --pop: #ffc72c;
  --app-recorta-strong: #c52300;
  --app-recorta-soft: #ffe5df;
  --app-cvlisto-strong: #1849ff;
  --app-cvlisto-soft: #dee5ff;
  --app-cuentas-strong: #0d7350;
  --app-cuentas-soft: #d9f0e8;
  --app-cotiza-strong: #7631ec;
  --app-cotiza-soft: #eadffc;
  --app-pdf-strong: #c21c21;
  --app-pdf-soft: #fbe2e3;
  --app-qr-strong: #0a7168;
  --app-qr-soft: #d8eeec;
  --app-liviana-strong: #b81f63;
  --app-liviana-soft: #f9dce9;
  --app-mp3-strong: #0369a1;
  --app-mp3-soft: #dcf0fb;
  --shadow-pop: 0 6px 0 rgba(160,122,42,0.35), 0 16px 32px rgba(212,22,28,0.18);
  --shadow-card: 0 4px 0 #e9bb3c;
  --shadow-button: inset 0 -3px 0 rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Appita UI v2 — oscuro sobrio + claro colorido. Compartido por appita.ar y todas las apps.
   Entre apps cambia solo data-app (--app-strong / --app-soft) y el glifo del ícono. */

/* ---------- Color por app ---------- */
:root { --app-strong: var(--ink); --app-soft: var(--surface-2); }
[data-app="recorta"] { --app-strong: var(--app-recorta-strong); --app-soft: var(--app-recorta-soft); }
[data-app="cvlisto"] { --app-strong: var(--app-cvlisto-strong); --app-soft: var(--app-cvlisto-soft); }
[data-app="cuentas"] { --app-strong: var(--app-cuentas-strong); --app-soft: var(--app-cuentas-soft); }
[data-app="cotiza"]  { --app-strong: var(--app-cotiza-strong);  --app-soft: var(--app-cotiza-soft); }
[data-app="pdf"]     { --app-strong: var(--app-pdf-strong);     --app-soft: var(--app-pdf-soft); }
[data-app="qr"]      { --app-strong: var(--app-qr-strong);      --app-soft: var(--app-qr-soft); }
[data-app="liviana"], [data-app="fotos"] { --app-strong: var(--app-liviana-strong); --app-soft: var(--app-liviana-soft); }
[data-app="mp3"]     { --app-strong: var(--app-mp3-strong);     --app-soft: var(--app-mp3-soft); } /* MP3 Ya: celeste (7.3:1 sobre el fondo oscuro; 5.9:1 con blanco en claro) */

/* ---------- Base ---------- */
.ap { color-scheme: dark; font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--ink); background: var(--bg); text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
:where(.ap) a { color: inherit; text-decoration: none; }
.ap :focus-visible { outline: 2px solid var(--app-strong); outline-offset: 2px; border-radius: var(--radius-sm); }
.ap svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ap-muted { color: var(--muted); }
.ap-num { font-variant-numeric: tabular-nums; }
.ap-wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--space-5); }
.ap-col  { max-width: 560px; margin: 0 auto; padding: 0 var(--space-4); }
.ap-overline { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.ap-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Button ---------- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 18px; border-radius: var(--radius-md); position: relative; touch-action: manipulation;
  border: 1px solid transparent; font: 500 14px/20px var(--font-sans); cursor: pointer; white-space: nowrap; background: none; color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s; }
.ap-btn svg.i { width: 16px; height: 16px; }
.ap-btn--primary { background: var(--brand); color: var(--on-brand); }
.ap-btn--primary:hover { filter: brightness(1.1); }
.ap-btn--secondary { border-color: var(--line); }
.ap-btn--secondary:hover { border-color: var(--line-strong); background: var(--surface); }
.ap-btn--ghost { color: var(--muted); }
.ap-btn--ghost:hover { color: var(--ink); background: var(--surface); }
.ap-btn--danger { color: var(--danger); }
.ap-btn--lg { height: 48px; padding: 0 20px; font-size: 15px; }
.ap-btn--sm { height: 36px; min-width: 36px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-sm); }
.ap-btn--sm::after, .ap-chip::after, .ap-seg button::after { content: ""; position: absolute; inset: -4px; } /* área táctil ≥44px */
.ap-btn--block { width: 100%; }
.ap-btn--icon { width: 44px; height: 44px; padding: 0; color: var(--muted); }
.ap-btn--icon:hover { color: var(--ink); background: var(--surface); }
.ap-btn:active { transform: translateY(1px); }
.ap-btn[disabled], .ap-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.ap-btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.ap-btn[aria-busy="true"]::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--on-brand) transparent var(--on-brand) var(--on-brand); animation: ap-spin .7s linear infinite; }
[data-app] .ap-btn--primary[aria-busy="true"]::before { border-color: var(--on-app) transparent var(--on-app) var(--on-app); }
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* ---------- Chip / badge ---------- */
.ap-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); position: relative;
  background: none; color: var(--muted); font: 500 13px/18px var(--font-sans); cursor: pointer; transition: color .15s, border-color .15s; }
.ap-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.ap-chip[aria-pressed="true"] { color: var(--app-strong); border-color: var(--app-strong); background: var(--app-soft); }
.ap-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--radius-sm); font: 500 11px/16px var(--font-sans);
  letter-spacing: .02em; border: 1px solid var(--line); color: var(--muted); vertical-align: 2px; }
.ap-badge--new { border-color: transparent; background: var(--pop); color: var(--on-yellow); }

/* ---------- Field ---------- */
.ap-field { display: grid; gap: 6px; align-content: start; }
.ap-field > .ap-seg { justify-self: start; }
.ap-field label { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.ap-field label .ap-req { color: var(--muted); font-weight: 400; }
.ap-help { font-size: 13px; line-height: 18px; color: var(--muted); }
.ap-error { font-size: 13px; line-height: 18px; color: var(--danger); }
.ap-input { height: 48px; width: 100%; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--control); background: var(--surface);
  color: var(--ink); font: 400 16px/24px var(--font-sans); transition: border-color .15s, box-shadow .15s; }
.ap-input::placeholder { color: var(--muted); }
.ap-input:focus { outline: none; border-color: var(--app-strong); box-shadow: 0 0 0 3px var(--app-soft); }
.ap-input--error, .ap-input[aria-invalid="true"] { border-color: var(--danger); }
.ap-input:disabled { opacity: .5; cursor: not-allowed; }
.ap-error { display: flex; gap: 6px; align-items: flex-start; } .ap-error svg.i { width: 16px; height: 16px; margin-top: 1px; }
.ap-prefix { position: relative; } .ap-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ap-prefix .ap-input { padding-left: 28px; }
.ap-seg { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.ap-seg button { position: relative; height: 38px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 500 13px/18px var(--font-sans); cursor: pointer; }
.ap-seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }

/* ---------- Icon tiles ---------- */
.ap-tile { width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; flex: none; background: var(--app-soft); color: var(--app-strong); }
.ap-tile svg.i { width: 18px; height: 18px; }
.ap-tile--lg { width: 48px; height: 48px; border-radius: 10px; } .ap-tile--lg svg.i { width: 24px; height: 24px; }
.ap-tile--sm { width: 28px; height: 28px; border-radius: var(--radius-sm); } .ap-tile--sm svg.i { width: 16px; height: 16px; }
.ap-tile--neutral { background: var(--surface-2); color: var(--muted); }
.ap-logo { width: 20px; height: 20px; display: block; flex: none; }

/* ---------- Header ---------- */
.ap-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--chrome) 88%, transparent); color: var(--on-chrome); backdrop-filter: blur(12px); border-bottom: 1px solid var(--stripe); }
.ap-header__in { height: 56px; display: flex; align-items: center; gap: 4px; }
.ap-brand { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font-sans); letter-spacing: -0.01em; margin-right: auto; }
.ap-nav { display: flex; gap: 2px; margin-right: 8px; }
.ap-nav a { padding: 10px 12px; border-radius: var(--radius-sm); font: 500 14px/20px var(--font-sans); color: var(--muted); }
.ap-nav a:hover { color: var(--ink); }

/* ---------- App grid (homepage): hairline table ---------- */
.ap-appgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ap-appcard { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--bg); transition: background-color .15s; }
.ap-appcard:hover { background: var(--surface); }
.ap-appcard__main { flex: 1; min-width: 0; }
.ap-appcard__name { font: 500 16px/24px var(--font-sans); }
.ap-appcard__tag { font-size: 14px; line-height: 20px; color: var(--muted); }
.ap-appcard__go { color: var(--muted); transition: transform .15s, color .15s; }
.ap-appcard:hover .ap-appcard__go { color: var(--ink); transform: translateX(2px); }

/* ---------- List ---------- */
.ap-list { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ap-list__head { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; color: inherit; width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
.ap-row + .ap-row { border-top: 1px solid var(--line); }
.ap-row:hover { background: var(--surface); }
.ap-row__main { flex: 1; min-width: 0; }
.ap-row__title { font: 500 15px/22px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-row__meta { font-size: 13px; line-height: 18px; color: var(--muted); }
.ap-row__value { font: 500 15px/22px var(--font-sans); font-variant-numeric: tabular-nums; text-align: right; }
.ap-initials { width: 32px; height: 32px; border-radius: var(--radius-pill); display: grid; place-items: center; flex: none; border: 1px solid var(--line-strong); color: var(--muted); font: 500 12px/1 var(--font-sans); }

/* ---------- Summary ---------- */
.ap-stat { padding: 20px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 4px; }
.ap-stat .ap-overline { color: var(--app-strong); }
.ap-stat__value { font: 600 28px/32px var(--font-sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- Empty state ---------- */
.ap-empty { display: grid; justify-items: start; gap: 16px; padding: 64px 0 32px; }
.ap-empty h1 { margin: 8px 0 0; font: 600 28px/34px var(--font-sans); letter-spacing: -0.025em; }
.ap-empty p { margin: 0; font-size: 16px; line-height: 26px; color: var(--muted); max-width: 420px; }

/* ---------- Footer ---------- */
.ap-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 13px; line-height: 18px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .ap * { transition: none !important; } }

/* ---------- Detalles de color por app (dentro de data-app) ---------- */
[data-app] { --app-on: var(--on-app); }
[data-app] ::selection { background: var(--app-soft); color: var(--ink); }
[data-app] .ap-btn--primary, .ap-btn--primary[data-app] { background: var(--app-strong); color: var(--app-on); }
[data-app] .ap-btn--primary:hover, .ap-btn--primary[data-app]:hover { background: var(--app-strong); filter: brightness(1.08); }
[data-app] .ap-btn--secondary:hover { border-color: var(--app-strong); }
[data-app] .ap-link, .ap-link[data-app] { color: var(--app-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ap-header[data-app] { box-shadow: inset 0 2px 0 var(--app-strong); }
[data-app] .ap-stat { background: var(--app-soft); border-color: transparent; position: relative; overflow: hidden; }
[data-app] .ap-initials { background: var(--app-soft); border-color: transparent; color: var(--app-strong); }
[data-app] .ap-row:hover { box-shadow: inset 2px 0 0 var(--app-strong); }
.ap-progress { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.ap-progress > i { display: block; height: 100%; border-radius: inherit; background: var(--app-strong); }
.ap-appcard:hover .ap-appcard__go { color: var(--app-strong); }

/* ---------- Estándares: accesibilidad y feedback ---------- */
.ap-skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: var(--radius-md); background: var(--ink); color: var(--bg); font: 500 14px/20px var(--font-sans); }
.ap-skip:focus { top: 8px; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ap-status svg.i { width: 14px; height: 14px; color: var(--success); }
.ap-toast { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 8px 8px 16px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); font: 500 14px/20px var(--font-sans); }
.ap-toast .ap-btn { margin-left: auto; color: var(--app-strong); }
.ap-dialog { width: min(400px, 100%); padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); display: grid; gap: 8px; }
.ap-dialog h2 { margin: 0; font: 600 18px/26px var(--font-sans); } .ap-dialog p { margin: 0 0 16px; color: var(--muted); }
.ap-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
.ap-btn--danger-solid { background: var(--danger); color: var(--on-brand); }
.ap-skeleton { border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: ap-shimmer 1.4s ease infinite; }
@keyframes ap-shimmer { to { background-position: -200% 0; } }
.ap-dock { padding-bottom: env(safe-area-inset-bottom); }
@media (prefers-reduced-motion: reduce) { .ap *, .ap *::before { animation: none !important; } }
@media (forced-colors: active) { .ap-btn, .ap-chip, .ap-input, .ap-list, .ap-stat { border: 1px solid CanvasText; } }
@media (max-width: 640px) { .ap-appgrid { grid-template-columns: 1fr; } .ap-wrap { padding: 0 var(--space-4); } }

/* =====================================================================
   MODO CLARO — "colorido 2005": rojo ketchup, amarillo mostaza, relieve
   brillante, sombras sólidas y esquinas redondas. Mismo layout que oscuro.
   ===================================================================== */
[data-theme="light"] .ap, .ap[data-theme="light"] { color-scheme: light; }
[data-theme="light"] .ap-header { background: var(--chrome); border-bottom: 4px solid var(--stripe); backdrop-filter: none; }
[data-theme="light"] .ap-header[data-app] { background: var(--app-strong); box-shadow: none; }
[data-theme="light"] .ap-header .ap-brand { font-weight: 800; letter-spacing: -0.02em; }
[data-theme="light"] .ap-header .ap-nav a, [data-theme="light"] .ap-header .ap-btn--ghost, [data-theme="light"] .ap-header .ap-btn--icon { color: var(--on-chrome); }
[data-theme="light"] .ap-header .ap-nav a:hover, [data-theme="light"] .ap-header .ap-btn--ghost:hover, [data-theme="light"] .ap-header .ap-btn--icon:hover { background: rgba(255,255,255,.18); color: var(--on-chrome); }
[data-theme="light"] .ap-header .ap-btn--secondary { background: var(--pop); color: var(--on-yellow); border-color: transparent; box-shadow: var(--shadow-button); font-weight: 700; }
[data-theme="light"] .ap-header .ap-tile { background: #ffffff; color: var(--app-strong); }
[data-theme="light"] .ap :focus-visible { outline-color: var(--ink); }

[data-theme="light"] .ap-btn { font-weight: 700; border-radius: var(--radius-pill); }
[data-theme="light"] .ap-btn--primary { box-shadow: var(--shadow-button); background-image: linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,0) 55%); }
[data-theme="light"] .ap-btn--secondary { background: var(--surface); border: 2px solid var(--line-strong); }
[data-theme="light"] .ap-btn--secondary:hover { background: var(--surface-2); border-color: var(--line-strong); }
[data-theme="light"] .ap-btn--ghost { color: var(--ink); }
[data-theme="light"] .ap-btn--icon { color: var(--ink); }

[data-theme="light"] .ap-chip { background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink); font-weight: 600; }
[data-theme="light"] .ap-chip[aria-pressed="true"] { background: var(--app-strong); border-color: var(--app-strong); color: var(--on-app); }
[data-theme="light"] .ap-badge--new { transform: rotate(-4deg); font-weight: 800; box-shadow: 0 2px 0 rgba(160,122,42,.5); }

[data-theme="light"] .ap-list, [data-theme="light"] .ap-appgrid, [data-theme="light"] .ap-card, [data-theme="light"] .ap-dialog { border: 2px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-card); background: var(--surface); }
[data-theme="light"] .ap-appgrid { gap: 2px; background: var(--line-strong); }
[data-theme="light"] .ap-appcard { background: var(--surface); }
[data-theme="light"] .ap-appcard:hover { background: var(--app-soft); }
[data-theme="light"] .ap-appcard__name { font-weight: 700; }
[data-theme="light"] .ap-row + .ap-row { border-top: 2px dashed var(--line); }
[data-theme="light"] .ap-row:hover { background: var(--app-soft); }
[data-theme="light"] .ap-list__head { background: var(--surface-2); border-bottom: 2px solid var(--line-strong); }
[data-theme="light"] .ap-list__head .ap-overline { color: var(--ink); font-weight: 700; }

[data-theme="light"] .ap-tile { background: var(--app-strong); color: var(--on-app); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
[data-theme="light"] .ap-tile--neutral { background: var(--surface-2); color: var(--ink); }
[data-theme="light"] .ap-initials { background: var(--app-soft); color: var(--app-strong); font-weight: 700; }

[data-theme="light"] .ap-stat { background: var(--app-strong); color: var(--on-app); border: 0; border-radius: 18px; box-shadow: var(--shadow-card); }
[data-theme="light"] .ap-stat .ap-overline, [data-theme="light"] .ap-stat .ap-row__meta { color: var(--on-app); }
[data-theme="light"] .ap-stat__value { font-weight: 800; }
[data-theme="light"] .ap-stat .ap-progress { height: 8px; background: rgba(255,255,255,.3); }
[data-theme="light"] .ap-stat .ap-progress > i { background: var(--pop); }
[data-theme="light"] .ap-progress > i { background: var(--app-strong); }

[data-theme="light"] .ap-empty h1 { font-weight: 800; letter-spacing: -0.03em; }
[data-theme="light"] .ap-input { border-width: 2px; border-radius: 12px; }
[data-theme="light"] .ap-seg { background: var(--surface-2); border: 0; }
[data-theme="light"] .ap-seg button { font-weight: 600; color: var(--ink); }
[data-theme="light"] .ap-seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 2px 0 var(--line-strong); }
[data-theme="light"] .ap-toast { background: var(--ink); color: var(--surface); border: 0; }
[data-theme="light"] .ap-toast .ap-btn { color: var(--pop); }
[data-theme="light"] .ap-footer { background: var(--chrome); color: var(--on-chrome); border-top: 4px solid var(--stripe); }
[data-theme="light"] .ap-header .ap-logo, [data-theme="light"] .ap-footer .ap-logo { width: 28px; height: 28px; padding: 4px; border-radius: 8px; background: #ffffff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }

/* =====================================================================
   Capa de la app: las clases que usan las apps, con las reglas del sistema.
   Cuerpo con class="ap"; <html data-app="<id>"> da el color característico.
   ===================================================================== */

/* Nombres viejos → tokens del sistema. Dentro de una app, "brand" es el color de la app. */
:root {
  --text: var(--ink);
  --font: var(--font-sans);
  --display: var(--font-sans);
  --radius: var(--radius-lg);
  --shadow: none;
  --good: var(--success);
  --good-soft: #1d3a2e;   /* tinte de success sobre bg, como los app-*-soft */
  --warn: var(--danger);
  --warn-soft: #45292a;   /* tinte de danger sobre bg */
  --col: 560px;           /* columna de las apps */
}
[data-app] { --brand: var(--app-strong); --brand-ink: var(--on-app); --brand-soft: var(--app-soft); }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > .app { flex: 1 0 auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 18px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
/* Links dentro de un texto (párrafos, listas): color de la app y subrayado; los de navegación y botones tienen su propio estilo. */
.ap :where(p, li, dd, td) > a:not([class]) { color: var(--app-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Columna de las apps: 560px, alineada al mismo borde que el header. */
.app { width: 100%; max-width: var(--col); margin: 0 auto; padding: var(--space-5) var(--space-4) 120px; }

/* Header de app (componente Header) */
.ap-header__in:not(.ap-wrap) { max-width: var(--col); margin: 0 auto; padding: 0 8px 0 var(--space-4); }
.ap-brand { min-width: 28px; white-space: nowrap; } /* nunca más angosto que su tile */
.ap-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ap-header .ap-btn--sm:not(.ap-btn--primary) { color: var(--muted); }
.ap-header .ap-btn--sm:not(.ap-btn--primary):hover { color: var(--ink); }
/* En pantallas angostas se esconde lo secundario del header (Ajustes tiene el link a Appita). */
@media (max-width: 520px) { .ap-hide-sm { display: none !important; } }

/* Pie de app */
.ap-appfoot { border-top: 1px solid var(--line); margin-top: var(--space-6); }
.ap-appfoot__in { max-width: var(--col); margin: 0 auto; padding: 14px var(--space-4) calc(14px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  font-size: 12px; line-height: 16px; color: var(--muted); }
.ap-appfoot__in > span { display: inline-flex; align-items: center; gap: 6px; }
.ap-appfoot svg.i { width: 14px; height: 14px; }
.ap-appfoot a, .ap-appfoot button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ap-appfoot a:hover, .ap-appfoot button:hover { color: var(--ink); }

/* Botones (componente Button) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: none; color: var(--ink); font: 500 14px/20px var(--font-sans); cursor: pointer; text-decoration: none; touch-action: manipulation;
  transition: background-color .15s, border-color .15s, color .15s; position: relative; }
.btn:hover { border-color: var(--line-strong); background: var(--surface); }
[data-app] .btn:hover { border-color: var(--app-strong); }
.btn:active { transform: translateY(1px); }
.btn svg.i { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); border-color: transparent; color: var(--brand-ink, var(--on-brand)); }
.btn-primary:hover { background: var(--brand); border-color: transparent; filter: brightness(1.08); }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { border-color: transparent; color: var(--ink); background: var(--surface); }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-sm::after { content: ""; position: absolute; inset: -4px; }
.btn-lg { min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn[disabled], .btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--radius-md); border: 0; background: none; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--surface); }

/* Paneles: hairline, radio lg, sin sombra */
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); background: none; }
.card h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font: 500 12px/16px var(--font-sans); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.card h2 .right { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 13px; }
.section { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; padding-top: 0; }
.section h3 { font: 600 15px/22px var(--font-sans); margin-bottom: 8px; }
.stack { display: grid; gap: 8px; }

/* Campos (componente Field) */
.field { display: grid; gap: 6px; margin-bottom: var(--space-4); align-content: start; }
.field label, .label { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--control); background: var(--surface);
  color: var(--ink); font: 400 16px/24px var(--font-sans); transition: border-color .15s, box-shadow .15s; }
textarea.input { padding: 12px; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--app-strong); box-shadow: 0 0 0 3px var(--app-soft); }
.input.invalid, .input[aria-invalid="true"] { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font: 500 14px/20px var(--font-sans); cursor: pointer; margin-bottom: var(--space-4); }
.check input { width: 20px; height: 20px; accent-color: var(--app-strong); }
.hint { font-size: 13px; line-height: 18px; color: var(--muted); }
.err, .err-msg { color: var(--danger); font-size: 13px; line-height: 18px; }
.err-box { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--danger); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: var(--space-4); color: var(--danger); font-size: 14px; line-height: 20px; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.seg button { flex: 1; position: relative; min-height: 38px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 500 13px/18px var(--font-sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
/* overline: mayúsculas, como dice el sistema (etiquetas sobre cifras y cabeceras de lista) */
.ap-overline { text-transform: uppercase; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--muted); font: 500 11px/16px var(--font-sans); letter-spacing: .02em; vertical-align: 2px; background: none; }
.chip.good { color: var(--success); border-color: currentColor; }
.chip.warn, .chip.bad { color: var(--danger); border-color: currentColor; }

/* Diálogos: superficie, borde line-strong, radio lg */
dialog { border: 1px solid var(--line-strong); padding: 0; width: min(560px, calc(100% - 32px)); max-height: min(92vh, 900px); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
dialog::backdrop { background: rgba(10, 10, 12, .7); }
@media (max-width: 600px) { dialog { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 94vh; border-bottom: 0; } }
.dlg-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px 4px var(--space-5); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dlg-head h2 { flex: 1; font: 600 18px/26px var(--font-sans); letter-spacing: -0.015em; }
.dlg-body { padding: 8px var(--space-5) var(--space-5); }
.dlg-foot { display: flex; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.dlg-foot .btn { flex: 1; }

/* Toast (componente Feedback) */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(12px); z-index: 100; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 8px 8px 16px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop); font: 500 14px/20px var(--font-sans); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--app-strong); font: 500 14px/20px var(--font-sans); cursor: pointer; padding: 8px 10px; border-radius: var(--radius-sm); }

/* Avisos */
.notice { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; line-height: 20px; }
.notice.good { border-color: var(--success); color: var(--success); }
.notice.warn { border-color: var(--danger); color: var(--danger); }

/* Lista con check del set propio (en lugar de un signo) */
.ap-checks { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 8px; }
.ap-checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.ap-checks li svg.i { width: 16px; height: 16px; margin-top: 2px; color: var(--success); }

/* Donación (shared/donate.js) */
.donate p { margin: 0 0 12px; }
.donate-reason { background: var(--app-soft); border-radius: var(--radius-md); padding: 12px 14px; font: 500 14px/20px var(--font-sans); }
.donate-links { display: grid; gap: 8px; margin-bottom: 12px; }
.donate-link { justify-content: space-between; text-align: left; }
.donate-link small { font-weight: 400; font-size: 13px; opacity: .8; }
.donate-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }

/* Manual (shared/manual.js) */
.manual h3 { font: 500 12px/16px var(--font-sans); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin: var(--space-5) 0 8px; }
.manual ol, .manual ul { margin: 0; padding-left: 1.3em; }
.manual li { margin: 6px 0; }
.manual-note { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--space-4); padding: 12px 14px; border-radius: var(--radius-md); background: var(--app-soft); font-size: 14px; line-height: 20px; }
.manual-note svg.i { width: 16px; height: 16px; margin-top: 2px; color: var(--app-strong); }
.manual-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: var(--space-4) 0; font-size: 14px; }
.manual-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--app-strong); text-decoration: underline; text-underline-offset: 3px; }
.manual-links svg.i { width: 14px; height: 14px; }

/* Páginas de guía y legales: misma columna y mismo header */
.doc, .page { max-width: 720px; margin: 0 auto; padding: 0 var(--space-4) 80px; }

/* Guías y páginas de documentación (componente: misma columna, hairlines, sin sombras) */
.doc, .page { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--space-4) 80px; flex: 1 0 auto; }
.doc.wide, .page { max-width: 900px; }
.doc > h1, .page > h1 { font: 600 28px/34px var(--font-sans); letter-spacing: -0.025em; margin: var(--space-6) 0 12px; }
.doc > h2, .page > h2, .doc .cta > h2, .page .cta > h2 { font: 600 20px/28px var(--font-sans); letter-spacing: -0.015em; margin: var(--space-6) 0 10px; }
.doc > p, .doc > ul > li, .doc > ol > li, .page > p, .page > ul > li, .doc .cta > p, .page .cta > p { color: var(--muted); }
.doc > ol > li, .doc > ul > li { margin: 6px 0; }
.doc .cta, .page .cta { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--app-soft); }
.doc .cta > h2, .page .cta > h2 { margin-top: 0; }
.doc .grid, .page .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.doc .grid > li, .page .grid > li { margin: 0; background: var(--bg); }
.doc .grid a, .page .grid a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 14px 16px; background: var(--bg); color: var(--ink); text-decoration: none; font: 500 15px/22px var(--font-sans); }
.doc .grid a:hover, .page .grid a:hover { background: var(--surface); }
.doc .grid a svg.i, .page .grid a svg.i { width: 16px; height: 16px; color: var(--muted); }
.doc .grid a:hover svg.i, .page .grid a:hover svg.i { color: var(--app-strong); }
.doc .btn, .page .btn { margin: 8px 0; }
.sheet-box { overflow: hidden; border-radius: var(--radius-md); margin: var(--space-5) 0; background: #fff; }
.doc .scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 14px; line-height: 20px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font: 500 12px/16px var(--font-sans); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.doc td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc .result { list-style: none; padding: 0; display: grid; gap: 8px; }
.doc .result li { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; font: 500 15px/22px var(--font-sans); color: var(--ink); }
.doc .note { font-size: 13px; line-height: 18px; color: var(--muted); }
/* Páginas legales: un idioma a la vista (js/legal.js) */
[data-legal] { display: none; }
[data-legal].show { display: block; }
.doc [data-legal] > h1 { font: 600 28px/34px var(--font-sans); letter-spacing: -0.025em; margin: var(--space-6) 0 12px; }
.doc [data-legal] > h1 + p, .doc [data-legal] li { color: var(--muted); }
.doc [data-legal] li { margin: 6px 0; }

/* =====================================================================
   Capa de la app en MODO CLARO: las mismas clases con la piel "colorido 2005"
   (pill en negrita con relieve, bordes de 2px, sombras sólidas, header y pie del color de la app).
   ===================================================================== */
[data-theme="light"] { --good-soft: #dcf0e2; --warn-soft: #fbe1e1; }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3 { font-weight: 700; }

/* Header: fondo rojo (chrome) o, dentro de una app, el color de la app; franja amarilla de 4px. */
[data-theme="light"] .ap-header .ap-btn--sm:not(.ap-btn--primary),
[data-theme="light"] .ap-header .ap-btn--icon,
[data-theme="light"] .ap-header .ap-brand { color: var(--on-chrome); }
[data-theme="light"] .ap-header .ap-btn--sm:not(.ap-btn--primary):hover,
[data-theme="light"] .ap-header .ap-btn--icon:hover { color: var(--on-chrome); background: rgba(255,255,255,.18); }
[data-theme="light"] .ap-header .ap-btn--secondary:not(.ap-btn--primary) { color: var(--on-yellow); }
[data-theme="light"] .ap-header .ap-btn--primary { background: var(--pop); color: var(--on-yellow); }
[data-theme="light"] .ap-header .ap-btn--primary:hover { background: var(--pop); }
[data-theme="light"] .ap-header .ap-btn--ghost.ap-btn--sm { font-weight: 700; }

/* Pie: del color del header, con la misma franja amarilla. */
[data-theme="light"] .ap-appfoot { background: var(--chrome); border-top: 4px solid var(--stripe); }
[data-theme="light"][data-app] .ap-appfoot { background: var(--app-strong); }
[data-theme="light"] .ap-appfoot__in, [data-theme="light"] .ap-appfoot a, [data-theme="light"] .ap-appfoot button { color: var(--on-chrome); }
[data-theme="light"] .ap-appfoot a:hover, [data-theme="light"] .ap-appfoot button:hover { color: var(--on-chrome); text-decoration-thickness: 2px; }

/* Botones: píldora en negrita; el primario con relieve brillante. */
[data-theme="light"] .btn { font-weight: 700; border-radius: var(--radius-pill); background: var(--surface); border: 2px solid var(--line-strong); }
[data-theme="light"] .btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
[data-theme="light"] .btn-primary { border: 0; background-color: var(--brand); background-image: linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,0) 55%); box-shadow: var(--shadow-button); color: var(--brand-ink, var(--on-brand)); }
[data-theme="light"] .btn-primary:hover { background-color: var(--brand); border: 0; }
[data-theme="light"] .btn-ghost { background: none; border-color: transparent; color: var(--ink); }
[data-theme="light"] .btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
[data-theme="light"] .btn-danger { color: var(--danger); }
[data-theme="light"] .icon-btn { color: var(--ink); }
[data-theme="light"] .icon-btn:hover { background: var(--surface-2); }

/* Paneles: blancos, borde de 2px, esquina redonda y sombra sólida "de calcomanía". */
[data-theme="light"] .card { background: var(--surface); border: 2px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-card); }
[data-theme="light"] .card h2, [data-theme="light"] .manual h3, [data-theme="light"] .doc th { color: var(--ink); font-weight: 700; }
[data-theme="light"] .section { border-top: 2px dashed var(--line); }

/* Campos y controles */
[data-theme="light"] .input, [data-theme="light"] select.input, [data-theme="light"] textarea.input { border-width: 2px; border-radius: 12px; }
[data-theme="light"] .seg { background: var(--surface-2); border: 0; }
[data-theme="light"] .seg button { font-weight: 600; color: var(--ink); }
[data-theme="light"] .seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 2px 0 var(--line-strong); }
[data-theme="light"] .chip { font-weight: 700; background: var(--surface); }
[data-theme="light"] .ap-overline { color: var(--ink); font-weight: 700; }
[data-theme="light"] .ap-stat .ap-overline { color: var(--on-app); }

/* Diálogos, toasts y avisos */
[data-theme="light"] dialog { border: 2px solid var(--line-strong); border-radius: 18px; }
@media (max-width: 600px) { [data-theme="light"] dialog { border-radius: 18px 18px 0 0; border-bottom: 0; } }
[data-theme="light"] dialog::backdrop { background: rgba(43, 20, 4, .45); }
[data-theme="light"] .toast { background: var(--ink); color: var(--surface); border: 0; }
[data-theme="light"] .toast button { color: var(--pop); }
[data-theme="light"] .notice { border-width: 2px; background: var(--surface); }
[data-theme="light"] .donate-reason, [data-theme="light"] .manual-note { background: var(--pop); color: var(--on-yellow); }
[data-theme="light"] .manual-note svg.i { color: var(--on-yellow); }

/* Guías */
[data-theme="light"] .doc > h1, [data-theme="light"] .page > h1, [data-theme="light"] .doc [data-legal] > h1 { font-weight: 800; letter-spacing: -0.03em; color: var(--app-strong); }
[data-theme="light"] .doc > h2, [data-theme="light"] .page > h2 { font-weight: 800; }
[data-theme="light"] .doc .cta, [data-theme="light"] .page .cta { background: var(--pop); color: var(--on-yellow); box-shadow: var(--shadow-card); border-radius: 18px; }
[data-theme="light"] .doc .cta > p, [data-theme="light"] .page .cta > p { color: var(--on-yellow); }
[data-theme="light"] .doc .grid, [data-theme="light"] .page .grid { gap: 2px; background: var(--line-strong); border: 2px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-card); }
[data-theme="light"] .doc .grid a, [data-theme="light"] .page .grid a { background: var(--surface); font-weight: 600; }
[data-theme="light"] .doc .grid a:hover, [data-theme="light"] .page .grid a:hover { background: var(--app-soft); }
[data-theme="light"] .doc table { background: var(--surface); border: 2px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-card); }
[data-theme="light"] .doc .result li { background: var(--surface); border: 2px solid var(--line-strong); }
[data-theme="light"] .sheet-box { box-shadow: var(--shadow-card); border: 2px solid var(--line-strong); }

/* Sección "Cómo funciona" debajo de cada app (la arma npm run seo): lo que leen los buscadores, visible para todos */
.ap-about { border-top: 1px solid var(--line); margin-top: var(--space-6); }
.ap-about__in { max-width: min(var(--col), 720px); margin: 0 auto; padding: var(--space-6) var(--space-4); color: var(--muted); font-size: 15px; line-height: 22px; }
.ap-about h1 { font: 600 20px/28px var(--font-sans); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 12px; }
.ap-about h3 { font: 500 12px/16px var(--font-sans); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin: var(--space-5) 0 8px; }
.ap-about p { margin: 0 0 12px; }
.ap-about ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.ap-about .ap-checks li { color: var(--muted); }
.ap-about__note { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--space-4) !important; }
.ap-about__note svg.i { width: 16px; height: 16px; margin-top: 3px; color: var(--app-strong); flex: none; }
.ap-about__link { display: inline-flex; align-items: center; gap: 6px; color: var(--app-strong); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ap-about__link svg.i { width: 16px; height: 16px; }
.ap-about__apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ap-about__apps a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); }
.ap-about__apps a b { color: var(--ink); font-weight: 500; }
.ap-about__apps a:hover b { color: var(--app-strong); }
[data-theme="light"] .ap-about { border-top: 2px dashed var(--line-strong); }
[data-theme="light"] .ap-about h1 { font-weight: 800; color: var(--app-strong); }
[data-theme="light"] .ap-about h3 { color: var(--ink); font-weight: 700; }
[data-theme="light"] .ap-about__apps a b { font-weight: 700; }
