/* Fase 9.5 — CSS verbatim de los bloques de estilo de Pages/AdminPlugin/Index-appstore.razor. Igual que hoy, es global mientras el componente está en pantalla:
   se enlaza con <link> donde estaba el bloque. Cambios: @@ → @ y capas D-51. */
.apx-root, .apx-dialog {
    --apx-surface: #fff; --apx-surface2: #faf9f7; --apx-line: #e7e4df; --apx-text: #1f1d1a; --apx-muted: #6f6a63;
    --apx-accent: #E8650A; --apx-accent-soft: #fdeee3; --apx-ok: #1D9E75; --apx-danger: #d64545; --apx-danger-soft: #fdeaea;
    font-family: Figtree, system-ui, "Segoe UI", sans-serif;
    color: var(--apx-text);
}
.apx-root { max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px; }
.apx-root *, .apx-dialog * { box-sizing: border-box; }
.apx-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.apx-top h1 { font-size: 24px; line-height: 1.2; margin: 0; flex: 1; letter-spacing: -.01em; }
.apx-top h1 small { display: block; font-size: 13px; font-weight: 400; color: var(--apx-muted); margin-top: 2px; }

.apx-btn { border: 1px solid var(--apx-line); background: var(--apx-surface); border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14px; color: var(--apx-text); transition: background .15s, border-color .15s; }
.apx-btn:hover { background: var(--apx-surface2); border-color: var(--apx-muted); }
.apx-btn:focus-visible { outline: 2px solid var(--apx-accent); outline-offset: 2px; }
.apx-primary { background: var(--apx-accent); border-color: var(--apx-accent); color: #fff; }
.apx-primary:hover { background: var(--apx-accent); filter: brightness(.92); }
.apx-ok { background: var(--apx-ok); border-color: var(--apx-ok); color: #fff; }
.apx-ok:hover { background: var(--apx-ok); filter: brightness(.92); }
.apx-danger { color: var(--apx-danger); }
.apx-danger:hover { background: var(--apx-danger-soft); border-color: var(--apx-danger); }
.apx-sm { padding: 6px 12px; font-size: 13px; }

.apx-stats { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.apx-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: var(--apx-surface); border: 1px solid var(--apx-line); font-size: 13px; color: var(--apx-muted); }
.apx-chip b { color: var(--apx-text); }
.apx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apx-muted); }
.apx-dot.apx-android { background: #2f9e5b; }
.apx-dot.apx-windows { background: #2b6fd6; }
.apx-dot.apx-cloud { background: #8a52d6; }

.apx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.apx-card { background: var(--apx-surface); border: 1px solid var(--apx-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.apx-card-head { display: flex; gap: 12px; align-items: center; }
.apx-tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; flex: none; }
.apx-card h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.apx-slug { font-size: 12.5px; color: var(--apx-muted); word-break: break-all; }
.apx-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apx-plat { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #eee; color: #555; }
.apx-p-android { background: rgba(47,158,91,.14); color: #2f9e5b; }
.apx-p-windows { background: rgba(43,111,214,.14); color: #2b6fd6; }
.apx-p-cloud { background: rgba(138,82,214,.14); color: #8a52d6; }
.apx-star { font-size: 12.5px; color: var(--apx-accent); font-weight: 600; }
.apx-ver { margin-left: auto; font-size: 13px; color: var(--apx-muted); }
.apx-card-actions { display: flex; gap: 8px; border-top: 1px solid var(--apx-line); padding-top: 12px; }
.apx-card-actions .apx-btn:first-child { flex: 1; }
.apx-empty { color: var(--apx-muted); padding: 24px 0; }

.apx-dialog .e-dlg-header { font-weight: 700; }
.apx-form { display: flex; flex-direction: column; gap: 16px; padding: 4px 2px; }
.apx-sec { border: 1px solid var(--apx-line); border-radius: 12px; padding: 16px 18px; background: var(--apx-surface); }
.apx-sec h4 { margin: 0 0 2px; font-size: 15px; }
.apx-sec > p { margin: 0 0 14px; font-size: 13px; color: var(--apx-muted); }
.apx-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.apx-full { grid-column: 1 / -1; }
.apx-f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--apx-muted); }
.apx-form input:not([type=checkbox]):not([type=color]):not([type=file]), .apx-form select, .apx-form textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--apx-line); border-radius: 9px; background: var(--apx-surface2); color: var(--apx-text); font: inherit; font-weight: 400;
}
.apx-form input:focus, .apx-form select:focus, .apx-form textarea:focus { border-color: var(--apx-accent); outline: none; box-shadow: 0 0 0 3px var(--apx-accent-soft); }
.apx-form textarea { min-height: 76px; resize: vertical; }
.apx-form textarea.apx-short { min-height: 52px; }
.apx-inline { display: flex; gap: 10px; align-items: center; }
.apx-form input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--apx-line); border-radius: 9px; background: var(--apx-surface2); cursor: pointer; }
.apx-check { display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 500; color: var(--apx-text); cursor: pointer; }
.apx-check input { width: 18px; height: 18px; accent-color: var(--apx-accent); }
.apx-drop { display: block; border: 2px dashed var(--apx-line); border-radius: 12px; padding: 18px; text-align: center; color: var(--apx-muted); cursor: pointer; font-size: 14px; }
.apx-drop:hover { border-color: var(--apx-accent); color: var(--apx-accent); }
.apx-drop input { display: none; }
.apx-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.apx-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--apx-line); display: block; }
.apx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.apx-tag { display: inline-flex; gap: 8px; align-items: center; background: var(--apx-accent-soft); border-radius: 99px; padding: 5px 6px 5px 13px; font-size: 13.5px; }
.apx-tag button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: transparent; color: var(--apx-muted); cursor: pointer; line-height: 1; }
.apx-tag button:hover { background: var(--apx-danger-soft); color: var(--apx-danger); }
.apx-vtable { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.apx-vtable th { text-align: left; font-weight: 600; color: var(--apx-muted); padding: 6px 8px; border-bottom: 1px solid var(--apx-line); }
.apx-vtable td { padding: 9px 8px; border-bottom: 1px solid var(--apx-line); vertical-align: top; }
.apx-note { color: var(--apx-muted); font-size: 13.5px; padding-top: 10px; }

@media (max-width: 640px) {
    .apx-fields { grid-template-columns: 1fr; }
    .apx-shots { grid-template-columns: repeat(2, 1fr); }
    .apx-top { flex-wrap: wrap; }
    .apx-top h1 { order: -1; flex-basis: 100%; }
}
