/* Administración · Analítica y Conexiones */
.an-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.an-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.an-t { font-size: 13px; font-weight: 600; color: var(--fx-text-2); }
.an-v { font-family: var(--fx-font-display); font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--fx-text-1); font-variant-numeric: tabular-nums; }
.an-goal { display: flex; flex-direction: column; gap: 4px; margin: 2px 0; }
.an-bar { height: 6px; border-radius: 3px; background: var(--fx-surface-3); overflow: hidden; }
.an-bar i { display: block; height: 100%; border-radius: 3px; background: var(--fx-accent); }
.an-up { color: var(--fx-success); font-weight: 500; }
.an-down { color: var(--fx-error); font-weight: 500; }
.an-h { margin-top: auto; padding-top: 4px; }
.an-chart { width: 100%; height: auto; max-height: 280px; display: block; margin-top: 6px; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--fx-text-2); }
.an-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.an-goals input { width: 78px; padding: 5px 7px; }
.an-goals input[type=date] { width: 138px; }
.an-events { max-height: 260px; overflow: auto; display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--fx-border); border-radius: var(--fx-radius-md); background: var(--fx-surface-2); }
@media (max-width: 640px) { .an-v { font-size: 26px; } }

/* Embudo de registro y uso de la app */
.em-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr minmax(160px, 1.3fr); gap: 12px; align-items: center; padding: 6px 0; }
.em-lab { font-size: 14px; }
.em-track { position: relative; height: 26px; border-radius: 6px; background: var(--fx-surface-3); overflow: hidden; }
.em-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fx-accent); border-radius: 6px; }
.em-track i.bad { background: var(--fx-error); }
.em-track b { position: relative; padding-left: 10px; line-height: 26px; font-size: 13px; color: var(--fx-text-1); mix-blend-mode: normal; }
.em-diag { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--fx-border); } .em-diag:first-of-type { border-top: 0; }
@media (max-width: 720px) { .em-row { grid-template-columns: 1fr; gap: 4px; } }
