/* ═══════════════════════════════════════════════
   Desarrollo – Product Viewer (Prefórmula)
   Premium dark-theme — HOM-inspired design v4
   ═══════════════════════════════════════════════ */

/* ── Design Tokens → see main.css ────────────── */
/* All --pv-* tokens are defined in main.css */

/* ── Page Container ──────────────────────────────
   Sin tope de ancho: el panel usa todo el espacio disponible.
   Así, al ocultar el menú lateral, el contenido se expande de verdad. */
#pv-panel-preformula {
    padding: 0 var(--pv-page-gutter);
}


/* ── Product Loading Overlay ────────────────── */
#pv-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at 50% 40%, rgba(20, 27, 45, .95) 0%, rgba(12, 17, 32, .98) 50%, rgba(8, 13, 24, .99) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.5s cubic-bezier(.4, 0, .2, 1);
}

@keyframes sv-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .85
    }

    50% {
        transform: scale(1.04);
        opacity: 1
    }
}

@keyframes sv-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: .4
    }

    50% {
        transform: scale(1.06);
        opacity: .7
    }
}

@keyframes sv-orbit {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes sv-progress {
    0% {
        transform: translateX(-100%)
    }

    100% {
        transform: translateX(350%)
    }
}

/* ── Main Tabs (Pill Segmented Control) ───────── */

.pv-main-tabs-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--pv-card-surface);
    backdrop-filter: var(--pv-glass-blur);
    -webkit-backdrop-filter: var(--pv-glass-blur);
    border: 1px solid var(--pv-card-border);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: visible;
    scrollbar-width: none;
    position: relative;
    z-index: 50;
}

/* ── Inline Search inside Tabs Bar ───────────── */

.pv-tabs-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    padding: 2px 4px 2px 8px;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.pv-tabs-search-icon {
    width: 15px;
    height: 15px;
    color: #64748b;
    flex-shrink: 0;
}

.pv-search-input--inline {
    padding: 0.35rem 2rem 0.35rem 0.6rem;
    font-size: 0.82rem;
    background: var(--pv-bg-base);
    border: 1px solid var(--pv-card-border);
    border-radius: 10px;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    outline: none;
    width: 100%;
    transition: border-color 0.25s, box-shadow 0.25s, width 0.3s;
}

.pv-search-input--inline:focus {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.pv-search-input--inline::placeholder {
    color: #475569;
    font-size: 0.78rem;
}

/* ── Editable Field States ──────────────────── */

/* Default: fields keep their look but are not interactive */
.pv-editable {
    cursor: default;
    pointer-events: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Manufacturing-test trace: immutable Prueba Vn -> Formula CC Vm mapping. */
.pv-prueba-empty {
    color: var(--pv-text-muted);
    font-size: 0.78rem;
    font-style: italic;
}

.pv-prueba-trace {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-input-radius);
    background: var(--pv-card-surface);
    color: var(--pv-text-secondary);
    font-size: 0.78rem;
}

.pv-prueba-trace > strong {
    color: var(--pv-text-primary);
}

.pv-prueba-trace ul {
    display: grid;
    gap: 0.4rem;
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
}

.pv-prueba-trace-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

.pv-prueba-trace-item a {
    color: var(--pv-accent-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pv-prueba-trace-status {
    color: var(--pv-text-muted);
}

.pv-prueba-trace-missing {
    color: var(--pv-amber);
}

/* The generic editable reset above removes native appearance from every
   control. Restore it for formula booleans so a persisted Excip. value is
   visibly checked (including while the control is disabled in read mode). */
input[type="checkbox"].pv-bool-input {
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
    accent-color: #f97316;
    pointer-events: none;
}

input[type="checkbox"].pv-bool-input.pv-editing {
    cursor: pointer;
    pointer-events: auto;
}

/* Hide select dropdown arrow when not editing */
select.pv-editable:not(.pv-editing) {
    background-image: none !important;
}

.pv-editable.pv-editing {
    cursor: text;
    pointer-events: auto;
    background: var(--pv-bg-base) !important;
    border-color: rgba(34, 211, 238, 0.35) !important;
    color: var(--pv-text-primary) !important;
}

/* Restore select arrow only in edit mode */
select.pv-editable.pv-editing {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    cursor: pointer;
}

.pv-editable.pv-editing:focus {
    border-color: rgba(34, 211, 238, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.pv-main-tabs-bar::-webkit-scrollbar {
    display: none;
}

.pv-main-tab {
    padding: 0.5rem 1.1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--pv-text-secondary);
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--pv-duration-normal) var(--pv-ease-out),
        background var(--pv-duration-normal) var(--pv-ease-out),
        box-shadow var(--pv-duration-normal) var(--pv-ease-out),
        transform var(--pv-duration-fast) var(--pv-ease-out);
    position: relative;
}

.pv-main-tab:hover {
    color: var(--pv-text-muted);
    background: rgba(148, 163, 184, 0.08);
    transform: translateY(-1px);
}

.pv-main-tab--active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
    transform: translateY(0);
}

.pv-main-tab--active:hover {
    transform: translateY(0);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.15);
}

/* Estado realmente no disponible (por ejemplo, Proy. Etiqueta en un pack).
   La ausencia de producto no usa esta clase: cada panel conserva navegación
   y permite elegir su producto desde el buscador correspondiente. */
.pv-main-tab--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Indicador de estado del hero (paleta monocromática) ──
   El matiz lo da el contraste del texto, no el color: gris tenue (lectura),
   blanco (cambios sin guardar), gris medio (guardado). */
.pv-state {
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 6px;
    white-space: nowrap;
    color: var(--pv-text-muted, #6b7a90);
}

.pv-state:empty {
    display: none;
}

.pv-state .pv-state-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.pv-state--read {
    color: var(--pv-text-muted, #6b7a90);
}

.pv-state--dirty {
    color: var(--pv-text-primary, #e2e8f0);
}

.pv-state--saved {
    color: var(--pv-text-secondary, #8091a7);
}

/* ── Compact Search Bar ───────────────────────── */

.pv-search-bar {
    position: relative;
    z-index: 30;
    background: var(--pv-card-surface);
    backdrop-filter: var(--pv-glass-blur);
    -webkit-backdrop-filter: var(--pv-glass-blur);
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-card-radius);
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.9rem;
    box-shadow: var(--pv-elevation);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.pv-search-bar:focus-within {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: var(--pv-elevation), var(--pv-glow-cyan);
}

.pv-search-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pv-search-icon {
    width: 18px;
    height: 18px;
    color: #64748b;
    flex-shrink: 0;
}

.pv-search-field {
    flex: 1;
    position: relative;
}

.pv-search-input {
    width: 100%;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem;
    background: var(--pv-bg-base);
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-input-radius);
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.pv-search-input:focus {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.pv-search-input::placeholder {
    color: #475569;
    font-size: 0.82rem;
}

.pv-search-chevron {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.15s;
}

.pv-search-chevron:hover {
    color: var(--pv-accent-cyan);
}

/* ── Hero Header ──────────────────────────────── */

.pv-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--pv-text-secondary);
    font-family: var(--pv-font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.pv-back-btn:hover {
    color: var(--pv-accent-cyan);
}

.pv-back-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pv-hero {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--pv-card-surface);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--pv-card-border);
    border-radius: 20px;
    margin-bottom: 0.85rem;
    box-shadow: var(--pv-elevation), var(--pv-glow-cyan);
    overflow: visible;
}

.pv-hero-topbar {
    display: flex;
    align-items: center;
    padding: 0.45rem 1.25rem;
    border-bottom: 1px solid rgba(56, 73, 107, 0.15);
    background: rgba(10, 14, 26, 0.3);
}

/* ── Breadcrumb (resolves @AGENTE3 request) ──── */

.pv-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    font-family: var(--pv-font-ui);
    font-size: 0.75rem;
    color: var(--pv-text-secondary);
    user-select: none;
}

.pv-breadcrumb span {
    transition: color 0.2s;
}

.pv-breadcrumb-separator {
    color: #475569;
    font-size: 0.65rem;
}

.pv-breadcrumb-current {
    color: #94a3b8;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .pv-breadcrumb {
        display: none;
    }
}

.pv-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.25rem 0.85rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pv-hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.pv-hero-title {
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xl);
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.3;
}

.pv-hero-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ── Badges ──────────────────────────────────── */

.pv-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-family: var(--pv-font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pv-badge:empty {
    display: none;
}

.pv-badge--cyan {
    background: rgba(226, 232, 240, 0.10);
    color: var(--pv-text-primary);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-family: var(--pv-font-mono);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pv-badge--purple {
    background: rgba(148, 163, 184, 0.08);
    color: var(--pv-text-muted);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.pv-badge--amber {
    background: rgba(148, 163, 184, 0.06);
    color: var(--pv-text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.pv-badge--green {
    background: rgba(148, 163, 184, 0.08);
    color: var(--pv-text-primary);
    border: 1px solid rgba(148, 163, 184, 0.14);
    font-weight: 700;
}

.pv-data-discrepancy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.62rem;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.38);
    font-family: var(--pv-font-ui);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* El estado calculado por pvRenderFormulaValidationBadge es autoritativo.
   Sin esta regla, el display de la clase puede hacer visible el aviso incluso
   cuando el producto no tiene prueba ni discrepancia registrada. */
.pv-data-discrepancy-badge[hidden] {
    display: none !important;
}

.pv-data-discrepancy-badge .material-symbols-outlined {
    font-size: 0.86rem;
}

.pv-data-discrepancy-badge--compact {
    margin-top: 0.32rem;
    font-size: 0.58rem;
    padding: 0.12rem 0.42rem;
}

/* Legacy status pill (kept for compatibility) */
.pv-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
}

.pv-status-pill[data-status="Activo"] {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.pv-status-pill[data-status="En Desarrollo"] {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.pv-status-pill[data-status="Descontinuado"] {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.pv-status-pill[data-status="Reformulación"] {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Legacy chips (kept for compatibility) */
.pv-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.pv-chip--code {
    font-family: var(--pv-font-mono);
    color: #4ade80;
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.15);
    letter-spacing: 0.02em;
}

.pv-chip:empty {
    display: none;
}

/* ── Hero Action Buttons ──────────────────────── */

.pv-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.pv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--pv-input-radius);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--pv-duration-normal) var(--pv-ease-out);
}

.pv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pv-btn:active {
    transform: translateY(0);
}

/* Materias primas pendientes — alta y ficha de producto */
#pv-panel-nuevo .np-launch-panel--pending {
    border-color: rgba(245, 158, 11, 0.34);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.075), rgba(15, 23, 42, 0.3)),
        var(--pv-card, #101827);
}

.np-pending-materials-empty {
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #7f8da8;
    font-size: 0.78rem;
    text-align: center;
}

.np-pending-materials-empty[hidden] {
    display: none;
}

.np-pending-materials-list {
    display: grid;
    gap: 0.7rem;
}

.np-pending-material-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 0.8fr) minmax(240px, 1.45fr) 34px;
    gap: 0.65rem;
    align-items: end;
    padding: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 13px;
    background: rgba(7, 13, 25, 0.42);
}

.np-pending-material-row .np-field {
    min-width: 0;
}

.np-pending-material-remove {
    margin-bottom: 0.2rem;
}

.np-review-pending-materials,
.pv-pending-materials {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 15px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.095), rgba(15, 23, 42, 0.76)),
        #0e1727;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
}

.np-review-pending-materials[hidden],
.pv-pending-materials[hidden] {
    display: none;
}

.np-review-pending-head,
.pv-pending-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.np-review-pending-head strong,
.pv-pending-head h3 {
    display: block;
    margin: 0.16rem 0 0;
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 750;
}

.pv-pending-head p {
    margin: 0.3rem 0 0;
    color: #a8b5ca;
    font-size: 0.76rem;
}

.pv-pending-eyebrow {
    color: #fbbf24;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.np-review-pending-count,
.pv-pending-count {
    display: inline-grid;
    min-width: 30px;
    height: 30px;
    padding: 0 0.45rem;
    place-items: center;
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
    color: #fcd34d;
    font-size: 0.76rem;
    font-weight: 800;
}

.np-review-pending-list,
.pv-pending-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.np-review-pending-item,
.pv-pending-item {
    padding: 0.72rem 0.78rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 11px;
    background: rgba(6, 11, 22, 0.45);
}

.np-review-pending-item strong,
.pv-pending-item strong {
    display: block;
    color: #e8eef9;
    font-size: 0.8rem;
}

.np-review-pending-item span,
.pv-pending-item span {
    display: block;
    margin-top: 0.18rem;
    color: #fbbf24;
    font-size: 0.66rem;
    font-weight: 700;
}

.np-review-pending-item p,
.pv-pending-item p {
    margin: 0.42rem 0 0;
    color: #a8b5ca;
    font-size: 0.72rem;
    line-height: 1.45;
}

.pv-pending-editor-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.pv-pending-editor-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(165px, 0.8fr) minmax(230px, 1.35fr) 34px;
    gap: 0.65rem;
    align-items: end;
    padding: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    background: rgba(6, 11, 22, 0.42);
}

.pv-pending-editor-row .pv-field-wrap {
    min-width: 0;
}

.pv-pending-remove {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 9px;
    background: rgba(127, 29, 29, 0.12);
    color: #fca5a5;
    cursor: pointer;
}

.pv-pending-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.pv-pending-actions-spacer {
    flex: 1;
}

.pv-pending-btn {
    min-height: 34px;
    padding: 0.42rem 0.72rem;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
}

.pv-pending-btn--quiet {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.58);
    color: #cbd5e1;
}

.pv-pending-btn--save {
    border: 1px solid rgba(34, 211, 238, 0.34);
    background: rgba(8, 145, 178, 0.2);
    color: #67e8f9;
}

.pv-pending-btn:disabled {
    cursor: wait;
    opacity: 0.55;
}

@media (max-width: 900px) {
    .np-pending-material-row,
    .pv-pending-editor-row {
        grid-template-columns: 1fr 1fr 34px;
    }

    .np-pending-material-note,
    .pv-pending-editor-note {
        grid-column: 1 / 3;
    }
}

@media (max-width: 620px) {
    .np-pending-material-row,
    .pv-pending-editor-row {
        grid-template-columns: 1fr 34px;
    }

    .np-pending-material-row > .np-field,
    .pv-pending-editor-row > .pv-field-wrap {
        grid-column: 1;
    }

    .np-pending-material-remove,
    .pv-pending-remove {
        grid-column: 2;
        grid-row: 1;
    }

    .pv-pending-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .pv-pending-actions-spacer {
        display: none;
    }
}

.pv-table-empty-action td {
    padding: 0.25rem 0.75rem 0.85rem;
    text-align: center;
}

.pv-table-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 30%, var(--pv-card-border));
    border-radius: var(--pv-input-radius);
    background: color-mix(in srgb, var(--pv-accent-cyan) 8%, var(--pv-card-surface));
    color: var(--pv-accent-cyan);
    font: inherit;
    font-size: var(--pv-text-sm);
    font-weight: 650;
    cursor: pointer;
    transition: background var(--pv-duration-normal) var(--pv-ease-out),
        border-color var(--pv-duration-normal) var(--pv-ease-out),
        color var(--pv-duration-normal) var(--pv-ease-out);
}

.pv-table-add-btn .material-symbols-outlined {
    font-size: 1rem;
}

.pv-table-add-btn:hover {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 55%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-accent-cyan) 14%, var(--pv-card-surface));
    color: var(--pv-text-primary);
}

.pv-table-add-btn:focus-visible {
    outline: 2px solid var(--pv-accent-cyan);
    outline-offset: 2px;
}

.pv-btn--load {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(100, 116, 139, 0.10));
    color: var(--pv-text-primary);
    border-color: rgba(148, 163, 184, 0.20);
    font-weight: 700;
    padding: 0.5rem 1.3rem;
    border-radius: 12px;
}

.pv-btn--load:hover {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.22), rgba(100, 116, 139, 0.16));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(148, 163, 184, 0.12);
    color: #fff;
}

.pv-btn--load:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pv-btn--nuevo {
    background: rgba(52, 211, 153, 0.10);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.18);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.pv-btn--nuevo:hover {
    background: rgba(52, 211, 153, 0.20);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.15);
    color: #a7f3d0;
}

.pv-btn--edit {
    background: rgba(148, 163, 184, 0.08);
    color: var(--pv-text-primary);
    border-color: rgba(148, 163, 184, 0.18);
}

.pv-btn--edit:hover {
    background: rgba(148, 163, 184, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.pv-btn--market {
    background: rgba(34, 211, 238, 0.08);
    color: var(--pv-accent-cyan);
    border-color: rgba(34, 211, 238, 0.22);
    white-space: nowrap;
}

.pv-btn--market:hover {
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.36);
    color: #a5f3fc;
}

.pv-btn--market:disabled,
.pv-btn--market.is-loading {
    opacity: 0.68;
    cursor: wait;
    pointer-events: none;
}

.pv-btn--save {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.12), rgba(148, 163, 184, 0.08));
    color: var(--pv-text-primary);
    border-color: rgba(148, 163, 184, 0.22);
    font-weight: 700;
    padding: 0.5rem 1.3rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.pv-btn--save::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.pv-btn--save:hover {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.2), rgba(148, 163, 184, 0.14));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.35);
    color: #fff;
}

.pv-btn--save:hover::before {
    opacity: 1;
}

.pv-btn--save:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Saving animation */
.pv-btn--save.is-saving {
    pointer-events: none;
    animation: pv-save-pulse 1.2s ease-in-out infinite;
}

@keyframes pv-save-pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Success flash */
.pv-btn--save.is-saved {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.25), rgba(148, 163, 184, 0.18));
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
    transition: all 0.3s;
}

.pv-btn--cancel {
    background: transparent;
    color: var(--pv-text-muted);
    border-color: rgba(148, 163, 184, 0.12);
}

.pv-btn--cancel:hover {
    background: rgba(148, 163, 184, 0.08);
    color: var(--pv-text-secondary);
    box-shadow: none;
}

.pv-btn--ghost {
    background: transparent;
    color: #64748b;
    border-color: rgba(100, 116, 139, 0.2);
}

.pv-btn--ghost:hover {
    color: #94a3b8;
    background: rgba(100, 116, 139, 0.08);
}

/* ── Approval Button ─────────────────────────── */

.pv-btn--approve {
    display: inline-flex;
    min-width: 112px;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.42rem 0.9rem;
    border-radius: 9px;
    font-weight: 620;
    position: relative;
    overflow: hidden;
    letter-spacing: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pv-approve-icon {
    font-size: 1rem;
    line-height: 1;
}

.pv-btn--approve.pv-btn--draft {
    background: rgba(34, 211, 238, 0.08);
    color: #67e8f9;
    border-color: rgba(34, 211, 238, 0.28);
}

.pv-btn--approve.pv-btn--draft:hover {
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.42);
    color: #cffafe;
}

.pv-btn--approve.pv-btn--approved {
    background: rgba(34, 197, 94, 0.09);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.26);
    cursor: default;
}

.pv-btn--approve.pv-btn--approved,
.pv-btn--approve.pv-btn--approved:hover,
.pv-btn--approve.pv-btn--approved:disabled {
    opacity: 1;
    background: rgba(34, 197, 94, 0.09);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.26);
    box-shadow: none;
}

.pv-btn--approve.pv-btn--loading {
    color: #bae6fd;
    border-color: rgba(59, 130, 246, 0.34);
    background: rgba(59, 130, 246, 0.1);
    cursor: wait;
}

.pv-btn--approve.pv-btn--loading .pv-approve-icon {
    animation: pv-approve-spin 0.8s linear infinite;
}

@keyframes pv-approve-spin {
    to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   Hero — botones sobrios (paleta A aprobada). Scopeado a .pv-hero-actions
   para no afectar los mismos pv-btn--* usados en otras zonas.
   Editar/Cancelar = ghost · Guardar cambios = único con color (azul) ·
   Ver más = quiet · sin "salto" en hover.
   ════════════════════════════════════════════════════════════ */
.pv-hero-actions .pv-btn {
    border-radius: 9px;
    font-weight: 600;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pv-hero-actions .pv-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Editar / Cancelar → ghost sutil */
.pv-hero-actions .pv-btn--edit,
.pv-hero-actions .pv-btn--cancel {
    background: transparent;
    color: var(--pv-text-secondary, #8091a7);
    border-color: var(--pv-card-border, rgba(56, 73, 107, 0.25));
}

.pv-hero-actions .pv-btn--edit:hover,
.pv-hero-actions .pv-btn--cancel:hover {
    background: transparent;
    color: var(--pv-text-primary, #e2e8f0);
    border-color: rgba(148, 163, 184, 0.35);
}

/* Guardar cambios → primario azul (el único elemento con color) */
.pv-hero-actions .pv-btn--market {
    background: rgba(34, 211, 238, 0.08);
    color: var(--pv-accent-cyan, #22d3ee);
    border-color: rgba(34, 211, 238, 0.20);
}

.pv-hero-actions .pv-btn--market:hover {
    background: rgba(34, 211, 238, 0.13);
    color: #a5f3fc;
    border-color: rgba(34, 211, 238, 0.34);
}

.pv-hero-actions .pv-btn--save {
    background: var(--pv-accent, #3b82f6);
    color: #fff;
    border-color: transparent;
    padding: 0.42rem 0.95rem;
    border-radius: 9px;
}

.pv-hero-actions .pv-btn--save::before {
    display: none;
}

.pv-hero-actions .pv-btn--save:hover {
    background: var(--pv-accent-hover, #2563eb);
    border-color: transparent;
    box-shadow: none;
    color: #fff;
}

/* Ver más → quiet (sin borde, tenue) */
.pv-hero-actions .pv-btn--ghost {
    background: transparent;
    color: var(--pv-text-muted, #6b7a90);
    border-color: transparent;
}

.pv-hero-actions .pv-btn--ghost:hover {
    background: transparent;
    color: var(--pv-text-secondary, #8091a7);
}

/* ── Pestañas de sección de la Prefórmula (reemplazan las secciones apiladas) ── */
.pv-sectabs {
    display: flex;
    gap: 4px;
    margin: 0 6px 16px;
    padding: 0 4px;
    border-bottom: 1px solid var(--pv-card-border, rgba(56, 73, 107, 0.25));
    overflow-x: auto;
}

.pv-sectab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--pv-text-secondary, #8091a7);
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.pv-sectab:hover { color: var(--pv-text-primary, #e2e8f0); }
.pv-sectab.on { color: var(--pv-text-primary, #e2e8f0); border-bottom-color: var(--pv-accent, #3b82f6); }

.pv-panel { display: none; }
.pv-panel.on { display: block; }

/* Grupo reubicado (ej. Formulación dentro de la pestaña Fórmula) */
.pv-relocated-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pv-text-muted, #6b7a90);
    font-weight: 600;
    padding: 14px 16px 2px;
}

/* Badge color for Borrador status */
.pv-badge[data-status="Borrador"] {
    background: rgba(234, 179, 8, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.pv-badge[data-status="Aprobado"] {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* ── Dropdown Menu ───────────────────────────── */
.pv-dropdown {
    position: relative;
}

.pv-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: rgba(18, 24, 40, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 50;
}

.pv-dropdown.is-open .pv-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pv-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: var(--pv-text-sm);
    font-family: var(--pv-font-ui);
    color: var(--pv-text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pv-dropdown-item:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--pv-text-primary);
}

/* ── Accordion ────────────────────────────────── */

.pv-accordion {
    background: var(--pv-card-surface);
    backdrop-filter: var(--pv-glass-blur);
    -webkit-backdrop-filter: var(--pv-glass-blur);
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-card-radius);
    margin-bottom: 0.6rem;
    overflow: hidden;
    transition: border-color var(--pv-duration-normal) var(--pv-ease-out),
        box-shadow var(--pv-duration-slow) var(--pv-ease-out),
        transform var(--pv-duration-normal) var(--pv-ease-out);
    position: relative;
    box-shadow: var(--pv-elevation);
}

.pv-accordion::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0.625rem 0 0 0.625rem;
    background: transparent;
    transition: background var(--pv-duration-slow) var(--pv-ease-out);
    z-index: 1;
}

.pv-accordion.is-open::before {
    background: var(--pv-section-color, #3b82f6);
    box-shadow: 0 0 12px var(--pv-section-color, rgba(59, 130, 246, 0.3));
}

.pv-accordion:hover {
    border-color: rgba(56, 73, 107, 0.45);
    transform: translateY(-1px);
}

.pv-accordion.is-open {
    border-color: rgba(56, 73, 107, 0.4);
    box-shadow: var(--pv-elevation), 0 0 30px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

.pv-accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7rem 1.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #e2e8f0;
    transition: background 0.15s;
}

.pv-accordion-header:hover {
    background: rgba(51, 65, 85, 0.12);
}

.pv-accordion-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #e2e8f0;
    flex-shrink: 0;
}

.pv-section-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--pv-text-muted) !important;
    color: transparent !important;
    box-shadow: none;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.pv-accordion.is-open .pv-section-dot {
    opacity: 0.9;
    transform: scale(1.15);
    box-shadow: none;
}

.pv-accordion-summary {
    flex: 1;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 400;
    color: #94a3b8;
    padding: 0 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-accordion-chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #64748b;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pv-accordion.is-open .pv-accordion-chevron {
    transform: rotate(180deg);
}

.pv-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--pv-duration-slow) var(--pv-ease-out),
        opacity var(--pv-duration-normal) var(--pv-ease-out),
        padding var(--pv-duration-slow) var(--pv-ease-out);
    opacity: 0;
    border-top: 1px solid transparent;
}

.pv-accordion.is-open .pv-accordion-body {
    max-height: 2200px;
    opacity: 1;
    overflow: visible;
    border-top-color: rgba(51, 65, 85, 0.3);
}

/* ── Form Labels — Micro Typography ──────────── */

.pv-label {
    display: block;
    font-family: var(--pv-font-ui);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    transition: color 0.2s;
}

div:hover>.pv-label {
    color: rgba(255, 255, 255, 0.65);
}

/* ── Form Inputs — Contained Cards ───────────── */

.pv-input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    background: var(--pv-bg-base);
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-input-radius);
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: 0.9rem;
    font-feature-settings: 'tnum' 1;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
}

/* Read-only fields: strip box chrome — libre como "Vitaglow" */
.pv-input[readonly]:not(.pv-editing) {
    background: transparent;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.pv-select[disabled]:not(.pv-editing) {
    background: transparent;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.pv-input:focus {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
    background: rgba(12, 17, 29, 0.9);
}

.pv-input::placeholder {
    color: #475569;
    font-style: italic;
    font-size: 0.8rem;
}

/* Input variants */
.pv-input--code {
    font-family: var(--pv-font-mono);
    color: #f1f5f9;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.pv-input--mono {
    font-family: var(--pv-font-mono);
    color: #f1f5f9;
    font-size: 0.88rem;
}

.pv-input--money {
    font-family: var(--pv-font-mono);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    font-feature-settings: 'tnum' 1;
    text-align: left;
}

.pv-input--compact {
    padding: 0.3rem 0.5rem;
    font-family: var(--pv-font-mono);
    font-size: 0.86rem;
    text-align: right;
    font-feature-settings: 'tnum' 1;
}

.pv-select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    background: var(--pv-bg-base);
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-input-radius);
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: 0.88rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.pv-select:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

#pv-codigo-empaque-manual[aria-invalid="true"] {
    border-color: var(--pv-amber);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pv-amber) 18%, transparent);
}

.pv-packaging-required-warning {
    display: block;
    margin-top: 0.4rem;
    color: var(--pv-amber-text);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.pv-select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 0.35rem 0.5rem;
}

/* Prueba de fabricación: validación contra la fórmula vigente */
.pv-prueba-validation-content {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pv-prueba-discrepancy-detail {
    color: inherit;
    line-height: 1.45;
}

.pv-prueba-ingredient-list {
    margin: 0.35rem 0 0;
    padding-left: 1.2rem;
}

.pv-prueba-ingredient-list li {
    margin: 0.22rem 0;
}

.pv-prueba-ingredient-code {
    opacity: 0.78;
    font-family: var(--pv-font-mono, monospace);
    font-size: 0.92em;
}

.pv-prueba-validation-actions {
    display: flex;
    justify-content: flex-start;
}

.pv-prueba-revalidate-btn {
    padding: 0.38rem 0.7rem;
    border: 1px solid currentColor;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.28);
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
}

.pv-prueba-revalidate-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.pv-prueba-revalidate-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* ── Nuevo Producto Wizard ───────────────────── */
.np-wizard {
    width: 100%;
    max-width: none;
}

.np-wizard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pv-card-border);
}

.np-eyebrow,
.np-phase-kicker {
    display: inline-flex;
    color: var(--pv-accent-cyan);
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.np-title {
    margin: 0.15rem 0 0;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xl);
    font-weight: 800;
}

.np-subtitle,
.np-phase-head p {
    max-width: 680px;
    margin: 0.3rem 0 0;
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-base);
    line-height: 1.45;
}

.np-progress {
    min-width: 180px;
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    font-weight: 700;
    text-align: right;
}

.np-progress-track {
    width: 100%;
    height: 6px;
    margin-top: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 78%, transparent);
}

.np-progress-track span {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pv-accent), var(--pv-accent-cyan));
    transition: width var(--pv-duration-normal) var(--pv-ease-out);
}

.np-draft-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.5rem;
}

#np-draft-status {
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-xs);
    font-weight: 700;
}

#np-draft-discard {
    border: 0;
    background: transparent;
    color: var(--pv-accent-cyan);
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xs);
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

#np-draft-discard:hover {
    color: var(--pv-text-primary);
    text-decoration: underline;
}

.np-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1.25rem;
}

.np-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 64px;
    padding: 0.75rem;
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-input-radius);
    background: color-mix(in srgb, var(--pv-card-surface) 72%, transparent);
    color: var(--pv-text-secondary);
    text-align: left;
    cursor: pointer;
    transition: transform var(--pv-duration-normal) var(--pv-ease-out),
        border-color var(--pv-duration-normal) var(--pv-ease-out),
        background var(--pv-duration-normal) var(--pv-ease-out);
}

.np-step:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 38%, var(--pv-card-border));
}

.np-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--pv-bg-base);
    color: var(--pv-text-muted);
    font-family: var(--pv-font-mono);
    font-size: var(--pv-text-sm);
    font-weight: 800;
    border: 1px solid var(--pv-card-border);
}

.np-step-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.np-step-copy strong {
    color: var(--pv-text-primary);
    font-size: var(--pv-text-sm);
    line-height: 1.1;
}

.np-step-copy small {
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-xs);
    line-height: 1.2;
}

.np-step.is-active {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 52%, var(--pv-card-border));
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--pv-accent) 14%, var(--pv-card-surface)),
        color-mix(in srgb, var(--pv-accent-cyan) 8%, var(--pv-card-surface)));
    box-shadow: var(--pv-glow-cyan);
}

.np-step.is-active .np-step-num,
.np-step.is-complete .np-step-num {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 55%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-accent-cyan) 16%, var(--pv-bg-base));
    color: var(--pv-text-primary);
}

.np-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.np-phase {
    display: none;
    min-height: 300px;
}

.np-phase.is-active {
    display: block;
    animation: np-phase-in var(--pv-duration-normal) var(--pv-ease-out);
}

@keyframes np-phase-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.np-phase-head {
    margin-bottom: 1.1rem;
}

.np-phase-head h3 {
    margin: 0.15rem 0 0;
    color: var(--pv-text-primary);
    font-size: var(--pv-text-lg);
    font-weight: 800;
}

.np-grid {
    display: grid;
    gap: 1rem;
}

.np-grid + .np-grid {
    margin-top: 1rem;
}

.np-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.np-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.np-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.np-field {
    min-width: 0;
}

.np-inline-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.42fr);
    gap: 0.55rem;
}

.np-preview-banner,
.np-sku-box,
.np-review {
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-input-radius);
    background: color-mix(in srgb, var(--pv-card-surface) 70%, transparent);
}

.np-preview-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    padding: 0.85rem 1rem;
}

.np-preview-banner #np-nombre-preview {
    color: var(--pv-text-primary);
    font-size: var(--pv-text-lg);
    font-weight: 800;
}

.np-sku-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 14px 18px;
}

.np-sku-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.np-sku-info .pv-label { margin: 0; }

.np-sku-box #np-sku-preview {
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
}

.np-sku-note {
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-xs);
    font-weight: 650;
    line-height: 1.35;
}

.np-sku-gen {
    font-family: var(--pv-font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    color: #cfe0ff;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 9px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.np-sku-gen:hover {
    background: rgba(59, 130, 246, 0.24);
    color: #fff;
}

.np-launch {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
}

.np-launch-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px) auto;
    gap: 0.8rem;
    align-items: end;
}

.np-launch-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.np-launch-center > .np-launch-layout {
    order: 1;
}

.np-launch-center > .np-launch-kpis {
    order: 2;
}

.np-launch-center > .np-benchmark-workbench {
    order: 3;
}

.np-benchmark-status {
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--pv-card-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 60%, transparent);
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
    font-weight: 750;
}

.np-benchmark-status.is-loading {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 38%, var(--pv-card-border));
    color: var(--pv-accent-cyan);
}

.np-benchmark-status.is-success {
    border-color: color-mix(in srgb, var(--pv-green-text) 36%, var(--pv-card-border));
    color: var(--pv-green-text);
}

.np-benchmark-status.is-warning {
    border-color: color-mix(in srgb, var(--pv-amber-text) 42%, var(--pv-card-border));
    color: var(--pv-amber-text);
}

.np-benchmark-status.is-error {
    border-color: color-mix(in srgb, var(--pv-red-text) 42%, var(--pv-card-border));
    color: var(--pv-red-text);
}

.np-benchmark-progress {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 30%, var(--pv-card-border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 72%, transparent);
}

.np-benchmark-progress[hidden] {
    display: none;
}

.np-benchmark-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
    font-weight: 650;
}

.np-benchmark-progress-head strong {
    color: var(--pv-accent-cyan);
    font-variant-numeric: tabular-nums;
}

.np-benchmark-progress-track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pv-bg-base) 74%, var(--pv-card-border));
}

.np-benchmark-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pv-accent-cyan), var(--pv-green-text));
    box-shadow: 0 0 18px color-mix(in srgb, var(--pv-accent-cyan) 38%, transparent);
    transition: width 0.45s var(--pv-ease-out);
}

.np-benchmark-progress-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.np-benchmark-progress-channels span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--pv-card-border);
    border-radius: 999px;
    color: var(--pv-text-muted);
    background: rgba(15, 23, 42, 0.52);
    font-size: var(--pv-text-xs);
}

.np-benchmark-progress-channels strong {
    color: var(--pv-text-secondary);
    font-weight: 650;
}

.np-benchmark-progress-channels em {
    color: inherit;
    font-style: normal;
    font-weight: 600;
}

.np-benchmark-progress-channels .is-running {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 45%, var(--pv-card-border));
    color: var(--pv-accent-cyan);
}

.np-benchmark-progress-channels .is-done {
    border-color: color-mix(in srgb, var(--pv-green-text) 42%, var(--pv-card-border));
    color: var(--pv-green-text);
}

.np-benchmark-progress-channels .is-error {
    border-color: color-mix(in srgb, var(--pv-amber-text) 42%, var(--pv-card-border));
    color: var(--pv-amber-text);
}

.np-benchmark-progress.is-success {
    border-color: color-mix(in srgb, var(--pv-green-text) 42%, var(--pv-card-border));
}

.np-benchmark-progress.is-warning {
    border-color: color-mix(in srgb, var(--pv-amber-text) 48%, var(--pv-card-border));
}

.np-benchmark-progress.is-error {
    border-color: color-mix(in srgb, var(--pv-red-text) 48%, var(--pv-card-border));
}

.np-benchmark-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.np-benchmark-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 34px;
    padding: 0.38rem 0.7rem;
    border: 1px solid var(--pv-card-border);
    border-radius: 9px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 68%, transparent);
    color: var(--pv-text-secondary);
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xs);
    font-weight: 750;
    cursor: pointer;
    transition: border-color var(--pv-duration-fast), background var(--pv-duration-fast), color var(--pv-duration-fast);
}

.np-benchmark-tab strong {
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-size: 0.72rem;
    font-weight: 850;
}

.np-benchmark-tab.is-active {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 46%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-accent-cyan) 10%, var(--pv-card-surface-solid));
    color: var(--pv-text-primary);
}

.np-benchmark-tab.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.np-benchmark-workbench {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 18%, var(--pv-card-border));
    border-radius: var(--pv-input-radius);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--pv-card-surface) 82%, transparent),
        color-mix(in srgb, var(--pv-bg-base) 42%, transparent));
}

.np-benchmark-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.np-benchmark-head h4 {
    margin: 0;
    color: var(--pv-text-primary);
    font-size: var(--pv-text-base);
    font-weight: 850;
}

.np-benchmark-head p {
    max-width: 680px;
    margin: 0.25rem 0 0;
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
    line-height: 1.38;
}

.np-benchmark-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.55fr);
    gap: 0.65rem;
    min-width: min(420px, 100%);
}

.np-benchmark-scoreboard {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.np-benchmark-scoreboard > div {
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--pv-card-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 58%, transparent);
}

.np-benchmark-scoreboard span,
.np-benchmark-chart-head span,
.np-benchmark-insight span,
.np-benchmark-formula-head span {
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.np-benchmark-scoreboard strong {
    display: block;
    margin-top: 0.22rem;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.np-benchmark-scoreboard strong.is-positive {
    color: var(--pv-green-text);
}

.np-benchmark-scoreboard strong.is-negative {
    color: var(--pv-red-text);
}

.np-benchmark-scoreboard strong.is-warning {
    color: var(--pv-amber-text);
}

.np-benchmark-scoreboard small {
    display: block;
    margin-top: 0.18rem;
    color: var(--pv-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.np-benchmark-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.np-benchmark-action {
    min-height: 34px;
    padding: 0.42rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 30%, var(--pv-card-border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-accent-cyan) 8%, var(--pv-card-surface-solid));
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xs);
    font-weight: 850;
    cursor: pointer;
    transition: border-color var(--pv-duration-fast), background var(--pv-duration-fast), transform var(--pv-duration-fast);
}

.np-benchmark-action:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 55%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-accent-cyan) 14%, var(--pv-card-surface-solid));
}

.np-benchmark-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.np-benchmark-chart {
    position: relative;
    min-width: 0;
    min-height: 318px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.58rem;
    overflow: hidden;
    padding: 0.92rem;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 88%, transparent);
    border-radius: 8px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--pv-card-surface-solid) 78%, transparent), color-mix(in srgb, var(--pv-bg-base) 46%, transparent)),
        color-mix(in srgb, var(--pv-card-surface-solid) 68%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

.np-benchmark-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.9rem;
    right: 0.9rem;
    height: 1px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pv-accent-cyan) 64%, transparent);
    opacity: 0.7;
}

.np-benchmark-chart--serving::before {
    background: color-mix(in srgb, var(--pv-accent) 70%, transparent);
}

.np-benchmark-chart--cost::before {
    background: color-mix(in srgb, var(--pv-amber-text) 58%, transparent);
}

.np-benchmark-chart--sales::before {
    background: color-mix(in srgb, var(--pv-green-text) 62%, transparent);
}

.np-benchmark-chart--cost {
    min-height: 268px;
}

.np-benchmark-chart--sales {
    min-height: 292px;
}

.np-benchmark-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 28px;
}

.np-benchmark-chart-head strong,
.np-benchmark-formula-head strong {
    color: var(--pv-text-primary);
    font-size: 0.94rem;
    font-weight: 640;
    line-height: 1.2;
}

.np-benchmark-chart-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    max-width: 52%;
    padding: 0.18rem 0.46rem;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 82%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pv-bg-base) 44%, transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-benchmark-chart-body {
    position: relative;
    min-height: 0;
    display: grid;
}

.np-benchmark-chart canvas {
    width: 100% !important;
    height: 286px !important;
    display: block;
}

.np-benchmark-chart--cost canvas {
    height: 238px !important;
}

.np-benchmark-chart-foot {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 0.42rem;
    min-height: 32px;
}

.np-chart-chip {
    min-width: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.36rem;
    max-width: 100%;
    padding: 0.34rem 0.48rem;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 78%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-bg-base) 48%, transparent);
    color: var(--pv-text-primary);
    line-height: 1.05;
}

.np-chart-chip small {
    min-width: 0;
    color: var(--pv-text-muted);
    font-size: 0.66rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.np-chart-chip strong {
    min-width: 0;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: 0.74rem;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-chart-chip.is-accent {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 45%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-accent-cyan) 10%, var(--pv-bg-base));
}

.np-chart-chip.is-positive {
    border-color: color-mix(in srgb, var(--pv-green-text) 42%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-green-text) 8%, var(--pv-bg-base));
}

.np-chart-chip.is-warning {
    border-color: color-mix(in srgb, var(--pv-amber-text) 40%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-amber-text) 8%, var(--pv-bg-base));
}

.np-chart-chip.is-muted {
    opacity: 0.78;
}

.np-benchmark-chart-foot--cost .np-chart-chip {
    flex: 1 1 130px;
    justify-content: space-between;
}

.np-chart-fallback {
    display: grid;
    gap: 0.7rem;
    min-height: 240px;
    align-content: center;
}

.np-chart-fallback p {
    margin: 0;
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
}

.np-chart-bar {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 2fr) minmax(64px, auto);
    align-items: center;
    gap: 0.7rem;
    color: var(--pv-text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.np-chart-bar strong {
    display: block;
    height: 14px;
    min-width: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pv-accent), var(--pv-accent-cyan));
}

.np-chart-bar em {
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-style: normal;
}

.np-modern-chart {
    width: 100%;
    min-height: 224px;
    align-self: stretch;
}

.np-modern-chart--empty {
    display: grid;
    place-items: center;
    min-height: 224px;
    border: 1px dashed color-mix(in srgb, var(--pv-card-border) 86%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--pv-bg-base) 42%, transparent);
}

.np-modern-chart--empty p {
    margin: 0;
    color: var(--pv-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.np-modern-chart--bars {
    display: grid;
    gap: 0.42rem;
    align-content: center;
}

.np-modern-row {
    display: grid;
    grid-template-columns: minmax(128px, 0.9fr) minmax(150px, 1.55fr) minmax(64px, auto);
    align-items: center;
    gap: 0.68rem;
    min-height: 29px;
    padding: 0.18rem 0.28rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background var(--pv-duration-fast) var(--pv-ease-out),
        border-color var(--pv-duration-fast) var(--pv-ease-out);
}

.np-modern-row:hover {
    border-color: color-mix(in srgb, var(--pv-card-border) 88%, transparent);
    background: color-mix(in srgb, var(--pv-card-surface-solid) 48%, transparent);
}

.np-modern-row.is-own {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 28%, transparent);
    background: color-mix(in srgb, var(--pv-accent-cyan) 7%, transparent);
}

.np-modern-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.42rem;
}

.np-modern-rank {
    display: inline-grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 88%, transparent);
    border-radius: 7px;
    color: var(--pv-text-muted);
    background: color-mix(in srgb, var(--pv-bg-base) 52%, transparent);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
}

.np-modern-row.is-leader .np-modern-rank,
.np-modern-row.is-own .np-modern-rank {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 42%, var(--pv-card-border));
    color: var(--pv-accent-cyan);
    background: color-mix(in srgb, var(--pv-accent-cyan) 10%, var(--pv-bg-base));
}

.np-modern-name {
    min-width: 0;
    overflow: hidden;
    color: var(--pv-text-secondary);
    font-size: 0.74rem;
    font-weight: 620;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-modern-row.is-own .np-modern-name,
.np-modern-row.is-leader .np-modern-name {
    color: var(--pv-text-primary);
}

.np-modern-track {
    position: relative;
    height: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 72%, transparent);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(3, 7, 18, 0.82));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.34);
}

.np-modern-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--np-bar-pct, 0%);
    min-width: 8px;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--np-bar-color) 82%, #ffffff 18%), var(--np-bar-color));
    box-shadow: 0 0 16px color-mix(in srgb, var(--np-bar-color) 26%, transparent);
}

.np-modern-marker {
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: var(--np-marker-pct, 0%);
    width: 1px;
    background: rgba(226, 232, 240, 0.55);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.82);
}

.np-modern-value {
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: 0.78rem;
    font-weight: 680;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.np-modern-chart--cost {
    display: grid;
    grid-template-columns: minmax(134px, 0.48fr) minmax(0, 1fr);
    gap: 0.9rem;
    align-content: start;
    align-items: start;
    padding-top: 0.12rem;
}

.np-modern-cost-total {
    display: grid;
    gap: 0.2rem;
    min-height: 132px;
    align-content: center;
    padding: 0.78rem;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 88%, transparent);
    border-radius: 10px;
    background:
        radial-gradient(circle at 18% 14%, rgba(34, 211, 238, 0.12), transparent 42%),
        color-mix(in srgb, var(--pv-bg-base) 52%, transparent);
}

.np-modern-cost-total span,
.np-modern-cost-item em {
    color: var(--pv-text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
}

.np-modern-cost-total strong {
    color: var(--pv-text-primary);
    font-size: 1.32rem;
    font-weight: 680;
    line-height: 1.05;
}

.np-modern-cost-total small {
    color: var(--pv-text-secondary);
    font-size: 0.72rem;
    font-weight: 620;
}

.np-modern-cost-detail {
    display: grid;
    gap: 0.62rem;
    min-width: 0;
}

.np-modern-stack {
    display: flex;
    width: 100%;
    height: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 72%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pv-bg-base) 58%, transparent);
}

.np-modern-stack span {
    display: block;
    min-width: 2px;
    background: var(--np-segment-color);
}

.np-modern-cost-list {
    display: grid;
    gap: 0.28rem;
}

.np-modern-cost-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.48rem;
    min-height: 28px;
    padding: 0.28rem 0.38rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-bg-base) 34%, transparent);
}

.np-modern-cost-item span {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding-left: 0.72rem;
    color: var(--pv-text-secondary);
    font-size: 0.72rem;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-modern-cost-item span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--np-dot-color);
    transform: translateY(-50%);
}

.np-modern-cost-item strong {
    color: var(--pv-text-primary);
    font-size: 0.74rem;
    font-weight: 680;
    white-space: nowrap;
}

.np-benchmark-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
    gap: 0.85rem;
}

.np-benchmark-ingredients {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--pv-card-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 48%, transparent);
}

.np-benchmark-ingredients-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.np-benchmark-ingredients-head strong {
    display: block;
    color: var(--pv-text-primary);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
}

.np-benchmark-ingredients-head span {
    display: block;
    margin-top: 0.18rem;
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.np-benchmark-ingredients-head small {
    flex: 0 0 auto;
    color: var(--pv-text-secondary);
    font-family: var(--pv-font-mono);
    font-size: 0.74rem;
    font-weight: 800;
}

.np-benchmark-own-ingredients {
    display: grid;
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    padding: 0.62rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 22%, var(--pv-card-border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-accent-cyan) 8%, transparent);
}

.np-benchmark-own-ingredients strong {
    color: var(--pv-text-primary);
    font-size: 0.82rem;
    font-weight: 850;
}

.np-benchmark-own-ingredients > div,
.np-benchmark-ingredient-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.np-benchmark-ingredients-list {
    display: grid;
    gap: 0.75rem;
}

.np-benchmark-ingredient-card {
    display: grid;
    gap: 0.72rem;
    min-width: 0;
    padding: 0.82rem;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 78%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-bg-base) 28%, transparent);
    color: var(--pv-text-secondary);
}

.np-benchmark-ingredient-card:first-child {
    border-color: color-mix(in srgb, var(--pv-green-text) 28%, var(--pv-card-border));
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--pv-green-text) 6%, transparent),
        color-mix(in srgb, var(--pv-bg-base) 32%, transparent));
}

.np-benchmark-ingredient-card-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(112px, auto);
    align-items: start;
    gap: 0.65rem;
}

.np-benchmark-ingredient-card-head > * {
    min-width: 0;
}

.np-benchmark-rank {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pv-accent-cyan) 14%, var(--pv-card-surface-solid));
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-size: 0.72rem;
    font-weight: 900;
}

.np-benchmark-ingredient-product {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.np-benchmark-ingredient-product strong {
    color: var(--pv-text-primary);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.np-benchmark-ingredient-product small {
    color: var(--pv-text-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.np-benchmark-ingredient-demand {
    display: grid;
    justify-items: end;
    gap: 0.12rem;
    color: var(--pv-text-secondary);
    text-align: right;
}

.np-benchmark-ingredient-demand span,
.np-benchmark-ingredient-metrics span,
.np-benchmark-ingredient-block-head span {
    color: var(--pv-text-muted);
    font-size: 0.66rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.np-benchmark-ingredient-demand strong {
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-size: 0.9rem;
    font-weight: 900;
}

.np-benchmark-ingredient-demand.is-hot strong {
    color: var(--pv-green-text);
}

.np-benchmark-ingredient-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.np-benchmark-ingredient-metrics > div {
    min-width: 0;
    padding: 0.58rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 72%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 42%, transparent);
}

.np-benchmark-ingredient-metrics strong {
    display: block;
    margin-top: 0.2rem;
    color: var(--pv-text-secondary);
    font-family: var(--pv-font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.np-benchmark-ingredient-block {
    display: grid;
    gap: 0.52rem;
    min-width: 0;
    padding: 0.68rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 18%, var(--pv-card-border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 35%, transparent);
}

.np-benchmark-ingredient-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
}

.np-benchmark-ingredient-block-head small {
    color: var(--pv-text-muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.np-benchmark-ingredient-chips {
    align-items: flex-start;
    gap: 0.42rem;
}

.np-ingredient-chip {
    display: inline-flex;
    max-width: 100%;
    min-height: 26px;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 24%, var(--pv-card-border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-accent-cyan) 8%, transparent);
    color: var(--pv-text-primary);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.np-ingredient-chip.is-own {
    border-color: color-mix(in srgb, var(--pv-green-text) 28%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-green-text) 9%, transparent);
}

.np-ingredient-chip.is-muted {
    border-color: var(--pv-card-border);
    background: color-mix(in srgb, var(--pv-card-surface-solid) 55%, transparent);
    color: var(--pv-text-muted);
}

.np-ingredient-table-wrap {
    overflow-x: auto;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 18%, var(--pv-card-border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--pv-bg-base) 34%, transparent);
}

.np-ingredient-compare-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.np-ingredient-compare-table th,
.np-ingredient-compare-table td {
    min-width: 0;
    padding: 0.42rem 0.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pv-card-border) 72%, transparent);
    color: var(--pv-text-secondary);
    font-size: 0.72rem;
    line-height: 1.22;
    text-align: left;
    vertical-align: middle;
}

.np-ingredient-compare-table thead th {
    background: color-mix(in srgb, var(--pv-card-surface-solid) 78%, transparent);
    vertical-align: top;
}

.np-ingredient-compare-table th:first-child {
    width: 150px;
    color: var(--pv-text-muted);
    font-size: 0.68rem;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0;
}

.np-ingredient-compare-table tbody tr.is-metric th {
    color: var(--pv-text-secondary);
}

.np-ingredient-compare-table tbody tr:hover td,
.np-ingredient-compare-table tbody tr:hover th {
    background: color-mix(in srgb, var(--pv-accent-cyan) 5%, transparent);
}

.np-ingredient-compare-table .is-own {
    background: color-mix(in srgb, var(--pv-accent-cyan) 8%, transparent);
}

.np-ingredient-product-head {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 0.32rem;
    min-height: 34px;
    min-width: 0;
}

.np-ingredient-product-head span {
    display: inline-grid;
    width: 24px;
    height: 22px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 38%, var(--pv-card-border));
    border-radius: 7px;
    color: var(--pv-accent-cyan);
    font-family: var(--pv-font-mono);
    font-size: 0.62rem;
    font-weight: 850;
}

.np-ingredient-product-head strong {
    display: -webkit-box;
    min-width: 0;
    min-height: 1.7rem;
    overflow: hidden;
    color: var(--pv-text-primary);
    font-size: 0.76rem;
    font-weight: 720;
    letter-spacing: 0;
    line-height: 1.12;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.np-ingredient-product-head small {
    grid-column: 2;
    overflow: hidden;
    color: var(--pv-text-muted);
    font-size: 0.62rem;
    font-weight: 720;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-ingredient-table-chip,
.np-ingredient-table-empty {
    display: inline-flex;
    max-width: 100%;
    min-height: 22px;
    align-items: center;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 760;
    line-height: 1.15;
}

.np-ingredient-table-chip {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 28%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-accent-cyan) 8%, transparent);
    color: var(--pv-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-ingredient-table-empty {
    border: 1px solid transparent;
    color: var(--pv-text-muted);
}

.np-benchmark-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.np-benchmark-insight,
.np-benchmark-formula {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--pv-card-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 45%, transparent);
}

.np-benchmark-insight.is-ok {
    border-color: color-mix(in srgb, var(--pv-green-text) 34%, var(--pv-card-border));
}

.np-benchmark-insight.is-warning {
    border-color: color-mix(in srgb, var(--pv-amber-text) 38%, var(--pv-card-border));
}

.np-benchmark-insight.is-risk {
    border-color: color-mix(in srgb, var(--pv-red-text) 38%, var(--pv-card-border));
}

.np-benchmark-insight strong {
    display: block;
    margin-top: 0.22rem;
    color: var(--pv-text-primary);
    font-size: var(--pv-text-sm);
    font-weight: 850;
    line-height: 1.25;
}

.np-benchmark-insight p,
.np-benchmark-empty {
    margin: 0.25rem 0 0;
    color: var(--pv-text-secondary);
    font-size: 0.78rem;
    line-height: 1.38;
}

.np-benchmark-formula-head {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.np-benchmark-formula-list {
    display: grid;
    gap: 0.45rem;
}

.np-benchmark-formula-list > div {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pv-card-border) 75%, transparent);
}

.np-benchmark-formula-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.np-benchmark-formula-list strong {
    color: var(--pv-text-primary);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.22;
}

.np-benchmark-formula-list span {
    color: var(--pv-text-secondary);
    font-size: 0.73rem;
    line-height: 1.28;
}

.np-launch-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.np-launch-kpis > div,
.np-launch-panel,
.np-launch-channel {
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-input-radius);
    background: color-mix(in srgb, var(--pv-card-surface) 70%, transparent);
}

.np-launch-kpis > div {
    min-width: 0;
    padding: 0.85rem 0.95rem;
}

.np-launch-kpis span,
.np-launch-channel-metrics span,
.np-launch-note {
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.np-launch-kpis strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--pv-text-primary);
    font-size: 1rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.np-launch-kpis strong.is-positive { color: var(--pv-green-text); }
.np-launch-kpis strong.is-negative { color: var(--pv-red-text); }

.np-cost-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--pv-card-border) 78%, transparent);
}

.np-cost-breakdown > div {
    min-width: 0;
    padding: 0.72rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 76%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 44%, transparent);
}

.np-cost-breakdown > div.is-total {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 32%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-accent-cyan) 9%, var(--pv-card-surface-solid));
}

.np-cost-breakdown > div.is-margin {
    border-color: color-mix(in srgb, var(--pv-amber-text) 28%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-amber-text) 6%, var(--pv-card-surface-solid));
}

.np-cost-breakdown > div.is-margin.is-positive {
    border-color: color-mix(in srgb, var(--pv-green-text) 34%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-green-text) 8%, var(--pv-card-surface-solid));
}

.np-cost-breakdown > div.is-margin.is-negative {
    border-color: color-mix(in srgb, var(--pv-red-text) 38%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-red-text) 8%, var(--pv-card-surface-solid));
}

.np-cost-breakdown > div.is-margin.is-positive strong {
    color: var(--pv-green-text);
}

.np-cost-breakdown > div.is-margin.is-negative strong {
    color: var(--pv-red-text);
}

.np-cost-breakdown span {
    display: block;
    color: var(--pv-text-muted);
    font-size: 0.66rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.np-cost-breakdown strong {
    display: block;
    margin-top: 0.18rem;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.np-cost-breakdown small {
    display: block;
    margin-top: 0.18rem;
    color: var(--pv-text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
}

.np-launch-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.np-launch-panel {
    min-width: 0;
    padding: 1rem;
}

.np-launch-panel--wide {
    grid-column: 1 / -1;
}

.np-launch-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.np-launch-panel-head h4 {
    margin: 0;
    color: var(--pv-text-primary);
    font-size: var(--pv-text-base);
    font-weight: 850;
}

.np-launch-panel-head p {
    margin: 0.25rem 0 0;
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
    line-height: 1.35;
}

.np-launch-add,
.np-launch-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pv-card-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface-solid) 70%, transparent);
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xs);
    font-weight: 800;
    cursor: pointer;
    transition: border-color var(--pv-duration-fast), background var(--pv-duration-fast);
}

.np-launch-add {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0.45rem 0.65rem;
}

.np-launch-add:hover,
.np-launch-remove:hover {
    border-color: color-mix(in srgb, var(--pv-accent-cyan) 45%, var(--pv-card-border));
    background: color-mix(in srgb, var(--pv-accent-cyan) 10%, var(--pv-card-surface-solid));
}

.np-packaging-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.np-packaging-tools small {
    grid-column: 1 / -1;
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    font-weight: 750;
    line-height: 1.35;
}

.np-launch-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.np-launch-hidden-store {
    display: none !important;
}

.np-launch-table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0 0.4rem;
}

.np-launch-table--materials,
.np-launch-table--packaging {
    min-width: 760px;
    border-spacing: 0 0.55rem;
}

.np-launch-table th {
    padding: 0 0.35rem 0.15rem;
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.np-launch-table td {
    padding: 0 0.35rem;
    vertical-align: middle;
}

.np-launch-table--materials th,
.np-launch-table--packaging th {
    padding-inline: 0.5rem;
}

.np-launch-table--materials td,
.np-launch-table--packaging td {
    padding: 0.08rem 0.5rem 0.16rem;
}

.np-launch-table--materials th:nth-child(1),
.np-launch-table--materials td:nth-child(1) {
    width: 48%;
}

.np-launch-table--materials th:nth-child(2),
.np-launch-table--materials td:nth-child(2),
.np-launch-table--materials th:nth-child(3),
.np-launch-table--materials td:nth-child(3) {
    width: 18%;
}

.np-launch-table--materials th:nth-child(4),
.np-launch-table--materials td:nth-child(4) {
    width: 12%;
}

.np-launch-table--materials th:nth-child(5),
.np-launch-table--materials td:nth-child(5) {
    width: 4%;
}

.np-launch-table--packaging th:nth-child(1),
.np-launch-table--packaging td:nth-child(1) {
    width: 34%;
}

.np-launch-table--packaging th:nth-child(2),
.np-launch-table--packaging td:nth-child(2) {
    width: 19%;
}

.np-launch-table--packaging th:nth-child(3),
.np-launch-table--packaging td:nth-child(3) {
    width: 12%;
}

.np-launch-table--packaging th:nth-child(4),
.np-launch-table--packaging td:nth-child(4) {
    width: 15%;
}

.np-launch-table--packaging th:nth-child(5),
.np-launch-table--packaging td:nth-child(5) {
    width: 15%;
}

.np-launch-table--packaging th:nth-child(6),
.np-launch-table--packaging td:nth-child(6) {
    width: 5%;
}

.np-launch-table .pv-input,
.np-launch-table .pv-select {
    width: 100%;
    min-height: 36px;
    padding: 0.42rem 0.5rem;
    font-size: 0.78rem;
}

.np-launch-table--materials .pv-input,
.np-launch-table--packaging .pv-input,
.np-launch-table--packaging .pv-select {
    min-height: 42px;
    padding: 0.52rem 0.65rem;
    font-size: 0.86rem;
}

.np-launch-table--materials .np-launch-money,
.np-launch-table--packaging .np-launch-money {
    min-width: 96px;
    font-size: 0.82rem;
}

.np-formula-qty-control {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.np-formula-qty-control > [data-material-field="qty"] {
    flex: 1 1 auto;
    width: 0 !important;
    min-width: 48px !important;
}

.np-launch-table--materials .np-formula-unit-select {
    flex: 0 0 68px;
    width: 68px !important;
    min-width: 68px !important;
    padding-inline: 0.42rem;
    font-size: 0.78rem;
    font-weight: 700;
}

#np-launch-materials-body [data-material-field="name"] {
    min-width: 0;
}

#np-launch-materials-body [data-material-field="qty"] {
    min-width: 0;
}

#np-launch-packaging-body [data-packaging-field="name"] {
    min-width: 140px;
}

.np-material-picker,
.np-packaging-picker {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.np-material-meta,
.np-packaging-meta {
    display: block;
    max-width: none;
    margin-top: 0.22rem;
    color: var(--pv-text-muted);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.np-material-meta.has-selection,
.np-packaging-meta.has-selection {
    color: color-mix(in srgb, var(--pv-accent-cyan) 72%, var(--pv-text-secondary));
}

.np-material-equivalence {
    display: block;
    max-width: none;
    margin-top: 0.12rem;
    color: var(--pv-text-muted);
    font-size: 0.69rem;
    font-weight: 650;
    line-height: 1.28;
    white-space: normal;
    overflow-wrap: anywhere;
}

.np-material-equivalence.is-valid {
    color: color-mix(in srgb, var(--pv-accent-cyan) 78%, var(--pv-text-secondary));
}

.np-material-equivalence.is-warning {
    color: color-mix(in srgb, var(--pv-amber-text) 82%, var(--pv-text-secondary));
}

.np-material-equivalence.is-pending,
.np-material-equivalence.is-muted {
    color: var(--pv-text-muted);
}

.np-material-dropdown {
    position: fixed;
    z-index: 99999;
    overflow-y: auto;
    padding: 0.3rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 26%, var(--pv-card-border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-bg-base) 94%, #020617);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
}

.np-material-option {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    text-align: left;
    cursor: pointer;
}

.np-material-option:hover,
.np-material-option:focus {
    background: color-mix(in srgb, var(--pv-accent-cyan) 12%, transparent);
    outline: none;
}

.np-material-option strong {
    color: var(--pv-text-primary);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}

.np-material-option span,
.np-material-empty {
    color: var(--pv-text-secondary);
    font-size: 0.72rem;
    line-height: 1.35;
}

.np-material-empty {
    padding: 0.65rem 0.75rem;
}

#np-launch-competitors-body [data-competitor-field="channel"] {
    min-width: 118px;
}

#np-launch-competitors-body [data-competitor-field="name"] {
    min-width: 180px;
}

#np-launch-competitors-body [data-competitor-field="url"] {
    min-width: 180px;
    min-height: 30px;
    font-size: 0.72rem;
}

#np-launch-competitors-body [data-competitor-field="price"],
#np-launch-competitors-body [data-competitor-field="servings"],
#np-launch-competitors-body [data-competitor-field="monthly_sales"] {
    min-width: 82px;
}

#np-launch-competitors-body [data-competitor-field="actives"] {
    min-width: 220px;
}

.np-competitor-product {
    display: grid;
    gap: 0.28rem;
    min-width: 220px;
}

.np-competitor-pack {
    display: grid;
    grid-template-columns: minmax(76px, 1fr) minmax(82px, 0.72fr);
    gap: 0.35rem;
    min-width: 170px;
}

.np-launch-money {
    min-width: 78px;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-size: var(--pv-text-xs);
    font-weight: 850;
    white-space: nowrap;
}

.np-launch-money.is-positive {
    color: var(--pv-green-text);
}

.np-launch-money.is-negative {
    color: var(--pv-red-text);
}

.np-launch-remove {
    width: 30px;
    height: 30px;
    color: var(--pv-text-secondary);
}

.np-launch-note {
    margin-top: 0.45rem;
    text-transform: none;
    letter-spacing: 0;
}

.np-launch-toggles {
    display: grid;
    gap: 0.35rem;
    align-content: end;
    min-height: 100%;
}

.np-launch-toggles label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
    font-weight: 700;
}

.np-launch-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.np-launch-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.np-launch-channel {
    padding: 0.85rem;
}

.np-launch-channel.is-positive {
    border-color: color-mix(in srgb, var(--pv-green-text) 35%, var(--pv-card-border));
}

.np-launch-channel.is-negative {
    border-color: color-mix(in srgb, var(--pv-red-text) 36%, var(--pv-card-border));
}

.np-launch-channel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid var(--pv-card-border);
}

.np-launch-channel-head span {
    color: var(--pv-text-primary);
    font-size: var(--pv-text-sm);
    font-weight: 850;
}

.np-launch-channel-head strong {
    color: var(--pv-accent-cyan);
    font-family: var(--pv-font-mono);
    font-size: var(--pv-text-sm);
    white-space: nowrap;
}

.np-launch-channel-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.np-launch-channel-metrics div {
    min-width: 0;
}

.np-launch-channel-metrics strong {
    display: block;
    margin-top: 0.16rem;
    color: var(--pv-text-primary);
    font-size: var(--pv-text-sm);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.np-review {
    padding: 1rem;
}

.np-review-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--pv-card-border);
}

.np-review-label,
.np-review-grid span {
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.np-review-main strong {
    color: var(--pv-text-primary);
    font-size: var(--pv-text-xl);
    font-weight: 850;
}

.np-review-main small {
    color: var(--pv-accent-cyan);
    font-family: var(--pv-font-mono);
    font-size: var(--pv-text-sm);
    font-weight: 800;
}

.np-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.np-review-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.np-review-grid strong {
    color: var(--pv-text-primary);
    font-size: var(--pv-text-base);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.np-review-sku-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--pv-card-border);
}

.np-review-sku-action span {
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
    line-height: 1.4;
}

.np-review-preformula {
    margin-top: 1rem;
}

.np-review-preformula .pv-secwrap {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 0;
}

.np-fr-seg--waste,
.np-fr-d--waste {
    background: var(--pv-amber, #f59e0b);
}

.np-review-preformula .fr-hint {
    margin-top: 0;
}

.np-wizard-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pv-card-border);
}

.np-error-msg {
    display: block;
    margin-top: 4px;
    color: var(--pv-red-text);
    font-size: var(--pv-text-xs);
    font-weight: 600;
}

.np-wizard * {
    letter-spacing: 0;
}

.np-wizard .pv-label,
.np-step-copy strong,
.np-step-copy small,
.np-launch-table th,
.np-review-label,
.np-review-grid span,
.np-benchmark-scoreboard span,
.np-benchmark-chart-head span,
.np-benchmark-insight span,
.np-benchmark-formula-head span {
    font-weight: 600;
    text-transform: none;
}

.np-eyebrow,
.np-phase-kicker {
    display: none;
}

.np-title {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 600;
}

.np-subtitle,
.np-phase-head p,
.np-launch-panel-head p,
.np-benchmark-head p {
    max-width: none;
    font-size: var(--pv-text-sm);
    line-height: 1.35;
}

.np-phase-head {
    margin-bottom: 0.85rem;
}

.np-phase-head h3,
.np-launch-panel-head h4,
.np-benchmark-head h4 {
    font-size: var(--pv-text-base);
    font-weight: 600;
}

.np-step {
    min-height: 56px;
    padding: 0.7rem 0.75rem;
}

.np-step-num {
    border-radius: 8px;
    font-weight: 650;
}

.np-form {
    gap: 0.95rem;
}

.np-presentation-phase {
    min-height: 0;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--pv-accent-cyan) 16%, var(--pv-card-border));
    border-left: 2px solid var(--pv-accent-cyan);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pv-card-surface) 72%, transparent);
}

.np-competitive-phase {
    min-height: 0;
}

.np-presentation-phase .np-grid--three {
    grid-template-columns: minmax(220px, 0.9fr) minmax(340px, 1.2fr) 0;
    align-items: end;
}

.np-system-field,
.np-draft-tools[hidden],
.np-review-sku-action[hidden],
#np-review-sku[hidden] {
    display: none !important;
}

.np-launch {
    max-width: none;
    margin-inline: 0;
}

.np-launch-center > .np-benchmark-workbench {
    order: 1;
}

.np-launch-center > .np-launch-layout {
    order: 2;
}

.np-launch-center > .np-launch-kpis {
    display: none;
}

.np-benchmark-workbench,
.np-launch-panel {
    border-radius: 8px;
}

.np-benchmark-head {
    align-items: end;
}

.np-benchmark-scoreboard {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.np-benchmark-scoreboard strong,
.np-review-main strong,
.np-review-grid strong,
.np-cost-breakdown strong,
.np-launch-table .np-money,
.np-launch-table .np-strong {
    font-weight: 700;
}

.np-benchmark-actions {
    flex-wrap: wrap;
}

.np-launch-table {
    min-width: 980px;
}

.np-launch-table--materials,
.np-launch-table--packaging {
    min-width: 900px;
}

.np-review {
    border-radius: 8px;
}

@media (max-width: 960px) {
    .np-wizard-head {
        flex-direction: column;
    }

    .np-progress {
        width: 100%;
        text-align: left;
    }

    .np-draft-tools {
        justify-content: flex-start;
    }

    .np-stepper,
    .np-grid--three,
    .np-grid--four,
    .np-grid--five,
    .np-cost-breakdown,
    .np-launch-kpis,
    .np-launch-price-grid,
    .np-launch-channels,
    .np-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .np-launch-layout {
        grid-template-columns: 1fr;
    }

    .np-presentation-phase .np-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .np-stepper,
    .np-grid--two,
    .np-grid--three,
    .np-grid--four,
    .np-grid--five,
    .np-cost-breakdown,
    .np-launch-toolbar,
    .np-packaging-tools,
    .np-launch-kpis,
    .np-launch-price-grid,
    .np-launch-channels,
    .np-review-grid {
        grid-template-columns: 1fr;
    }

    .np-launch-panel-head {
        flex-direction: column;
    }

    .np-review-sku-action {
        align-items: stretch;
        flex-direction: column;
    }

    .np-launch-add {
        width: 100%;
    }

    .np-inline-fields {
        grid-template-columns: 1fr;
    }

    .np-presentation-phase .np-grid--three {
        grid-template-columns: 1fr;
    }

    .np-wizard-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .np-wizard-actions .pv-btn {
        flex: 1 1 140px;
        justify-content: center;
    }
}

/* Edit mode */
.pv-editable.pv-editing {
    border-color: rgba(34, 197, 94, 0.5) !important;
    background: rgba(34, 197, 94, 0.06) !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.08) !important;
}

/* ── Row Separators ──────────────────────────── */

.pv-row-separator {
    border-top: 1px solid rgba(51, 65, 85, 0.2);
    padding-top: 0.75rem;
    margin-top: 0.15rem;
}

/* ── Price Row — Ghost Card Grid ────────────── */

.pv-price-accent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0;
    margin-top: 0.1rem;
    background: transparent;
    border: none;
    border-radius: 0;
}

.pv-price-accent>div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pv-price-accent .pv-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-size: 11px;
}

.pv-price-accent .pv-input--money {
    padding: 0;
}

/* ── Channel Icons & Marketplace‑Branded Labels ── */

.pv-channel-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    filter: grayscale(1) brightness(0.8);
    opacity: 0.9;
    transition: opacity 0.2s, filter 0.3s;
}

div:hover>.pv-label--channel .pv-channel-icon {
    opacity: 1;
    filter: none;
}

.pv-label--channel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Marketplace-accent input borders — removed for Ghost Card pattern */
.pv-input--ml {
    border-left: none;
}

.pv-input--ml:focus {
    border-left-color: #FFE600;
    box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.08), inset 0 0 12px rgba(255, 230, 0, 0.03);
}

.pv-input--amz {
    border-left: none;
}

.pv-input--amz:focus {
    border-left-color: #FF9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.08), inset 0 0 12px rgba(255, 153, 0, 0.03);
}

.pv-input--web {
    border-left: none;
}

.pv-input--web:focus {
    border-left-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08), inset 0 0 12px rgba(59, 130, 246, 0.03);
}

/* ── Ficha Resumen Tables ────────────────────── */

.fr-table-wrap {
    border: 1px solid rgba(51, 65, 85, 0.45);
    border-radius: 0.4rem;
    overflow: hidden;
}

.fr-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.fr-table {
    width: 100%;
    border-collapse: collapse;
}

.fr-th {
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(51, 65, 85, 0.45);
    text-align: left;
}

.fr-th--right {
    text-align: right;
}

.fr-th--center {
    text-align: center;
}

.fr-td {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(51, 65, 85, 0.15);
    vertical-align: middle;
}

.fr-td--right {
    text-align: right;
}

.fr-td--center {
    text-align: center;
}

.fr-td--mono {
    font-family: var(--pv-font-mono);
    text-align: right;
    color: #f1f5f9;
}

.fr-td--money {
    font-family: var(--pv-font-mono);
    text-align: right;
    color: #10B981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.12);
}

/* Row striping */
.fr-row:nth-child(even) {
    background: rgba(15, 23, 42, 0.2);
}

.fr-row:hover {
    background: rgba(59, 130, 246, 0.03);
}

/* Total row */
.fr-row--total {
    background: rgba(15, 23, 42, 0.5) !important;
    border-top: 2px solid rgba(51, 65, 85, 0.5);
}

.fr-row--total .fr-td {
    font-weight: 700;
    color: #f1f5f9;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.fr-row--total .fr-td--money {
    color: #10B981;
    font-size: 0.88rem;
}

/* Cost per capsule highlight — hidden (now shown as KPI card) */
.fr-row--highlight {
    display: none;
}

/* ── Financial Table ──────────────────────────── */

.pv-fin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pv-fin-th {
    padding: 0.5rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid rgba(55, 65, 81, 0.35);
    text-align: left;
}

.pv-fin-th--right {
    text-align: right;
}

.pv-fin-row {
    transition: background 0.1s;
}

.pv-fin-row:hover {
    background: rgba(59, 130, 246, 0.03);
}

.pv-fin-td {
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(55, 65, 81, 0.15);
    vertical-align: middle;
}

.pv-fin-td--right {
    text-align: right;
}

.pv-channel-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.pv-fin-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 0.65rem 0;
    border-top: 2px solid rgba(55, 65, 81, 0.35);
    margin-top: 0.35rem;
}

.pv-fin-footer-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pv-fin-footer-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.pv-fin-footer-value {
    font-family: var(--pv-font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.pv-fin-footer-value--accent {
    color: #10B981;
}

/* ── Data Tables (MP/ME) — responsive + sticky ── */

.pv-data-table-wrap {
    position: relative;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 13px;
    background: rgba(20, 26, 40, 0.42);
    /* Ultra-thin custom scrollbar (dark mode) */
    scrollbar-width: thin;
    scrollbar-color: #334155 #1e293b;
}

.pv-data-table-wrap::-webkit-scrollbar {
    height: 4px;
}

.pv-data-table-wrap::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 2px;
}

.pv-data-table-wrap::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 2px;
}

.pv-data-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Scroll hint gradient on right edge */
.pv-data-table-wrap::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--pv-card-surface-solid));
    z-index: 3;
    display: block;
    float: right;
    height: 100%;
    margin-top: -100%;
}

/* Celdas editables dentro de las tablas (cantidad / UM):
   texto plano en lectura, cuadro solo en edición — coherente con el resto. */
.pv-inline-edit {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #cbd5e1;
    font-size: 11px;
    padding: 2px 4px;
    font-family: var(--pv-font-mono);
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s, background 0.15s;
}
.pv-inline-num { text-align: right; }
.pv-inline-um {
    color-scheme: dark;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    cursor: default;
}
select.pv-inline-um option {
    background-color: #111827;
    color: #f1f5f9;
}
select.pv-inline-um option:checked {
    background-color: #1d4ed8;
    color: #ffffff;
}
.pv-inline-edit.pv-editing {
    border-color: var(--pv-card-border);
    background: rgba(255, 255, 255, 0.03);
}
select.pv-inline-um.pv-editing { cursor: pointer; }
.pv-inline-edit.pv-editing:focus {
    outline: none;
    border-color: var(--pv-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.pv-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.pv-data-table thead {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Column group header row — sobrio y uniforme (sin colores por grupo) */
.pv-data-table .pv-colgroup-row th {
    padding: 0.3rem 0.4rem;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    color: var(--pv-text-3, #5e6c84);
    background: rgba(255, 255, 255, 0.012);
    border-bottom: 1px solid var(--pv-card-border-soft, rgba(56, 73, 107, 0.16));
    white-space: nowrap;
}

.pv-colgroup--id {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.05);
}

.pv-colgroup--price {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.04);
}

.pv-colgroup--cost {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.04);
}

.pv-colgroup--pres {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.04);
}

.pv-colgroup--ctrl {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.04);
}

/* Individual column headers */
.pv-data-table th {
    padding: 0.4rem 0.45rem;
    font-family: var(--pv-font-ui);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pv-text-secondary);
    border-bottom: 1px solid var(--pv-card-border);
    white-space: nowrap;
    text-align: left;
}

.pv-data-table td {
    padding: 0.35rem 0.45rem;
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-sm);
    color: #cbd5e1;
    border-bottom: 1px solid rgba(56, 73, 107, 0.12);
    white-space: nowrap;
    vertical-align: middle;
}

/* Numeric cells: monospaced with tabular numbers */
.pv-data-table td.pv-cell-mono {
    font-family: var(--pv-font-mono);
    font-feature-settings: 'tnum' 1;
}

/* Money cells in tables — muted neutral (non-editable look) */
.pv-data-table td.pv-cell-money {
    font-family: var(--pv-font-mono);
    font-feature-settings: 'tnum' 1;
    color: #cbd5e1;
}

.pv-data-table tbody tr {
    transition: background 0.15s, box-shadow 0.15s;
}

.pv-data-table tbody tr:hover {
    background: rgba(34, 211, 238, 0.04);
    box-shadow: inset 3px 0 0 var(--pv-accent-cyan);
}

.pv-data-table tbody tr:nth-child(even) {
    background: rgba(12, 17, 29, 0.3);
}

.pv-data-table tbody tr:nth-child(even):hover {
    background: rgba(34, 211, 238, 0.05);
    box-shadow: inset 3px 0 0 var(--pv-accent-cyan);
}

/* Column group separators */
.pv-data-table .pv-group-sep {
    border-left: 1px solid rgba(56, 73, 107, 0.4);
}

/* Sticky first columns */
.pv-data-table .pv-sticky-col {
    position: sticky;
    z-index: 1;
    background: var(--pv-card-surface-solid);
}

.pv-data-table .pv-sticky-col-0 {
    left: 0;
}

.pv-data-table .pv-sticky-col-1 {
    left: var(--pv-col0-width, 64px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

/* Footer total row */
.pv-data-table .pv-table-footer td {
    border-top: 2px solid var(--pv-card-border);
    font-weight: 700;
    padding: 0.5rem;
    color: var(--pv-text-primary);
}

/* ── Modo de Empleo section ──────────────────── */

#pv-modo-empleo-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#pv-modo-empleo-container .pv-label {
    margin-bottom: 0.4rem;
}

/* Selects inside modo-empleo need proper z-index so they don't clip */
#pv-modo-empleo-container select,
#pv-modo-empleo-container .pv-select {
    position: relative;
    z-index: 5;
}

/* Momento selects list */
#pv-modo-momentos-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pv-modo-momento-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#pv-modo-empleo-container .pv-modo-momento-label {
    color: var(--pv-text-secondary);
    font-size: 0.72rem;
    margin: 0;
}

#pv-modo-momentos-list select {
    font-size: 0.84rem;
}

/* Preview box */
.modo-preview-box {
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--pv-input-radius);
    padding: 1rem 1.15rem;
    background: rgba(245, 158, 11, 0.04);
    margin-top: 0.35rem;
}

.modo-preview-box .pv-label {
    color: #f59e0b;
    font-size: 0.68rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modo-preview-box .pv-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

#pv-modo-preview {
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin: 0;
}

/* Row containers inside modo-empleo */
.modo-row {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.modo-row--2 {
    grid-template-columns: 1fr 1fr;
}

.modo-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {

    .modo-row--2,
    .modo-row--3 {
        grid-template-columns: 1fr;
    }
}

/* Custom vehicle / custom margin wrappers */
#pv-modo-vehiculo-custom-wrap,
#pv-modo-margen-custom-wrap {
    transition: opacity 0.2s;
}

/* Hint text below custom inputs */
.modo-hint {
    font-size: var(--pv-text-xs);
    color: #64748b;
    margin-top: 0.25rem;
    font-style: italic;
}

/* ── Focus Rings (Accessibility) ─────────────── */
.pv-input:focus-visible,
.pv-select:focus-visible,
.pv-btn:focus-visible,
.pv-main-tab:focus-visible,
.pv-gtab:focus-visible,
.pv-accordion-header:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.5);
    outline-offset: 2px;
}

/* ── Responsive — Tablet (768–1024px) ────────── */
@media (max-width: 1024px) {
    #pv-panel-preformula {
        padding: 0 1rem;
    }

    .pv-hero-main {
        padding: 0.6rem 1rem 0.75rem;
        gap: 0.75rem;
    }

    .pv-hero-title {
        font-size: var(--pv-text-lg);
    }

    .pv-hero-badges {
        gap: 0.3rem;
    }

    .pv-badge {
        font-size: 0.62rem;
        padding: 0.1rem 0.45rem;
    }

    .pv-hero-actions {
        gap: 0.3rem;
    }

    .pv-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.72rem;
    }

    .pv-accordion-header {
        padding: 0.6rem 0.9rem;
    }

    .pv-accordion-label {
        font-size: var(--pv-text-xs);
    }

    .pv-search-bar {
        padding: 0.5rem 0.7rem;
    }
}

/* ── Channel Icons & Marketplace‑Branded Labels ── */

.pv-channel-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    border-radius: 2px;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}

div:hover>.pv-label--channel .pv-channel-icon {
    opacity: 1;
    transform: scale(1.1);
}

.pv-label--channel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Marketplace-accent input borders */
.pv-input--ml {
    border-left: 3px solid rgba(255, 230, 0, 0.35);
}

.pv-input--ml:focus {
    border-left-color: #FFE600;
    box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.08), inset 0 0 12px rgba(255, 230, 0, 0.03);
}

.pv-input--amz {
    border-left: 3px solid rgba(255, 153, 0, 0.35);
}

.pv-input--amz:focus {
    border-left-color: #FF9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.08), inset 0 0 12px rgba(255, 153, 0, 0.03);
}

.pv-input--web {
    border-left: 3px solid rgba(59, 130, 246, 0.35);
}

.pv-input--web:focus {
    border-left-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08), inset 0 0 12px rgba(59, 130, 246, 0.03);
}

/* ── Responsive — Small Tablet / Large Phone ── */
@media (max-width: 768px) {
    .pv-main-tabs-bar {
        border-radius: 10px;
        gap: 2px;
        padding: 3px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pv-main-tabs-bar::-webkit-scrollbar {
        display: none;
    }

    /* Right-edge fade hint for scroll */
    .pv-main-tabs-bar-wrap {
        position: relative;
    }

    .pv-main-tabs-bar-wrap::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, var(--pv-bg-base));
        pointer-events: none;
        border-radius: 0 10px 10px 0;
        z-index: 51;
        opacity: 0.8;
    }

    .pv-tabs-search {
        width: 100%;
        padding: 4px 6px;
        border-top: 1px solid var(--pv-card-border);
        margin-left: 0;
    }

    .pv-main-tab {
        padding: 0.4rem 0.8rem;
        font-size: var(--pv-text-xs);
    }

    .pv-hero {
        border-radius: 14px;
    }

    .pv-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .pv-hero-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .pv-accordion {
        border-radius: 12px;
    }

    .fr-table-wrap {
        overflow-x: auto;
    }
}

/* ═══════════════════════════════════════════════
   Premium UI Enhancements
   ═══════════════════════════════════════════════ */

/* ── Hover-reveal edit icon ─────────────────── */
.pv-edit-hint {
    opacity: 0;
    transition: opacity 0.15s ease;
    font-size: 9px;
    color: #f97316;
    margin-left: 3px;
    pointer-events: none;
}

tr:hover .pv-edit-hint,
.pv-mat-search-cell:hover .pv-edit-hint {
    opacity: 1;
}

/* ── Read-only inputs → Label-value pattern ──── */
.pv-input.pv-editable:not(.pv-editing) {
    background: transparent;
    border-color: transparent;
    padding-left: 0;
    cursor: default;
    box-shadow: none;
}

.pv-input.pv-editable:not(.pv-editing):hover {
    border-color: transparent;
    box-shadow: none;
}

.pv-input.pv-editable:not(.pv-editing):focus {
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

/* Restore borders in edit mode */
.pv-input.pv-editable.pv-editing {
    background: var(--pv-card-surface-solid);
    border-color: rgba(56, 73, 107, 0.4);
}

/* ── Modern Group Tabs (underline style) ─────── */
.pv-gtab {
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.pv-gtab--active {
    background: transparent;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    box-shadow: none;
}

.pv-gtab--active:hover {
    background: transparent;
}

/* ═══════════════════════════════════════════════════════════
   MOTIVO ÚNICO — tarjeta con punto + encabezado.
   Se reutiliza en las 4 pestañas (Descripción, Fórmula,
   Envase, Resumen) para lograr consistencia visual.
   ═══════════════════════════════════════════════════════════ */
.pv-desc { padding: 0.2rem 0.1rem 0.3rem; }

/* contenedor de tarjetas */
.pv-pcards { display: grid; gap: 16px; align-items: start; }
.pv-pcards--two { grid-template-columns: 1fr 1fr; }

/* separador + subtítulo internos (bloque combinado Identificación/Etiquetado) */
.pv-subsep { border-top: 1px solid rgba(255, 255, 255, 0.05); margin: 16px 0 14px; }
.pv-subh {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pv-font-ui);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pv-text-4, #4a566c);
    font-weight: 600;
    margin-bottom: 12px;
}
.pv-subh::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--pv-cyan, #22d3ee);
    opacity: 0.7;
    flex: none;
}

/* envoltura sección (parámetros + tabla) */
.pv-secwrap { padding: 0.2rem 0.1rem 0.3rem; }

/* la tarjeta */
.pv-pcard {
    background: rgba(20, 26, 40, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 13px;
    padding: 15px 20px 17px;
}
.pv-pcard + .pv-subhead-row { margin-top: 18px; }
/* Modo de empleo dentro de una tarjeta: sin doble padding y filas a 2 columnas. */
.pv-pcard #pv-modo-empleo-container { padding: 0; }
.pv-pcard .modo-row { grid-template-columns: 1fr 1fr; gap: 15px 22px; margin-bottom: 15px; align-items: start; }
.pv-pcard #pv-modo-empleo-container > .modo-row:last-of-type { margin-bottom: 18px; }

/* encabezado con punto */
.pv-pcard-h {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--pv-font-ui);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pv-text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}
.pv-pcard-h::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--pv-accent);
    opacity: 0.7;
    flex: none;
}

/* grid clave→valor dentro de la tarjeta */
.pv-pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 22px; }
.pv-pgrid--three { grid-template-columns: 1fr 1fr 1fr; }
.pv-pg-item { min-width: 0; }
.pv-pg-item--full { grid-column: 1 / -1; }

/* clave en sentencia (no mayúsculas) y valor pegado en lectura */
.pv-pcard .pv-label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.69rem;
    font-weight: 450;
    color: var(--pv-text-secondary);
    margin-bottom: 5px;
}
.pv-pcard .pv-input,
.pv-pcard .pv-select { font-size: 0.88rem; }
.pv-pcard .pv-input[readonly]:not(.pv-editing),
.pv-pcard .pv-select[disabled]:not(.pv-editing) {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.3;
}

/* subtítulo de sección (Materias primas / Materiales) */
.pv-subhead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}
.pv-subhead {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--pv-font-ui);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pv-text-3, #5e6c84);
    font-weight: 600;
}
.pv-subhead::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--pv-accent);
    opacity: 0.7;
    flex: none;
}
.pv-subhead .pv-subhead-meta {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--pv-text-4, #4a566c);
}

/* tarjeta que envuelve una tabla */
.pv-tcard {
    background: rgba(20, 26, 40, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 13px;
    overflow: hidden;
}

/* ── Resumen de costos ── */
.pv-pcards--cost { grid-template-columns: minmax(300px, 0.9fr) 1.1fr; }
.fr-total {
    font-family: var(--pv-font-mono);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #eef4ff;
    margin: 2px 0 14px;
    font-variant-numeric: tabular-nums;
}
.fr-total .fr-cur { font-size: 0.5em; vertical-align: 0.55em; margin-right: 2px; font-weight: 500; }
.fr-bar { display: flex; height: 7px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, 0.05); margin-bottom: 14px; gap: 2px; }
.fr-seg { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.fr-seg--mp { background: var(--pv-accent); }
.fr-seg--env { background: var(--pv-cyan, #22d3ee); }
.fr-legend { display: flex; flex-direction: column; gap: 10px; }
.fr-lg { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--pv-text-secondary); }
.fr-d { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.fr-d--mp { background: var(--pv-accent); }
.fr-d--env { background: var(--pv-cyan, #22d3ee); }
.fr-lg-v { margin-left: auto; font-family: var(--pv-font-mono); color: var(--pv-text-primary); font-variant-numeric: tabular-nums; font-size: 0.83rem; }
.fr-lg-pct { font-family: var(--pv-font-mono); color: var(--pv-text-4, #4a566c); font-size: 0.75rem; width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.fr-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.fr-foot-l { font-size: 0.78rem; color: var(--pv-text-3, #5e6c84); }
.fr-foot-v { font-family: var(--pv-font-mono); font-size: 0.92rem; font-weight: 600; color: var(--pv-text-primary); font-variant-numeric: tabular-nums; }
.fr-spec { font-size: 0.95rem; color: var(--pv-text-primary); font-weight: 500; }
.fr-spec--mono { font-family: var(--pv-font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fr-hint { color: var(--pv-text-4, #4a566c); font-size: 0.76rem; text-align: center; margin-top: 18px; }

@media (max-width: 760px) {
    .pv-pcards--two { grid-template-columns: 1fr; }
    .pv-pcards--cost { grid-template-columns: 1fr; }
    .pv-pgrid--three { grid-template-columns: 1fr 1fr; }
}

/* ── KPI Trophy Card (Costo por Cápsula) ─────── */
.pv-kpi-trophy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.06);
}

.pv-kpi-trophy-label {
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-sm);
    font-weight: 600;
    color: var(--pv-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pv-kpi-trophy-label::before {
    content: '💊';
    font-size: 1.1rem;
}

.pv-kpi-trophy-value {
    font-family: var(--pv-font-mono);
    font-size: var(--pv-text-2xl);
    font-weight: 700;
    color: #10B981;
    letter-spacing: -0.02em;
    text-shadow: 0 0 24px rgba(16, 185, 129, 0.15);
    font-feature-settings: 'tnum' 1;
}

/* ── Micro progress bars in cost breakdown ───── */
.fr-bar-cell {
    position: relative;
    overflow: hidden;
}

.fr-bar-cell::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--bar-pct, 0%);
    background: currentColor;
    opacity: 0.07;
    border-radius: 0 3px 3px 0;
    pointer-events: none;
    transition: width 0.4s var(--pv-ease-out);
}

/* ── Reduced Motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Catalog Skeleton Loading ──────────────────── */
.pv-catalog-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 1rem 0;
}

.pv-catalog-skeleton-card {
    height: 110px;
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-card-radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pv-catalog-skeleton-card .skel-line {
    height: 12px;
    border-radius: 6px;
}

.pv-catalog-skeleton-card .skel-line--title {
    width: 70%;
    height: 14px;
}

.pv-catalog-skeleton-card .skel-line--sku {
    width: 40%;
}

.pv-catalog-skeleton-card .skel-line--meta {
    width: 55%;
    margin-top: auto;
}

@media (max-width: 1180px) {
    .np-benchmark-head {
        display: grid;
    }

    .np-benchmark-bottom {
        grid-template-columns: 1fr;
    }

    .np-benchmark-scoreboard,
    .np-benchmark-charts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .np-benchmark-insights {
        grid-template-columns: 1fr;
    }

    .np-benchmark-ingredient-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .np-benchmark-controls,
    .np-benchmark-scoreboard,
    .np-benchmark-charts,
    .np-benchmark-bottom {
        grid-template-columns: 1fr;
    }

    .np-benchmark-own-ingredients {
        grid-template-columns: 1fr;
    }

    .np-benchmark-ingredients {
        padding: 0.75rem;
    }

    .np-benchmark-ingredients-head {
        display: grid;
    }

    .np-benchmark-ingredients-head small {
        justify-self: start;
    }

    .np-benchmark-ingredient-card {
        padding: 0.72rem;
    }

    .np-benchmark-ingredient-card-head {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .np-benchmark-ingredient-demand {
        grid-column: 1 / -1;
        justify-items: start;
        padding-left: 38px;
        text-align: left;
    }

    .np-benchmark-ingredient-block-head {
        display: grid;
        gap: 0.15rem;
    }

    .np-benchmark-chart {
        min-height: 320px;
        padding: 0.85rem;
    }

    .np-benchmark-chart canvas {
        height: 290px !important;
    }

    .np-benchmark-chart--cost canvas {
        height: 270px !important;
    }

    .np-modern-row {
        grid-template-columns: minmax(112px, 0.92fr) minmax(120px, 1.35fr) auto;
        gap: 0.48rem;
    }

    .np-modern-chart--cost {
        grid-template-columns: 1fr;
    }

    .np-modern-cost-total {
        min-height: 92px;
    }
}

/* Nuevo producto: app implementation aligned to HTML prototype */
#pv-panel-nuevo .pv-tab-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#pv-panel-nuevo .np-wizard {
    display: grid;
    gap: 1rem;
    max-width: none;
}

#pv-panel-nuevo .np-wizard *,
#pv-panel-nuevo .np-wizard .pv-input,
#pv-panel-nuevo .np-wizard .pv-select,
#pv-panel-nuevo .np-wizard button {
    font-family: var(--pv-font-ui);
    letter-spacing: 0;
}

#pv-panel-nuevo .np-wizard-head,
#pv-panel-nuevo .np-phase.is-active,
#pv-panel-nuevo .np-wizard-actions {
    border: 1px solid color-mix(in srgb, var(--pv-card-border) 86%, transparent);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(16, 24, 39, 0.94), rgba(12, 18, 31, 0.94));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

#pv-panel-nuevo .np-wizard-head {
    align-items: center;
    margin: 0;
    padding: 1.12rem 1.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pv-card-border) 86%, transparent);
}

#pv-panel-nuevo .np-eyebrow,
#pv-panel-nuevo .np-phase-kicker {
    display: none;
}

#pv-panel-nuevo .np-title {
    margin: 0;
    color: var(--pv-text-primary);
    font-size: clamp(1.34rem, 2.05vw, 1.72rem);
    font-weight: 560;
    line-height: 1.12;
}

#pv-panel-nuevo .np-subtitle {
    max-width: 620px;
    margin: 0.28rem 0 0;
    color: var(--pv-text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

#pv-panel-nuevo .np-progress {
    min-width: 210px;
    color: #c8d4ec;
    font-size: 0.76rem;
    font-weight: 650;
}

#pv-panel-nuevo .np-progress-track {
    height: 6px;
    background: rgba(35, 47, 69, 0.88);
}

#pv-panel-nuevo .np-progress-track span {
    background: linear-gradient(90deg, #3186ff, #08d7ee);
}

#pv-panel-nuevo .np-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
}

#pv-panel-nuevo .np-step {
    min-height: 58px;
    padding: 0.74rem 0.82rem;
    border-radius: 11px;
    background: rgba(16, 24, 39, 0.68);
    border-color: rgba(56, 73, 107, 0.42);
    box-shadow: none;
}

#pv-panel-nuevo .np-step:hover {
    transform: translateY(-1px);
}

#pv-panel-nuevo .np-step.is-active {
    background: rgba(21, 46, 76, 0.72);
    border-color: rgba(35, 179, 214, 0.72);
    box-shadow: inset 3px 0 0 #19d3ef, 0 12px 34px rgba(2, 132, 199, 0.1);
}

#pv-panel-nuevo .np-step-num {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 650;
}

#pv-panel-nuevo .np-step-copy strong {
    font-size: 0.86rem;
    font-weight: 620;
}

#pv-panel-nuevo .np-step-copy small {
    margin-top: 0.1rem;
    color: #92a4c2;
    font-size: 0.74rem;
    font-weight: 500;
}

#pv-panel-nuevo .np-form {
    gap: 1rem;
}

#pv-panel-nuevo .np-phase.is-active {
    display: grid;
    gap: 0.82rem;
    min-height: 0;
    padding: 1.08rem 1.18rem;
}

#pv-panel-nuevo .np-phase-head {
    margin: 0;
    padding-bottom: 0.68rem;
    border-bottom: 1px solid rgba(56, 73, 107, 0.34);
}

#pv-panel-nuevo .np-phase-head h3,
#pv-panel-nuevo .np-launch-panel-head h4,
#pv-panel-nuevo .np-benchmark-head h4 {
    margin: 0;
    color: var(--pv-text-primary);
    font-size: 0.98rem;
    font-weight: 560;
    line-height: 1.25;
}

#pv-panel-nuevo .np-phase-head p,
#pv-panel-nuevo .np-launch-panel-head p,
#pv-panel-nuevo .np-benchmark-head p {
    max-width: 760px;
    margin: 0.26rem 0 0;
    color: #8ea0be;
    font-size: 0.82rem;
    font-weight: 450;
    line-height: 1.35;
}

#pv-panel-nuevo .np-grid {
    gap: 0.9rem;
}

#pv-panel-nuevo .np-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pv-panel-nuevo .np-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#pv-panel-nuevo .np-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#pv-panel-nuevo .np-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

#pv-panel-nuevo .np-presentation-phase .np-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pv-panel-nuevo .np-field {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

#pv-panel-nuevo .np-powder-spoon-field[hidden],
#pv-panel-nuevo .np-powder-spoon-help[hidden] {
    display: none;
}

#pv-panel-nuevo .np-powder-spoon-field :disabled,
#pv-panel-nuevo #np-launch-serving-units:disabled,
#pv-panel-nuevo #np-launch-servings:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pv-panel-nuevo .np-wizard .pv-label {
    color: #a7b6d1;
    font-size: 0.74rem;
    font-weight: 620;
    line-height: 1.2;
    text-transform: none;
}

#pv-panel-nuevo .np-wizard .pv-input,
#pv-panel-nuevo .np-wizard .pv-select {
    min-height: 42px;
    border-radius: 9px;
    border-color: rgba(56, 73, 107, 0.62);
    background-color: rgba(5, 10, 22, 0.78);
    color: var(--pv-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

#pv-panel-nuevo .np-wizard .pv-input:focus,
#pv-panel-nuevo .np-wizard .pv-select:focus {
    border-color: rgba(34, 211, 238, 0.78);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.09);
}

#pv-panel-nuevo .np-presentation-phase {
    border-left: 2px solid #22d3ee;
}

#pv-panel-nuevo .np-launch {
    max-width: none;
    gap: 1rem;
}

#pv-panel-nuevo .np-launch-toolbar {
    align-items: end;
    padding: 0.95rem;
    border: 1px solid rgba(56, 73, 107, 0.38);
    border-radius: 12px;
    background: rgba(6, 12, 25, 0.42);
}

#pv-panel-nuevo .np-field--market-channel {
    min-width: 0;
}

#pv-panel-nuevo .np-launch-center {
    gap: 0.76rem;
}

#pv-panel-nuevo .np-launch-center > .np-launch-layout {
    order: 1;
}

#pv-panel-nuevo .np-launch-center > .np-benchmark-workbench {
    order: 2;
}

#pv-panel-nuevo .np-launch-center > .np-launch-kpis {
    display: none;
}

#pv-panel-nuevo .np-launch-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.72rem;
}

#pv-panel-nuevo .np-launch-panel,
#pv-panel-nuevo .np-benchmark-workbench,
#pv-panel-nuevo .np-benchmark-chart,
#pv-panel-nuevo .np-benchmark-ingredients,
#pv-panel-nuevo .np-benchmark-insight,
#pv-panel-nuevo .np-benchmark-formula,
#pv-panel-nuevo .np-review {
    border-color: rgba(56, 73, 107, 0.42);
    border-radius: 12px;
    background: rgba(16, 24, 39, 0.68);
}

#pv-panel-nuevo .np-launch-panel {
    grid-column: 1 / -1;
    padding: 0.86rem;
}

#pv-panel-nuevo .np-launch-panel--product {
    order: 3;
    grid-row: 3;
}

#pv-panel-nuevo .np-launch-panel--materials {
    order: 4;
    grid-column: 1 / span 6;
    grid-row: 4;
}

#pv-panel-nuevo .np-launch-panel--packaging {
    order: 5;
    grid-column: 7 / span 6;
    grid-row: 4;
}

#pv-panel-nuevo .np-launch-panel--costs {
    order: 4;
    grid-column: 7 / span 6;
    grid-row: 4 / span 2;
    align-self: start;
}

#pv-panel-nuevo .np-launch-panel--competitors {
    order: 1;
    grid-row: 1;
    border-color: rgba(34, 211, 238, 0.26);
}

#pv-panel-nuevo .np-launch-panel--competitors.is-empty {
    padding: 0.72rem 0.86rem;
}

#pv-panel-nuevo .np-launch-panel--competitors.is-empty .np-launch-panel-head {
    margin-bottom: 0;
}

#pv-panel-nuevo .np-launch-panel--competitors .np-benchmark-ingredients {
    margin-top: 0.62rem;
    padding: 0.68rem;
    border-color: rgba(34, 211, 238, 0.2);
    border-radius: 10px;
    background: rgba(5, 10, 22, 0.34);
}

#pv-panel-nuevo .np-benchmark-ingredients-head strong {
    font-size: 0.98rem;
    font-weight: 620;
}

#pv-panel-nuevo .np-benchmark-ingredients.is-collapsible {
    padding: 0;
    overflow: hidden;
}

#pv-panel-nuevo .np-ingredient-disclosure {
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 10px;
    background: rgba(5, 10, 22, 0.34);
}

#pv-panel-nuevo .np-ingredient-disclosure summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.72rem;
    cursor: pointer;
    list-style: none;
}

#pv-panel-nuevo .np-ingredient-disclosure summary::-webkit-details-marker {
    display: none;
}

#pv-panel-nuevo .np-ingredient-disclosure summary .np-benchmark-ingredients-head {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

#pv-panel-nuevo .np-ingredient-disclosure-cue {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0.32rem 0.58rem;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    color: var(--pv-accent-cyan);
    background: rgba(34, 211, 238, 0.08);
    font-size: 0;
    font-weight: 680;
    line-height: 1;
}

#pv-panel-nuevo .np-ingredient-disclosure-cue::after {
    content: "Ver detalle";
    font-size: 0.72rem;
}

#pv-panel-nuevo .np-ingredient-disclosure[open] .np-ingredient-disclosure-cue::after {
    content: "Ocultar";
}

#pv-panel-nuevo .np-ingredient-disclosure-body {
    padding: 0 0.72rem 0.72rem;
}

#pv-panel-nuevo .np-launch-panel--product,
#pv-panel-nuevo .np-launch-panel--costs {
    border-color: rgba(56, 73, 107, 0.52);
}

#pv-panel-nuevo .np-launch-panel--materials,
#pv-panel-nuevo .np-launch-panel--packaging {
    align-self: start;
    border-color: rgba(56, 73, 107, 0.46);
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-table--materials {
    min-width: 0;
    table-layout: fixed;
}

#pv-panel-nuevo .np-launch-panel--materials,
#pv-panel-nuevo .np-launch-panel--packaging,
#pv-panel-nuevo .np-launch-panel--costs {
    padding: 0.82rem;
}

#pv-panel-nuevo .np-launch-panel--packaging {
    border-color: rgba(245, 158, 11, 0.22);
}

#pv-panel-nuevo .np-launch-panel-head {
    align-items: center;
    margin-bottom: 0.95rem;
}

#pv-panel-nuevo .np-launch-add,
#pv-panel-nuevo .np-benchmark-action {
    min-height: 34px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 650;
}

#pv-panel-nuevo .np-cost-breakdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#pv-panel-nuevo .np-cost-breakdown > div,
#pv-panel-nuevo .np-benchmark-scoreboard > div,
#pv-panel-nuevo .np-launch-channel {
    border-radius: 10px;
    background: rgba(6, 12, 25, 0.52);
}

#pv-panel-nuevo .np-cost-breakdown > div {
    min-height: 0;
    padding: 0.55rem 0.62rem;
}

#pv-panel-nuevo .np-cost-breakdown span,
#pv-panel-nuevo .np-benchmark-scoreboard span,
#pv-panel-nuevo .np-launch-channel-metrics span,
#pv-panel-nuevo .np-review-label,
#pv-panel-nuevo .np-review-grid span {
    color: #94a7c7;
    font-size: 0.66rem;
    font-weight: 620;
    text-transform: none;
}

#pv-panel-nuevo .np-cost-breakdown strong,
#pv-panel-nuevo .np-benchmark-scoreboard strong,
#pv-panel-nuevo .np-launch-channel-metrics strong,
#pv-panel-nuevo .np-launch-money,
#pv-panel-nuevo .np-review-grid strong {
    font-family: var(--pv-font-ui);
    font-weight: 650;
}

#pv-panel-nuevo .np-cost-breakdown strong {
    margin-top: 0.1rem;
    font-size: 0.88rem;
    line-height: 1.12;
}

#pv-panel-nuevo .np-cost-breakdown small {
    margin-top: 0.1rem;
    font-size: 0.64rem;
    line-height: 1.15;
}

#pv-panel-nuevo .np-launch-price-grid,
#pv-panel-nuevo .np-launch-channels {
    gap: 0.75rem;
}

#pv-panel-nuevo .np-benchmark-workbench {
    padding: 1rem;
}

#pv-panel-nuevo .np-benchmark-workbench[hidden] {
    display: none !important;
}

#pv-panel-nuevo .np-benchmark-head {
    align-items: end;
}

#pv-panel-nuevo .np-benchmark-controls {
    grid-template-columns: minmax(190px, 1fr) minmax(130px, 0.6fr);
}

#pv-panel-nuevo .np-benchmark-scoreboard {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

#pv-panel-nuevo .np-benchmark-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pv-panel-nuevo .np-benchmark-chart {
    min-height: 318px;
    padding: 0.92rem;
}

#pv-panel-nuevo .np-benchmark-chart--cost {
    min-height: 268px;
}

#pv-panel-nuevo .np-benchmark-chart--sales {
    min-height: 292px;
}

#pv-panel-nuevo .np-benchmark-chart canvas {
    height: 286px !important;
}

#pv-panel-nuevo .np-benchmark-chart--cost canvas {
    height: 238px !important;
}

#pv-panel-nuevo .np-benchmark-bottom {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

#pv-panel-nuevo .np-benchmark-ingredients {
    grid-column: 1 / -1;
}

#pv-panel-nuevo .np-benchmark-insights,
#pv-panel-nuevo .np-benchmark-formula {
    display: none !important;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-panel-head,
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-panel-head {
    min-height: 38px;
    margin-bottom: 0.58rem;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-panel-head h4,
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-panel-head h4,
#pv-panel-nuevo .np-launch-panel--costs .np-launch-panel-head h4 {
    font-size: 0.98rem;
    line-height: 1.18;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-panel-head p,
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-panel-head p,
#pv-panel-nuevo .np-launch-panel--costs .np-launch-panel-head p {
    margin-top: 0.16rem;
    font-size: 0.76rem;
    line-height: 1.25;
}

#pv-panel-nuevo .np-launch-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.64rem;
    border: 1px solid rgba(34, 211, 238, 0.36);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #67e8f9;
    font-size: 0.72rem;
    font-weight: 650;
    white-space: nowrap;
}

#pv-panel-nuevo .np-launch-panel-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

#pv-panel-nuevo .np-launch-add--header {
    min-height: 28px;
    padding: 0.28rem 0.64rem;
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.08);
    color: #67e8f9;
}

#pv-panel-nuevo .np-launch-add--table {
    justify-self: end;
    min-height: 30px;
    padding: 0.32rem 0.66rem;
    border-color: rgba(34, 211, 238, 0.24);
    background: rgba(34, 211, 238, 0.06);
    color: #67e8f9;
    font-size: 0.74rem;
    font-weight: 650;
}

#pv-panel-nuevo .np-product-adjust-grid {
    align-items: end;
}

#pv-panel-nuevo .np-product-platforms {
    margin-top: 0.84rem;
    padding-top: 0.78rem;
    border-top: 1px solid rgba(56, 73, 107, 0.34);
}

#pv-panel-nuevo .np-launch-panel-head--subtle {
    min-height: 0;
    margin-bottom: 0.58rem;
}

#pv-panel-nuevo .np-launch-panel-head--subtle h4 {
    font-size: 0.96rem;
    line-height: 1.18;
}

#pv-panel-nuevo .np-launch-panel-head--subtle p {
    margin-top: 0.14rem;
    font-size: 0.74rem;
    line-height: 1.22;
}

#pv-panel-nuevo .np-formula-context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: -0.1rem 0 0.58rem;
}

#pv-panel-nuevo .np-formula-context > div {
    min-width: 0;
    padding: 0.48rem 0.58rem;
    border: 1px solid rgba(56, 73, 107, 0.28);
    border-radius: 9px;
    background: rgba(6, 12, 25, 0.42);
}

#pv-panel-nuevo .np-formula-context span {
    display: block;
    margin-bottom: 0.14rem;
    color: #94a7c7;
    font-size: 0.64rem;
    font-weight: 620;
    line-height: 1.1;
}

#pv-panel-nuevo .np-formula-context strong {
    display: block;
    overflow: hidden;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pv-panel-nuevo .np-packaging-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.58rem;
    align-items: end;
    margin-bottom: 0.78rem;
    padding: 0.72rem;
    border: 1px solid rgba(56, 73, 107, 0.26);
    border-radius: 10px;
    background: rgba(6, 12, 25, 0.34);
}

#pv-panel-nuevo .np-packaging-tools .np-field {
    gap: 0.34rem;
}

#pv-panel-nuevo .np-packaging-tools small {
    grid-column: 1 / -1;
    color: #7f91ae;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.28;
}

#pv-panel-nuevo .np-launch-summary-wrap {
    overflow: hidden;
    border: 1px solid rgba(56, 73, 107, 0.3);
    border-radius: 10px;
    background: rgba(7, 11, 21, 0.5);
}

#pv-panel-nuevo .np-launch-summary-wrap[hidden] {
    display: none !important;
}

#pv-panel-nuevo .np-launch-summary-table {
    width: 100%;
    border-collapse: collapse;
}

#pv-panel-nuevo .np-launch-summary-table th,
#pv-panel-nuevo .np-launch-summary-table td {
    padding: 0.46rem 0.68rem;
    border-bottom: 1px solid rgba(56, 73, 107, 0.26);
    color: var(--pv-text-primary);
    font-size: 0.78rem;
    line-height: 1.18;
    text-align: left;
    vertical-align: middle;
}

#pv-panel-nuevo .np-launch-summary-table th {
    color: #b8c7df;
    font-size: 0.66rem;
    font-weight: 650;
    text-transform: uppercase;
}

#pv-panel-nuevo .np-launch-summary-table .np-num {
    text-align: right;
    white-space: nowrap;
}

#pv-panel-nuevo .np-launch-summary-table .np-table-total td {
    border-bottom: 0;
    background: rgba(18, 28, 45, 0.62);
    color: var(--pv-text-primary);
    font-weight: 680;
    padding-block: 0.5rem;
}

#pv-panel-nuevo .np-launch-summary-table .np-summary-empty td {
    color: #8798b4;
    font-size: 0.76rem;
}

#pv-panel-nuevo .np-launch-edit-store[hidden] {
    display: none !important;
}

#pv-panel-nuevo .np-launch-edit-store--materials {
    display: grid;
    gap: 0.58rem;
}

#pv-panel-nuevo .np-launch-table {
    border-spacing: 0;
}

#pv-panel-nuevo .np-launch-table--materials {
    min-width: 0;
    table-layout: fixed;
}

#pv-panel-nuevo .np-launch-table--packaging {
    min-width: 0;
    table-layout: fixed;
}

#pv-panel-nuevo .np-launch-table th {
    padding: 0.6rem 0.65rem;
    color: #a7b6d1;
    font-size: 0.72rem;
    font-weight: 620;
    text-transform: none;
}

#pv-panel-nuevo .np-launch-table td {
    padding: 0.42rem 0.65rem;
    border-top: 1px solid rgba(56, 73, 107, 0.24);
}

#pv-panel-nuevo .np-launch-table tfoot td {
    padding: 0.5rem 0.65rem;
    border-top: 1px solid rgba(56, 73, 107, 0.34);
    background: rgba(18, 28, 45, 0.62);
    color: var(--pv-text-primary);
    font-weight: 680;
}

#pv-panel-nuevo .np-launch-table tfoot .np-launch-money {
    text-align: right;
}

#pv-panel-nuevo .np-launch-table-wrap {
    border: 1px solid rgba(56, 73, 107, 0.3);
    border-radius: 11px;
    background: rgba(7, 11, 21, 0.5);
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-table td,
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table td {
    padding-block: 0.38rem;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-table th:nth-child(1),
#pv-panel-nuevo .np-launch-panel--materials .np-launch-table td:nth-child(1) {
    width: 40%;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-table th:nth-child(2),
#pv-panel-nuevo .np-launch-panel--materials .np-launch-table td:nth-child(2) {
    width: 24%;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-table th:nth-child(3),
#pv-panel-nuevo .np-launch-panel--materials .np-launch-table td:nth-child(3) {
    width: 14%;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-table th:nth-child(4),
#pv-panel-nuevo .np-launch-panel--materials .np-launch-table td:nth-child(4) {
    width: 15%;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-table th:nth-child(5),
#pv-panel-nuevo .np-launch-panel--materials .np-launch-table td:nth-child(5) {
    width: 7%;
}

#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table th:nth-child(1),
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table td:nth-child(1) {
    width: 33%;
}

#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table th:nth-child(2),
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table td:nth-child(2) {
    width: 17%;
}

#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table th:nth-child(3),
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table td:nth-child(3) {
    width: 12%;
}

#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table th:nth-child(4),
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table td:nth-child(4),
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table th:nth-child(5),
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table td:nth-child(5) {
    width: 15%;
}

#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table th:nth-child(6),
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-table td:nth-child(6) {
    width: 8%;
}

#pv-panel-nuevo .np-launch-panel--materials .pv-input,
#pv-panel-nuevo .np-launch-panel--materials .pv-select,
#pv-panel-nuevo .np-launch-panel--packaging .pv-input,
#pv-panel-nuevo .np-launch-panel--packaging .pv-select {
    min-width: 0;
    min-height: 34px;
    max-width: 100%;
    padding-block: 0.36rem;
    font-size: 0.8rem;
}

#pv-panel-nuevo .np-launch-panel--materials input[type="number"],
#pv-panel-nuevo .np-launch-panel--packaging input[type="number"] {
    appearance: textfield;
}

#pv-panel-nuevo .np-launch-panel--materials input[type="number"]::-webkit-outer-spin-button,
#pv-panel-nuevo .np-launch-panel--materials input[type="number"]::-webkit-inner-spin-button,
#pv-panel-nuevo .np-launch-panel--packaging input[type="number"]::-webkit-outer-spin-button,
#pv-panel-nuevo .np-launch-panel--packaging input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-money,
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-money {
    min-width: 0;
    font-size: 0.78rem;
    white-space: nowrap;
}

#pv-panel-nuevo .np-launch-panel--materials .np-launch-remove,
#pv-panel-nuevo .np-launch-panel--packaging .np-launch-remove {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    font-size: 0.84rem;
}

#pv-panel-nuevo .np-competitor-data-store,
#pv-panel-nuevo .np-competitor-edit-drawer,
#pv-panel-nuevo #np-launch-competitor-summary {
    display: none !important;
}

#pv-panel-nuevo .np-competitor-matrix {
    margin-bottom: 0;
}

/* Edición en línea de celdas de la Comparativa global (sutil, no altera el diseño) */
#pv-panel-nuevo .np-matrix-edit {
    cursor: text;
    border-radius: 4px;
    padding: 1px 4px;
    margin: -1px -4px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
    transition: background 0.12s, border-color 0.12s;
    outline: none;
}

#pv-panel-nuevo .np-matrix-edit:hover {
    background: rgba(148, 163, 184, 0.12);
    border-bottom-color: rgba(148, 163, 184, 0.7);
}

#pv-panel-nuevo .np-matrix-edit:focus {
    background: rgba(56, 189, 248, 0.14);
    border-bottom: 1px solid #38bdf8;
    box-shadow: 0 1px 0 #38bdf8;
}

#pv-panel-nuevo .np-matrix-scroll {
    overflow-x: auto;
    border: 1px solid rgba(56, 73, 107, 0.36);
    border-radius: 10px;
    background: rgba(5, 10, 22, 0.52);
}

#pv-panel-nuevo .np-matrix-mobile-cards {
    display: none;
}

#pv-panel-nuevo .np-matrix-own-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.55rem;
}

#pv-panel-nuevo .np-matrix-own-metrics > div {
    min-width: 0;
    padding: 0.52rem 0.62rem;
    border: 1px solid rgba(56, 73, 107, 0.32);
    border-radius: 9px;
    background: rgba(8, 14, 26, 0.56);
}

#pv-panel-nuevo .np-matrix-own-metrics span {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--pv-text-muted);
    font-size: 0.64rem;
    font-weight: 680;
    line-height: 1;
    text-transform: uppercase;
}

#pv-panel-nuevo .np-matrix-own-metrics strong {
    display: block;
    overflow: hidden;
    color: var(--pv-text-primary);
    font-size: 0.82rem;
    font-weight: 620;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pv-panel-nuevo .np-matrix-own-metrics .is-positive strong {
    color: var(--pv-green);
}

#pv-panel-nuevo .np-matrix-own-metrics .is-negative strong {
    color: var(--pv-amber);
}

#pv-panel-nuevo .np-competitor-matrix-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

#pv-panel-nuevo .np-competitor-matrix-table th,
#pv-panel-nuevo .np-competitor-matrix-table td {
    padding: 0.42rem 0.52rem;
    border-bottom: 1px solid rgba(56, 73, 107, 0.28);
    color: #dbe7fb;
    text-align: left;
    vertical-align: middle;
    font-size: 0.74rem;
    line-height: 1.18;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th {
    height: 34px;
    background: rgba(10, 16, 29, 0.86);
    vertical-align: middle;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th:first-child,
#pv-panel-nuevo .np-competitor-matrix-table tbody th {
    width: 104px;
    color: #9fb0cc;
    font-size: 0.68rem;
    font-weight: 620;
    text-transform: uppercase;
}

#pv-panel-nuevo .np-matrix-col-head {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 0.28rem;
    min-height: 34px;
    min-width: 0;
    position: relative;
}

/* Botón para quitar un competidor desde su columna en la matriz */
#pv-panel-nuevo .np-matrix-mobile-card header {
    position: relative;
}
#pv-panel-nuevo .np-matrix-col-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 50%;
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease, background 0.15s ease;
}
#pv-panel-nuevo .np-matrix-col-remove:hover {
    opacity: 1;
    background: rgba(248, 113, 113, 0.22);
}

/* Encabezado del editor manual de competidores */
#pv-panel-nuevo .np-competitor-store-head {
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
#pv-panel-nuevo .np-launch-store-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th span {
    display: inline-grid;
    width: 20px;
    height: 20px;
    margin-right: 0.28rem;
    margin-bottom: 0;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.34);
    border-radius: 7px;
    color: #22d3ee;
    font-size: 0.66rem;
    font-weight: 650;
    vertical-align: top;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th strong,
#pv-panel-nuevo .np-competitor-matrix-table thead th .np-matrix-name-link {
    display: -webkit-box;
    max-width: 100%;
    min-height: 1.7rem;
    overflow: hidden;
    color: var(--pv-text-primary);
    font-size: 0.72rem;
    font-weight: 620;
    letter-spacing: 0;
    line-height: 1.18;
    text-overflow: ellipsis;
    text-transform: none;
    text-decoration: none;
    white-space: normal;
    vertical-align: top;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th .np-matrix-name-link:hover,
#pv-panel-nuevo .np-competitor-matrix-table thead th .np-matrix-name-link:focus-visible {
    color: #67e8f9;
    text-decoration: none;
    outline: none;
}

#pv-panel-nuevo .np-competitor-matrix-table .is-own {
    background: rgba(10, 69, 82, 0.24);
}

#pv-panel-nuevo .np-competitor-matrix-table thead th.is-own {
    padding: 0.42rem 0.52rem;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th.is-own .np-matrix-col-head.is-own-brand {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    min-height: 34px;
    align-items: start;
    justify-content: initial;
}

.np-own-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    max-width: 100%;
    height: 24px;
    overflow: hidden;
}

.np-own-brand-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.14));
}

.np-matrix-col-head.is-own-brand,
.np-ingredient-product-head.is-own-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th .np-own-brand-logo,
.np-ingredient-product-head .np-own-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 0;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th .np-own-brand-logo img,
.np-ingredient-product-head .np-own-brand-logo img {
    max-height: 26px;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th .np-own-brand-logo--matrix {
    width: 128px;
    height: 36px;
}

#pv-panel-nuevo .np-competitor-matrix-table thead th .np-own-brand-logo--matrix img {
    max-height: 36px;
}

#pv-panel-nuevo .np-competitor-matrix-table td .np-own-brand-logo {
    width: 64px;
    height: 18px;
    justify-content: flex-start;
}

#pv-panel-nuevo .np-competitor-matrix-table td .np-own-brand-logo img {
    max-height: 18px;
}

#pv-panel-nuevo .np-matrix-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.22rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

#pv-panel-nuevo .np-matrix-chips span,
#pv-panel-nuevo .np-matrix-chips .np-matrix-more {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    max-width: 76px;
    padding: 0.12rem 0.34rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #dbeafe;
    font-size: 0.62rem;
    font-weight: 560;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pv-panel-nuevo .np-matrix-chips .np-matrix-more {
    color: #67e8f9;
    font-weight: 700;
}

#pv-panel-nuevo .np-matrix-muted {
    color: #73839e;
}

#pv-panel-nuevo .np-matrix-note {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0.12rem 0.38rem;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    font-size: 0.62rem;
    font-weight: 620;
    line-height: 1;
    white-space: nowrap;
}

#pv-panel-nuevo .np-matrix-shipping {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 18px;
    padding: 0.12rem 0.38rem;
    border: 1px solid rgba(56, 73, 107, 0.42);
    border-radius: 999px;
    color: var(--pv-text-secondary);
    font-size: 0.62rem;
    font-weight: 620;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pv-panel-nuevo .np-matrix-shipping.is-included {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.08);
    color: var(--pv-green);
}

#pv-panel-nuevo .np-matrix-shipping.is-unknown {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.06);
}

#pv-panel-nuevo .np-matrix-signal {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 18px;
    padding: 0.12rem 0.38rem;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.07);
    color: #67e8f9;
    font-size: 0.62rem;
    font-weight: 620;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pv-panel-nuevo .np-matrix-list-price,
#pv-panel-nuevo .np-matrix-offer,
#pv-panel-nuevo .np-matrix-promo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 18px;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 620;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pv-panel-nuevo .np-matrix-list-price {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

#pv-panel-nuevo .np-matrix-list-price.is-market {
    color: var(--pv-cyan, #22d3ee);
    text-decoration: none;
    font-weight: 600;
}

#pv-panel-nuevo .np-matrix-own-list-price {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    max-width: 100%;
    min-height: 26px;
    padding: 0.12rem 0.2rem 0.12rem 0.32rem;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 7px;
    background: rgba(34, 211, 238, 0.07);
    color: var(--pv-cyan, #22d3ee);
}

#pv-panel-nuevo .np-matrix-own-list-price > span {
    color: var(--pv-cyan, #22d3ee);
    font-size: 0.7rem;
    font-weight: 700;
}

#pv-panel-nuevo .np-matrix-own-list-price-input {
    width: 72px;
    min-width: 0;
    height: 24px;
    padding: 0.16rem 0.24rem;
    border: 0;
    border-radius: 4px;
    background: rgba(3, 7, 18, 0.38);
    color: var(--pv-text-primary);
    font-size: 0.7rem;
    font-weight: 650;
    outline: none;
}

#pv-panel-nuevo .np-matrix-own-list-price-input:focus {
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.72);
}

#pv-panel-nuevo .np-matrix-own-list-price-input::-webkit-inner-spin-button,
#pv-panel-nuevo .np-matrix-own-list-price-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

#pv-panel-nuevo .np-matrix-own-list-price-input {
    -moz-appearance: textfield;
}

#pv-panel-nuevo .np-matrix-own-list-price-save {
    display: inline-grid;
    width: 22px;
    min-width: 22px;
    height: 22px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 5px;
    background: rgba(34, 211, 238, 0.14);
    color: var(--pv-cyan, #22d3ee);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

#pv-panel-nuevo .np-matrix-own-list-price-save:hover,
#pv-panel-nuevo .np-matrix-own-list-price-save:focus-visible {
    border-color: rgba(34, 211, 238, 0.78);
    background: rgba(34, 211, 238, 0.24);
    color: #cffafe;
    outline: none;
}

#pv-panel-nuevo .np-matrix-offer {
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.07);
    color: #86efac;
}

#pv-panel-nuevo .np-matrix-promo {
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
}

#pv-panel-nuevo .np-competitor-matrix-table tbody tr.is-ingredients-row th,
#pv-panel-nuevo .np-competitor-matrix-table tbody tr.is-ingredients-row td {
    vertical-align: top;
}

#pv-panel-nuevo .np-competitor-matrix-table tbody tr.is-ingredients-row td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

#pv-panel-nuevo .np-matrix-ingredients-cell,
#pv-panel-nuevo .np-matrix-ingredients-cell > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
}

#pv-panel-nuevo .np-matrix-ingredients-cell.is-collapsed {
    display: block;
}

#pv-panel-nuevo .np-matrix-ingredients-cell summary {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    margin-bottom: 0.34rem;
    padding: 0.18rem 0.42rem;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #67e8f9;
    font-size: 0.64rem;
    font-weight: 680;
    cursor: pointer;
    list-style: none;
}

#pv-panel-nuevo .np-matrix-ingredients-cell summary::-webkit-details-marker {
    display: none;
}

#pv-panel-nuevo .np-matrix-ingredient-chip {
    display: inline-flex;
    max-width: 100%;
    min-height: 20px;
    align-items: center;
    padding: 0.12rem 0.34rem;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.07);
    color: #dbeafe;
    font-size: 0.61rem;
    font-weight: 620;
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pv-panel-nuevo .np-matrix-ingredient-chip.has-dose {
    min-height: 30px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.04rem;
    padding: 0.16rem 0.4rem;
    white-space: normal;
}

#pv-panel-nuevo .np-matrix-ingredient-chip.has-dose > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pv-panel-nuevo .np-matrix-ingredient-chip small {
    color: #67e8f9;
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

#pv-panel-nuevo .np-competitor-edit-drawer {
    margin-top: 0.75rem;
}

#pv-panel-nuevo .np-competitor-edit-drawer summary {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border: 1px solid rgba(56, 73, 107, 0.48);
    border-radius: 9px;
    color: #c8d7ef;
    background: rgba(9, 15, 28, 0.58);
    font-size: 0.78rem;
    font-weight: 620;
    cursor: pointer;
}

#pv-panel-nuevo .np-competitor-edit-drawer[open] summary {
    margin-bottom: 0.7rem;
}

#pv-panel-nuevo .np-review {
    padding: 1rem;
}

#pv-panel-nuevo .np-modo-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(56, 73, 107, 0.42);
    border-radius: 12px;
    background: rgba(16, 24, 39, 0.68);
}

#pv-panel-nuevo .np-modo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.72rem;
    align-items: start;
}

#pv-panel-nuevo .np-modo-momentos {
    grid-column: span 2;
}

#pv-panel-nuevo .np-modo-total-diario {
    min-height: 1.1rem;
    color: #67e8f9;
    font-size: 0.76rem;
    font-weight: 620;
}

#pv-panel-nuevo .np-modo-total-diario.is-warning {
    color: #fbbf24;
}

#pv-panel-nuevo .np-modo-momentos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
}

#pv-panel-nuevo .np-modo-momento-field {
    display: grid;
    gap: 0.32rem;
}

#pv-panel-nuevo .np-modo-momento-field .pv-label {
    color: #8fa1bf;
    font-size: 0.7rem;
    font-weight: 560;
}

#pv-panel-nuevo .np-modo-empty {
    color: #8ea0be;
    font-size: 0.78rem;
    font-style: italic;
}

#pv-panel-nuevo .np-modo-preview {
    display: grid;
    gap: 0.28rem;
    padding: 0.82rem 0.9rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 10px;
    background: rgba(5, 10, 22, 0.42);
}

#pv-panel-nuevo .np-modo-preview strong {
    color: var(--pv-text-primary);
    font-size: 0.88rem;
    font-weight: 560;
    line-height: 1.45;
}

#pv-panel-nuevo .np-review-main strong {
    font-size: 1.18rem;
    font-weight: 620;
}

#pv-panel-nuevo .np-review-preformula .pv-secwrap {
    padding: 0;
    background: transparent;
    border: 0;
}

#pv-panel-nuevo .np-wizard-actions {
    justify-content: flex-end;
    margin: 0;
    padding: 0.9rem 1rem;
}

#pv-panel-nuevo .np-system-field,
#pv-panel-nuevo .np-draft-tools,
#pv-panel-nuevo .np-review-sku-action,
#pv-panel-nuevo #np-review-sku {
    display: none !important;
}

@media (max-width: 1180px) {
    #pv-panel-nuevo .np-grid--four,
    #pv-panel-nuevo .np-grid--five,
    #pv-panel-nuevo .np-cost-breakdown,
    #pv-panel-nuevo .np-benchmark-scoreboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #pv-panel-nuevo .np-benchmark-bottom,
    #pv-panel-nuevo .np-benchmark-controls {
        grid-template-columns: 1fr;
    }

    #pv-panel-nuevo .np-modo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #pv-panel-nuevo .np-modo-momentos {
        grid-column: 1 / -1;
    }

    #pv-panel-nuevo .np-launch-panel--materials,
    #pv-panel-nuevo .np-launch-panel--packaging,
    #pv-panel-nuevo .np-launch-panel--costs {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 820px) {
    #pv-panel-nuevo .np-modo-grid {
        grid-template-columns: 1fr;
    }

    #pv-panel-nuevo .np-wizard-head {
        align-items: stretch;
        flex-direction: column;
    }

    #pv-panel-nuevo .np-progress {
        width: 100%;
        text-align: left;
    }

    #pv-panel-nuevo .np-stepper,
    #pv-panel-nuevo .np-grid--two,
    #pv-panel-nuevo .np-grid--three,
    #pv-panel-nuevo .np-grid--four,
    #pv-panel-nuevo .np-grid--five,
    #pv-panel-nuevo .np-presentation-phase .np-grid--three,
    #pv-panel-nuevo .np-cost-breakdown,
    #pv-panel-nuevo .np-benchmark-scoreboard,
    #pv-panel-nuevo .np-benchmark-charts,
    #pv-panel-nuevo .np-launch-toolbar,
    #pv-panel-nuevo .np-launch-price-grid,
    #pv-panel-nuevo .np-launch-channels,
    #pv-panel-nuevo .np-formula-context,
    #pv-panel-nuevo .np-matrix-own-metrics {
        grid-template-columns: 1fr;
    }

    #pv-panel-nuevo .np-packaging-tools {
        grid-template-columns: 1fr;
    }

    #pv-panel-nuevo .np-phase.is-active {
        padding: 1rem;
    }
}

@media (max-width: 900px) {
    #sub-desarrollo-list {
        max-width: 100%;
        overflow-x: hidden;
    }

    #pv-panel-preformula {
        padding: 0;
    }

    .pv-main-tabs-bar {
        max-width: 100%;
        margin-bottom: 0.75rem;
        overflow-x: auto;
        overflow-y: visible;
        flex-wrap: nowrap;
        border-radius: 12px;
    }

    .pv-main-tab {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0.45rem 0.78rem;
        font-size: var(--pv-text-xs);
    }

    .pv-tabs-search {
        flex: 0 0 min(76vw, 280px);
        width: min(76vw, 280px);
        margin-left: 4px;
        padding: 2px;
    }

    .pv-tabs-search-icon {
        display: none;
    }

    .pv-search-field[style] {
        width: 100%;
        min-width: 0 !important;
        max-width: none !important;
    }

    #pv-search-results {
        left: 0 !important;
        right: auto !important;
        min-width: min(86vw, 340px) !important;
        max-width: calc(100vw - 28px);
    }

    .pv-catalog-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pv-catalog-head-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .pv-catalog-new-btn {
        min-height: 40px;
        padding: 8px 14px;
    }

    .pv-catalog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px 12px;
        padding: 0 4px 4px;
        scrollbar-width: none;
    }

    .pv-catalog-filters::-webkit-scrollbar {
        display: none;
    }

    .pv-catalog-filter {
        flex: 0 0 auto;
        min-height: 34px;
    }

    .pv-catalog-table-wrap,
    .db-table-wrap,
    .pv-data-table-wrap,
    .np-launch-table-wrap,
    .np-matrix-scroll {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pv-catalog-table {
        min-width: 720px;
    }

    .db-table {
        min-width: 780px;
    }

    #pv-panel-nuevo .np-wizard {
        max-width: 100%;
        gap: 0.72rem;
        padding: 0.68rem;
        border-radius: 14px;
    }

    #pv-panel-nuevo .np-wizard-head {
        padding: 0.86rem 0.9rem;
    }

    #pv-panel-nuevo .np-title {
        font-size: 1.26rem;
        line-height: 1.15;
    }

    #pv-panel-nuevo .np-subtitle {
        margin-top: 0.18rem;
        font-size: 0.76rem;
        line-height: 1.3;
    }

    #pv-panel-nuevo .np-progress {
        min-width: 0;
    }

    #pv-panel-nuevo .np-wizard-head,
    #pv-panel-nuevo .np-grid--two,
    #pv-panel-nuevo .np-grid--three,
    #pv-panel-nuevo .np-grid--four,
    #pv-panel-nuevo .np-grid--five,
    #pv-panel-nuevo .np-launch-toolbar,
    #pv-panel-nuevo .np-benchmark-charts,
    #pv-panel-nuevo .np-launch-price-grid,
    #pv-panel-nuevo .np-launch-channels,
    #pv-panel-nuevo .np-formula-context,
    #pv-panel-nuevo .np-matrix-own-metrics,
    #pv-panel-nuevo .pv-pcards {
        grid-template-columns: 1fr !important;
    }

    #pv-panel-nuevo .np-wizard-head,
    #pv-panel-nuevo .np-launch-panel-head,
    #pv-panel-nuevo .np-launch-toolbar {
        align-items: stretch;
    }

    #pv-panel-nuevo .np-stepper {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    #pv-panel-nuevo .np-stepper::-webkit-scrollbar {
        display: none;
    }

    #pv-panel-nuevo .np-step {
        flex: 0 0 min(72vw, 260px);
        min-height: 52px;
        padding: 0.62rem 0.7rem;
    }

    #pv-panel-nuevo .np-step-num {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    #pv-panel-nuevo .np-step-copy strong {
        font-size: 0.82rem;
    }

    #pv-panel-nuevo .np-step-copy small {
        font-size: 0.68rem;
    }

    #pv-panel-nuevo .np-phase.is-active,
    #pv-panel-nuevo .np-launch-panel {
        padding: 0.78rem;
        border-radius: 14px;
    }

    #pv-panel-nuevo .np-phase-head {
        padding-bottom: 0.5rem;
    }

    #pv-panel-nuevo .np-phase-head h3,
    #pv-panel-nuevo .np-launch-panel-head h4,
    #pv-panel-nuevo .np-benchmark-head h4 {
        font-size: 0.9rem;
    }

    #pv-panel-nuevo .np-phase-head p,
    #pv-panel-nuevo .np-launch-panel-head p,
    #pv-panel-nuevo .np-benchmark-head p {
        font-size: 0.74rem;
        line-height: 1.28;
    }

    #pv-panel-nuevo .np-grid {
        gap: 0.68rem;
    }

    #pv-panel-nuevo .np-wizard .pv-label {
        font-size: 0.7rem;
    }

    #pv-panel-nuevo .np-wizard .pv-input,
    #pv-panel-nuevo .np-wizard .pv-select {
        min-height: 40px;
        font-size: 0.84rem;
    }

    #pv-panel-nuevo .np-benchmark-chart-body {
        min-height: 0;
    }

    #pv-panel-nuevo .np-benchmark-chart {
        min-height: 0;
        padding: 0.7rem;
        gap: 0.52rem;
    }

    #pv-panel-nuevo .np-benchmark-chart::before {
        left: 0.7rem;
        right: 0.7rem;
    }

    #pv-panel-nuevo .np-benchmark-chart-head {
        min-height: 0;
        align-items: flex-start;
    }

    #pv-panel-nuevo .np-benchmark-chart-head strong {
        font-size: 0.88rem;
    }

    #pv-panel-nuevo .np-benchmark-chart-head span {
        max-width: 46%;
        min-height: 22px;
        padding: 0.16rem 0.42rem;
        font-size: 0.66rem;
    }

    #pv-panel-nuevo .np-modern-chart {
        min-height: 0;
    }

    #pv-panel-nuevo .np-modern-chart--bars {
        gap: 0.38rem;
        align-content: start;
    }

    #pv-panel-nuevo .np-modern-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "label value"
            "track track";
        gap: 0.36rem 0.56rem;
        min-height: 0;
        padding: 0.46rem;
        border-color: rgba(56, 73, 107, 0.2);
        background: color-mix(in srgb, var(--pv-bg-base) 38%, transparent);
    }

    #pv-panel-nuevo .np-modern-label {
        grid-area: label;
    }

    #pv-panel-nuevo .np-modern-track {
        grid-area: track;
        height: 18px;
    }

    #pv-panel-nuevo .np-modern-value {
        grid-area: value;
        font-size: 0.74rem;
    }

    #pv-panel-nuevo .np-modern-name {
        font-size: 0.7rem;
    }

    #pv-panel-nuevo .np-modern-chart--cost {
        grid-template-columns: 1fr;
        gap: 0.58rem;
    }

    #pv-panel-nuevo .np-modern-cost-total {
        min-height: 0;
        padding: 0.64rem;
    }

    #pv-panel-nuevo .np-modern-cost-total strong {
        font-size: 1.05rem;
    }

    #pv-panel-nuevo .np-modern-cost-item {
        min-height: 26px;
        padding: 0.28rem 0.34rem;
    }

    #pv-panel-nuevo .np-matrix-scroll {
        display: none;
    }

    #pv-panel-nuevo .np-matrix-mobile-cards {
        display: grid;
        gap: 0.62rem;
    }

    #pv-panel-nuevo .np-matrix-mobile-card {
        min-width: 0;
        overflow: hidden;
        border: 1px solid rgba(56, 73, 107, 0.34);
        border-radius: 11px;
        background: rgba(7, 12, 24, 0.62);
    }

    #pv-panel-nuevo .np-matrix-mobile-card.is-own {
        border-color: rgba(34, 211, 238, 0.34);
        background: rgba(10, 69, 82, 0.22);
    }

    #pv-panel-nuevo .np-matrix-mobile-card header {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: center;
        gap: 0.5rem;
        padding: 0.64rem 0.68rem;
        border-bottom: 1px solid rgba(56, 73, 107, 0.28);
        background: rgba(3, 7, 18, 0.32);
    }

    #pv-panel-nuevo .np-matrix-mobile-card header > span {
        display: inline-grid;
        width: 24px;
        height: 24px;
        place-items: center;
        border: 1px solid rgba(34, 211, 238, 0.38);
        border-radius: 8px;
        color: var(--pv-accent-cyan);
        font-size: 0.68rem;
        font-weight: 650;
    }

    #pv-panel-nuevo .np-matrix-mobile-card header > div {
        min-width: 0;
    }

    #pv-panel-nuevo .np-matrix-mobile-card header strong,
    #pv-panel-nuevo .np-matrix-mobile-card header .np-matrix-name-link {
        display: block;
        overflow: hidden;
        color: var(--pv-text-primary);
        font-size: 0.82rem;
        font-weight: 620;
        line-height: 1.12;
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #pv-panel-nuevo .np-matrix-mobile-card dl {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin: 0;
    }

    #pv-panel-nuevo .np-matrix-mobile-card dl > div {
        min-width: 0;
        padding: 0.5rem 0.66rem;
        border-bottom: 1px solid rgba(56, 73, 107, 0.2);
    }

    #pv-panel-nuevo .np-matrix-mobile-card dl > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    #pv-panel-nuevo .np-matrix-mobile-card dl > div.is-wide {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(56, 73, 107, 0.2);
    }

    #pv-panel-nuevo .np-matrix-mobile-card dt {
        margin: 0 0 0.22rem;
        color: #94a7c7;
        font-size: 0.62rem;
        font-weight: 650;
        line-height: 1;
        text-transform: uppercase;
    }

    #pv-panel-nuevo .np-matrix-mobile-card dd {
        min-width: 0;
        margin: 0;
        color: var(--pv-text-primary);
        font-size: 0.76rem;
        font-weight: 600;
        line-height: 1.15;
    }

    #pv-panel-nuevo .np-matrix-mobile-card .np-matrix-ingredients-cell,
    #pv-panel-nuevo .np-matrix-mobile-card .np-matrix-ingredients-cell > div {
        gap: 0.28rem;
    }

    #pv-panel-nuevo .np-matrix-own-metrics {
        gap: 0.46rem;
    }

    #pv-panel-nuevo .np-product-platforms {
        margin-top: 0.66rem;
        padding-top: 0.66rem;
    }

    #pv-panel-nuevo .np-launch-toggles {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.42rem;
        min-height: 0;
    }

    #pv-panel-nuevo .np-launch-toggles label {
        min-height: 38px;
        padding: 0.45rem 0.58rem;
        border: 1px solid rgba(56, 73, 107, 0.32);
        border-radius: 9px;
        background: rgba(7, 12, 24, 0.42);
        font-size: 0.78rem;
    }

    #pv-panel-nuevo .np-launch-channel {
        padding: 0.68rem;
    }

    #pv-panel-nuevo .np-launch-channel-head {
        margin-bottom: 0.52rem;
        padding-bottom: 0.52rem;
    }

    #pv-panel-nuevo .np-launch-channel-metrics {
        gap: 0.5rem;
    }

    #pv-panel-nuevo .np-formula-context {
        gap: 0.42rem;
    }

    #pv-panel-nuevo .np-launch-summary-table {
        table-layout: fixed;
    }

    #pv-panel-nuevo .np-launch-summary-table th,
    #pv-panel-nuevo .np-launch-summary-table td {
        padding: 0.4rem 0.46rem;
        font-size: 0.72rem;
    }

    #pv-panel-nuevo .np-launch-summary-table th {
        font-size: 0.6rem;
    }

    #pv-panel-nuevo .np-launch-summary-table th:first-child,
    #pv-panel-nuevo .np-launch-summary-table td:first-child {
        width: 45%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #pv-panel-nuevo .np-launch-panel--materials .np-launch-table-wrap,
    #pv-panel-nuevo .np-launch-panel--packaging .np-launch-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    #pv-panel-nuevo .np-launch-table--materials,
    #pv-panel-nuevo .np-launch-table--packaging,
    #pv-panel-nuevo .np-launch-table--materials tbody,
    #pv-panel-nuevo .np-launch-table--packaging tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    #pv-panel-nuevo .np-launch-table--materials thead,
    #pv-panel-nuevo .np-launch-table--packaging thead {
        display: none;
    }

    #pv-panel-nuevo .np-launch-table--materials tbody,
    #pv-panel-nuevo .np-launch-table--packaging tbody {
        display: grid;
        gap: 0.54rem;
    }

    #pv-panel-nuevo .np-launch-table--materials tbody tr,
    #pv-panel-nuevo .np-launch-table--packaging tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.48rem;
        padding: 0.64rem;
        border: 1px solid rgba(56, 73, 107, 0.3);
        border-radius: 11px;
        background: rgba(7, 12, 24, 0.52);
    }

    #pv-panel-nuevo .np-launch-table--materials tbody td,
    #pv-panel-nuevo .np-launch-table--packaging tbody td {
        display: grid;
        gap: 0.22rem;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
    }

    #pv-panel-nuevo .np-launch-table--materials tbody td::before,
    #pv-panel-nuevo .np-launch-table--packaging tbody td::before {
        content: attr(data-label);
        color: #94a7c7;
        font-size: 0.62rem;
        font-weight: 650;
        line-height: 1;
    }

    #pv-panel-nuevo .np-launch-table--materials tbody td:first-child,
    #pv-panel-nuevo .np-launch-table--packaging tbody td:first-child {
        grid-column: 1 / -1;
        padding-right: 2rem !important;
    }

    #pv-panel-nuevo .np-launch-table--materials tbody td:nth-child(4),
    #pv-panel-nuevo .np-launch-table--packaging tbody td:nth-child(5) {
        align-content: end;
    }

    #pv-panel-nuevo .np-launch-table--materials tbody td:last-child,
    #pv-panel-nuevo .np-launch-table--packaging tbody td:last-child {
        position: absolute;
        top: 0.62rem;
        right: 0.62rem;
        display: block;
    }

    #pv-panel-nuevo .np-launch-table--materials tbody td:last-child::before,
    #pv-panel-nuevo .np-launch-table--packaging tbody td:last-child::before {
        display: none;
    }

    #pv-panel-nuevo .np-launch-table--materials tfoot {
        display: block;
        margin-top: 0.54rem;
    }

    #pv-panel-nuevo .np-launch-table--materials tfoot tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem;
        padding: 0.58rem 0.64rem;
        border: 1px solid rgba(56, 73, 107, 0.32);
        border-radius: 11px;
        background: rgba(18, 28, 45, 0.62);
    }

    #pv-panel-nuevo .np-launch-table--materials tfoot td {
        display: block;
        padding: 0 !important;
        border: 0 !important;
        background: transparent;
    }

    #pv-panel-nuevo .np-launch-table--materials tfoot td:last-child {
        display: none;
    }

    #pv-panel-nuevo .np-wizard-actions {
        position: sticky;
        bottom: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0.82rem -0.68rem -0.68rem;
        padding: 9px 0.68rem calc(9px + env(safe-area-inset-bottom));
        background: rgba(10, 14, 26, 0.94);
        border-top: 1px solid rgba(148, 163, 184, 0.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    #pv-panel-nuevo .np-wizard-actions .pv-btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
    }
}

/* Keep product search visible on tablets, independently of tab widths. */
#pv-tabs { flex-wrap: wrap; min-width: 0; }
@media (max-width: 1366px) {
    #pv-tabs {
        overflow: visible;
        gap: 6px;
        padding: 10px;
    }
    #pv-tabs .pv-tabs-search {
        order: -1;
        flex: 1 0 100%;
        width: 100%;
        min-width: 0;
        margin: 0 0 6px;
        padding: 0;
        box-sizing: border-box;
    }
    #pv-tabs .pv-tabs-search-icon { display: none; }
    #pv-tabs .pv-search-field {
        flex: 1;
        width: 100%;
        min-width: 0 !important;
        max-width: none !important;
    }
    #pv-tabs .pv-search-input {
        min-height: 46px;
        font-size: 16px;
        padding-right: 48px;
        box-sizing: border-box;
    }
    #pv-tabs .pv-search-chevron { width: 44px; height: 44px; }
    #pv-tabs #pv-search-results {
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
        box-sizing: border-box;
        max-height: min(320px, 45vh);
        overflow-wrap: anywhere;
    }
    #pv-tabs .pv-main-tab {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 10px 14px;
        font-size: .82rem;
    }
    #section-desarrollo .module-subnav {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    #section-desarrollo .module-subnav-tab { flex-shrink: 0; min-height: 44px; }
    #sub-desarrollo-list { min-width: 0; max-width: 100%; overflow-x: visible; }
}
@media (max-width: 1366px) {
    #pv-tabs .pv-search-input::placeholder { font-size: 16px; color: var(--pv-text-muted); }
}

/* Serving settings: keep the physical package separate from optional portions. */
#pv-modo-empleo-container [hidden] { display:none !important; }
.pv-serving-panel { margin-top: 22px; padding: 18px; border: 1px solid rgba(148,163,184,.18); border-radius: 12px; background: rgba(148,163,184,.035); }
.pv-serving-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:16px; color:var(--pv-text-primary,#e2e8f0); font-size:.85rem; font-weight:600; }
.pv-serving-badge { padding:4px 10px; border-radius:20px; color:#b8cced; background:rgba(96,165,250,.09); font-size:.7rem; font-weight:500; }
.pv-serving-grid { display:grid; grid-template-columns:minmax(220px,1.3fr) repeat(2,minmax(130px,1fr)); gap:18px; align-items:start; }
.pv-serving-grid > div { min-width:0; }
.pv-serving-panel .pv-label { font-size:.75rem; margin-bottom:8px; }
.pv-serving-panel .pv-input, .pv-serving-panel .pv-select { min-height:42px; padding:10px 12px !important; border:1px solid rgba(148,163,184,.2); border-radius:8px; background:rgba(15,23,42,.25); }
.pv-serving-panel .pv-editing:focus-visible { outline:2px solid var(--pv-accent,#60a5fa); outline-offset:2px; }
.pv-serving-help { margin:14px 0 0; color:var(--pv-text-secondary,#94a3b8); font-size:.77rem; line-height:1.65; max-width:80ch; }
.pv-serving-panel.is-open-serving { border-color:rgba(96,165,250,.25); }
.pv-serving-panel.is-open-serving .pv-serving-dependent .pv-input,
.pv-serving-panel.is-open-serving .pv-serving-dependent .pv-select { color:#94a3b8 !important; -webkit-text-fill-color:#94a3b8; border:1px dashed rgba(148,163,184,.3) !important; background:rgba(148,163,184,.045) !important; cursor:not-allowed; opacity:1; box-shadow:none !important; }
.pv-serving-panel.is-open-serving .pv-serving-dependent input::placeholder { color:#94a3b8; opacity:1; font-family:inherit; font-style:normal; }
@media (max-width:850px) {
 .pv-serving-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .pv-serving-choice { grid-column:1 / -1; }
}
@media (max-width:520px) {
 .pv-serving-grid { grid-template-columns:minmax(0,1fr); }
 .pv-serving-panel { padding:14px; }
}
