/* ═══ La capa viaja con la hoja ═══════════════════════════════════════════════
   Esta hoja declara su @layer acá adentro, así cae en su capa se cargue como se cargue (lo no capado le
   gana a todo lo capado). El <head> puede usar <link>, paralelo y con el fallo visible en Network, en vez
   de @import, serial y con el fallo en silencio.
   ═══════════════════════════════════════════════════════════════════════════ */
@layer lib {
/* mye-ui.css (headless): la piel de los componentes Mye* estáticos: la lectura (mye-grid, mye-kpi), los
   marcadores honestos y la piel de operación de las pantallas. Por tokens --mx-* (sin colores fijos): entra
   al <head> como capa `lib` vía PreviewKitContribution (AddMyEFUi). */

.mye-card {
  background: var(--mx-color-surface);
  border: 1px solid var(--mx-color-border);
  border-radius: var(--mx-radius-xl, 14px);
  padding: 16px 18px;
}

.mye-muted { color: var(--mx-color-text-muted); font-weight: 400; }

/* ── la grilla estática ─────────────────────────────────────────────────────────────────────── */
.mye-grid__bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.mye-card__title { font-weight: 700; font-size: var(--mx-text-base, 15px); color: var(--mx-color-text); }
.mye-grid__empty { padding: 22px 0; text-align: center; color: var(--mx-color-text-muted); font-size: var(--mx-text-sm, 13px); }
.mye-grid__scroll { overflow-x: auto; }
.mye-table { width: 100%; border-collapse: collapse; font-size: var(--mx-text-sm, 13.5px); }
.mye-table th {
  text-align: left; font-weight: 600; color: var(--mx-color-text-muted);
  padding: 6px 10px; border-bottom: 1px solid var(--mx-color-border);
  white-space: nowrap;
}
.mye-table td { padding: 8px 10px; border-bottom: 1px solid var(--mx-color-border); color: var(--mx-color-text); }
.mye-table tbody tr:last-child td { border-bottom: 0; }

.mye-pill {
  display: inline-block; padding: 1px 10px; border-radius: var(--mx-radius-full, 999px);
  font-size: var(--mx-text-xs, 12px); font-weight: 600;
  border: 1px solid var(--mx-color-border); color: var(--mx-color-text-muted);
}
.mye-pill--si { color: var(--mx-color-primary-dark); border-color: var(--mx-color-primary); }

/* ── el kpi ─────────────────────────────────────────────────────────────────────────────────── */
.mye-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.mye-kpi__value { font-size: var(--mx-text-lg, 28px); font-weight: 800; color: var(--mx-color-primary); line-height: 1.1; }
.mye-kpi__label { font-size: var(--mx-text-sm, 13px); font-weight: 600; color: var(--mx-color-text); }
.mye-kpi__hint { font-size: var(--mx-text-xs, 12px); color: var(--mx-color-text-muted); }

/* ── los marcadores honestos (escritura todavía sin canal) ───────────────────────────────────── */
.mye-placeholder {
  display: flex; flex-direction: column; gap: 6px;
  border-style: dashed;
}
.mye-placeholder__kicker {
  font-size: var(--mx-text-xs, 12px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mx-color-text-muted);
}
.mye-placeholder__title { font-weight: 700; color: var(--mx-color-text); }
.mye-placeholder__body { font-size: var(--mx-text-sm, 13.5px); color: var(--mx-color-text-muted); line-height: 1.5; }
.mye-placeholder__body code { font-family: var(--mx-font-mono, monospace); }

.mye-submit-stub {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px dashed var(--mx-color-border); border-radius: var(--mx-radius-full, 999px);
  font-size: var(--mx-text-sm, 13px); color: var(--mx-color-text-muted); cursor: not-allowed;
}
.mye-submit-stub__why { font-size: var(--mx-text-xs, 12px); }

}

/* The operation skin of screens (.mye-screen) lives in mye-screen.css: the app hosts load it too. */
