
        :root {
            --client-primary: #0097b2;
            --client-primary-light: color-mix(in srgb, var(--client-primary) 85%, #ffffff 15%);
            --client-primary-extralight: color-mix(in srgb, var(--client-primary) 30%, #ffffff 70%);
            --client-primary-megalight: color-mix(in srgb, var(--client-primary) 10%, #ffffff 70%);
            --client-primary-dark: color-mix(in srgb, var(--client-primary)  60%, #000000 40%);
            --site-primary: var(--client-primary);
            --client-bg: #ffffff;
        }
        .np-social-facebook { background: #1877f2; }
        .np-social-instagram { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
        .np-social-linkedin { background: #0a66c2; }
        .np-social-tiktok { background: #000; }
        .np-social-youtube { background: #ff0000; }
        .np-social-twitter { background: #111827; }
        body {
            margin: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: var(--client-bg);
        }
        header {
            background: linear-gradient(135deg, var(--client-primary)0%,var(--client-primary-dark) 100%);
            color: #f9fafb;
        }
        header h1 {
            margin: 0;
            font-size: 1.05rem;
        }
        header a {
            color: #e5e7eb;
            text-decoration: none;
            font-size: 0.85rem;
            margin-left: 12px;
        }

        /* Admin topbar (visible sur certaines pages admin) */
        .admin-topbar {
            background: #111827;
            color: #f9fafb;
            padding: 10px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .admin-topbar__title {
            font-weight: 700;
            font-size: 0.95rem;
        }
        .admin-topbar__user {
            font-size: 0.85rem;
            opacity: 0.95;
            white-space: nowrap;
        }
        .admin-topbar a {
            color: #f9fafb;
            text-decoration: none;
            margin-left: 12px;
            font-size: 0.85rem;
            opacity: 0.9;
        }
        .admin-topbar a:hover { opacity: 1; }
        @media (max-width: 640px) {
            .admin-topbar {
                padding: 10px 14px;
                flex-wrap: wrap;
                white-space: normal;
            }
            .admin-topbar__user { white-space: normal; }
        }
        input[type="text"] {
            min-width: 90px;
            padding: 6px 8px;
            border-radius: 10px;
            border: 1px solid #d1d5db;
            font-size: 0.9rem;
        }
        main {
            max-width: 95%;
            min-width: 95%;
            margin: 24px auto 40px;
            padding: 0 16px;
        }
        .card {
            background: #ffffff;
            border-radius: 14px;
            margin-bottom: 30px;
            padding: 18px 18px 18px;
        }
        .meta {
            font-size: 0.85rem;
            color: #6b7280;
            margin-bottom: 12px;
        }
        .layout {
            display: grid;
            grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
            gap: 18px;
        }
        .layout.layout--blog {
            grid-template-columns: 35% 65%;
            grid-template-rows: auto auto auto;
            column-gap: 18px;
            row-gap: 14px;
            align-items: start;
        }
        .layout.layout--blog > .layout-edit--blog {
            display: contents;
        }
        .layout.layout--blog > .layout-edit--blog > h2 {
            grid-column: 1 / -1;
            grid-row: 1;
            margin-bottom: 0;
        }
        .layout.layout--blog > .layout-edit--blog > .np-blog-section-form {
            grid-column: 1 / -1;
            grid-row: 2;
            margin-bottom: 0;
        }
        .layout.layout--blog > .preview-wrapper {
            grid-column: 1;
            grid-row: 3;
        }
        .layout.layout--blog > .layout-edit--blog > .blog-manager--editor {
            grid-column: 2;
            grid-row: 3;
            margin-top: 0;
        }
.layout.layout--pages {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
        @media (max-width: 900px) {
            .layout {
                grid-template-columns: 1fr;
            }
            .layout.layout--blog {
                grid-template-columns: 1fr;
                grid-template-rows: auto;
            }
            .layout.layout--blog > .layout-edit--blog > h2,
            .layout.layout--blog > .layout-edit--blog > .np-blog-section-form,
            .layout.layout--blog > .preview-wrapper,
            .layout.layout--blog > .layout-edit--blog > .blog-manager--editor {
                grid-column: 1;
                grid-row: auto;
            }
        }

        /* Preview */
        .preview-wrapper {
            background: #e5e7eb;
            border-radius: 12px;
            padding: 14px;
        }
        .preview-frame {
            background: #f9fafb;
            border-radius: 10px;
            padding: 22px 20px;
            border: 1px solid #e5e7eb;
        }
        .preview-hero-title {
            font-size: 1.6rem;
            font-weight: 600;
            margin: 0 0 6px;
            color: #111827;
        }
        .preview-hero-sub {
            font-size: 0.95rem;
            color: #4b5563;
            margin: 0 0 14px;
        }
        .preview-btn {
            display: inline-block;
            padding: 8px 16px;
            border-radius: 999px;
            font-size: 0.9rem;
            background: var(--client-primary);
            color: #ffffff;
            text-decoration: none;
        }
        .preview-section-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0 0 8px;
            color: #111827;
        }
        .preview-pages-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }
        .preview-pages-select-wrap {
            margin: 0;
        }
        .preview-pages-select {
            min-width: 200px;
            max-width: 240px;
            padding: 6px 10px;
            border-radius: 10px;
            border: 1px solid #d1d5db;
            background: #ffffff;
            font-size: 0.9rem;
        }
        .preview-ai-box {
            background: #fff;
            border: 1px dashed var(--client-primary);
            border-radius: 10px;
            padding: 12px;
            color: #111827;
            line-height: 1.5;
        }
        .preview-ai-box h4 {
            margin: 0 0 6px;
            font-size: 0.95rem;
        }
        .preview-ai-prompt {
            white-space: pre-wrap;
            font-size: 0.95rem;
        }
        .preview-text {
            font-size: 0.95rem;
            color: #374151;
            line-height: 1.5;
        }
        .preview-list {
            margin: 0;
            padding-left: 1.1rem;
        }
        .preview-list li {
            font-size: 0.95rem;
            color: #374151;
            margin-bottom: 4px;
        }
        .preview-services-list {
            margin-top: 10px;
            display: grid;
            gap: 10px;
        }
        .preview-service-item {
            padding: 10px 12px;
            border: 1px solid rgba(15, 23, 42, 0.1);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.8);
            transition: border-color .15s ease, box-shadow .15s ease;
        }
        .preview-service-item[role="button"] {
            cursor: pointer;
        }
        .preview-service-item[role="button"] * {
            cursor: pointer;
        }
        .preview-service-item[role="button"]:hover,
        .preview-service-item[role="button"]:focus-visible {
            border-color: color-mix(in srgb, var(--client-primary) 45%, #94a3b8 55%);
            box-shadow: 0 0 0 2px color-mix(in srgb, var(--client-primary) 14%, transparent);
        }
        .preview-service-item[role="button"]::after {
            content: "Cliquer pour editer";
            display: inline-block;
            margin-top: 6px;
            font-size: 0.72rem;
            font-weight: 700;
            color: #64748b;
            border: 1px dashed #cbd5e1;
            border-radius: 999px;
            padding: 2px 8px;
            background: #f8fafc;
        }
        .preview-service-item.is-selected {
            border-color: color-mix(in srgb, var(--client-primary) 55%, #94a3b8 45%);
            box-shadow: 0 0 0 2px color-mix(in srgb, var(--client-primary) 20%, transparent);
        }
        .preview-service-item-title {
            font-size: 0.92rem;
            font-weight: 800;
            color: #111827;
            margin-bottom: 4px;
        }
        .preview-service-item-text {
            margin: 0;
            font-size: 0.92rem;
            line-height: 1.5;
            color: #374151;
        }
        .service-items-editor {
            display: grid;
            gap: 12px;
        }
        .service-editor-current {
            border: 1px solid #dbe3ee;
            border-radius: 12px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.7);
        }
        .service-editor-current-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        .service-editor-current-index {
            font-size: 0.82rem;
            color: #64748b;
            font-weight: 700;
            border: 1px solid #dbe3ee;
            border-radius: 999px;
            padding: 2px 8px;
            background: #fff;
        }
        .service-item-grid {
            display: grid;
            gap: 10px;
            grid-template-columns: 1fr;
        }
        .service-item-col {
            display: grid;
            gap: 6px;
        }
        .service-item-col label {
            margin: 0;
            font-size: 0.84rem;
            font-weight: 700;
            color: #374151;
        }
        .service-item-col textarea {
            min-height: 92px;
            resize: vertical;
        }
        .service-item-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .service-item-counter {
            font-size: 0.82rem;
            color: #64748b;
            font-weight: 700;
        }
        .service-editor-actions {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .preview-frame .mirar-hours {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 0;
        }
        .preview-frame .mirar-hours li {
            display: grid;
            gap: 6px;
            padding: 10px 0;
            border-bottom: 1px dashed color-mix(in srgb, var(--primary-medium) 40%, transparent);
            background: transparent;
        }
        .preview-frame .mirar-hour-main {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            width: 100%;
        }
        .preview-frame .mirar-hour-daywrap {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .preview-frame .mirar-hour-day {
            font-weight: 700;
            color: var(--primary-dark);
        }
        .preview-frame .mirar-hour-date {
            font-size: 0.85rem;
            color: var(--secondary-color);
            background: color-mix(in srgb, var(--primary-soft) 70%, #ffffff 30%);
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid color-mix(in srgb, var(--primary-medium) 30%, transparent);
        }
        .preview-frame .mirar-hour-hours {
            color: var(--secondary-color);
            font-weight: 600;
        }
        .preview-frame .mirar-hour-hours::before {
            content: " - ";
            color: color-mix(in srgb, var(--primary-medium) 50%, transparent);
        }
        .preview-frame .mirar-hour-chip {
            margin-left: auto;
            display: inline-flex;
            align-items: center;
        }
        .preview-frame .mirar-hour-image {
            width: 50px;
            height: 50px;
            border-radius: 999px;
            object-fit: cover;
            border: 1px solid color-mix(in srgb, var(--primary-medium) 30%, transparent);
            background: #ffffff;
        }
        .preview-frame .mirar-hour-extra {
            display: block;
        }
        .preview-frame .mirar-hour-text {
            color: color-mix(in srgb, var(--primary-dark) 80%, #000000 20%);
            font-size: 0.95rem;
            font-style: italic;
        }
        .preview-frame .mirar-hours-note {
            margin-top: 10px;
            font-size: 0.9rem;
            color: var(--secondary-color);
        }
.preview-contact-item {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 6px;
}
.preview-slider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.preview-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 138px));
    justify-content: flex-start;
}
.preview-slider-thumb {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 3px;
    height: auto;
    min-height: 190px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.preview-slider-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.preview-slider-thumb video {
    width: 100%;
    height: 100px !important;
    max-height: 100px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #000;
}
.preview-video-thumb {
    height: auto;
    padding-bottom: 8px;
}
.preview-video-embed {
    width: 100%;
    height: 100px;
    border-radius: 6px;
    background: linear-gradient(145deg, #111827, #1f2937);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.preview-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.preview-video-filename {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #6b7280;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-video-title-input,
.preview-video-select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 0.85rem;
    color: #111827;
}
.preview-video-title-input:focus,
.preview-video-select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.preview-video-active {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0;
}
.preview-slider-caption {
    margin-top: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-slider-position {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.preview-slider-position label {
    font-size: 0.75rem;
    color: #6b7280;
}
.preview-slider-position input[type="number"] {
    max-width: 40px;
    padding: 6px 8px;
    color: #047857;
    font-weight: 700;
    border: none;
    font-size: 0.9rem;
    text-align: center;
}
.preview-slider-thumb:not(.preview-video-thumb) .preview-slider-position {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}
.preview-slider-thumb:not(.preview-video-thumb) .preview-slider-position input[type="number"] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}
.preview-slider-thumb:not(.preview-video-thumb) form[id^="form-slider-cat-"] {
    width: 100%;
    margin-top: 4px;
    padding: 6px;
    border: 1px dashed color-mix(in srgb, var(--client-primary) 30%, #d1d5db 70%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--client-primary) 6%, #ffffff 94%);
}
.preview-slider-thumb:not(.preview-video-thumb) form[id^="form-slider-cat-"] > div {
    width: 100%;
    min-width: 0 !important;
}
.preview-slider-thumb:not(.preview-video-thumb) form[id^="form-slider-cat-"] label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.preview-slider-thumb:not(.preview-video-thumb) form[id^="form-slider-cat-"] select {
    width: 100%;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.82rem;
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}
.preview-slider-thumb:not(.preview-video-thumb) form[id^="form-slider-cat-"] select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}
.preview-slider-thumb:not(.preview-video-thumb) form[id^="form-slider-cat-"] .btn-mod {
    border: 1px solid color-mix(in srgb, var(--client-primary) 40%, transparent);
    background: color-mix(in srgb, var(--client-primary) 10%, #ffffff 90%);
}
.preview-slider-thumb:not(.preview-video-thumb) form[id^="form-slider-cat-"] .btn-mod:hover {
    background: color-mix(in srgb, var(--client-primary) 18%, #ffffff 82%);
}

.slider-order {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    width: 100%;
    grid-column: 1 / -1;
}

        /* Form */
        h2 {
            margin: 0 0 10px;
            font-size: 1rem;
        }
        .field {
            margin-bottom: 14px;
        }
        label {
            display: block;
            margin-bottom: 4px;
            font-size: 0.9rem;
            font-weight: 500;
        }
        input[type="text"],input[type="password"],input[type="email"],
        select {
            width: 200px;
            box-sizing: border-box;
            padding: 8px 10px;
            border-radius: 8px;
            background: #2e880708;
            color:   #2e8807;
            font-size: 0.9rem;
            font-family: inherit;
            border: none;
        }
        input[type="text"]:hover,
        select:hover {
            outline: none;
            border-color: #43c80a;
            box-shadow: 0 0 10 13px #2e880761;
        }
        input[type="text"]:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #2e8807;
            box-shadow: 0 0 0 3px #2e880761;
        }
        textarea {
            min-height: 90px;
            resize: vertical;
            width: 90%;
        }
        .hint {
            font-size: 0.8rem;
            color: #9ca3af;
            margin-top: 2px;
        }
        .actions {
            margin-bottom: 8px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        button {
            padding: 8px 16px;
            border-radius: 999px;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
        }
        
        .btn-ghost {
            align-items: center;
            justify-content: center;
            gap: 6px;
            display: inline-flex;
            min-height: 36px;
            padding: 2px 12px;
            border: 1px solid #c5f6f0;
            border-radius: 11px;
            box-sizing: border-box;
            background-color: #e8fffb;
            background-position: 0 0;
            color: #0f766e;
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 700;
            line-height: 1.25;
            text-decoration: none;
            text-shadow: none;
            text-underline-offset: 1px;
            user-select: none;
            -webkit-user-select: none;
            touch-action: manipulation;
            white-space: nowrap;
            box-shadow: none;
            transition: border .2s ease-in-out, box-shadow .2s ease-in-out, background-color .2s ease-in-out, color .2s ease-in-out;
        }
        .btn-ghost:active,
        .btn-ghost:hover,
        .btn-ghost:focus {
            outline: 0;
        }
        .btn-ghost:hover {
            background-color: #dcfbf5;
            border-color: #7dd3c7;
            color: #0f766e;
            box-shadow: 0 8px 16px rgba(13, 148, 136, 0.18);
        }
        .btn-ghost:active {
            background-color: #0f766e;
            border-color: #0f766e;
            box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
            color: #ffffff;
        }
        .btn-ghost:focus-visible {
            outline: 2px solid #5eead4;
            outline-offset: 2px;
        }
        .btn-ghost:active:hover,
        .btn-ghost:focus:hover,
        .btn-ghost:focus {
            background-color: #0f766e;
            border-color: #0f766e;
            box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
            color: #ffffff;
        }
        
        .alert {
            padding: 8px 10px;
            border-radius: 8px;
            font-size: 0.85rem;
            margin-bottom: 10px;
        }
        .alert-ok {
            background: #dcfce7;
            color: #166534;
        }
.alert-err {
    background: #fee2e2;
    color: #991b1b;
}

/* Scrollbar (base/light) */
html {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Activity log (admin) */
.np-activity-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.np-activity-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}
.np-activity-table th,
.np-activity-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    white-space: nowrap;
}
.np-activity-table th a {
    color: #111827;
    text-decoration: none;
    font-weight: 800;
}
.np-activity-table tr:last-child td {
    border-bottom: none;
}

.np-activity-table-wrap.is-loading {
    opacity: 0.65;
}

.np-activity-pager {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.np-pager {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.np-pager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

.np-pager-link.is-current {
    background: var(--client-primary);
    border-color: var(--client-primary-extralight);
    color: #ffffff;
}

.np-pager-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.np-pager-ellipsis {
    color: #6b7280;
    padding: 0 4px;
}

/* --- Page admin/sites.php (np-sites) --- */
.np-sites {
  --np-bg: #f3f4f6;
  --np-card: #ffffff;
  --np-border: #e5e7eb;
  --np-text: #111827;
  --np-muted: #6b7280;
  --np-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.np-sites body,
body.np-sites {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--np-bg);
  color: var(--np-text);
}

.np-sites header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: linear-gradient(135deg, rgba(8,15,34,0.90), rgba(13,27,60,0.86));
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid rgba(255,255,255,0.20);
  color: #f9fafb;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.26);
}

.np-sites header h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.np-sites header .user {
  font-size: 0.9rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.np-sites header a {
  color: #f9fafb;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: .95;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 5px 10px;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.np-sites header a:hover {
  text-decoration: none;
  opacity: 1;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}

.np-sites header a.is-active {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.44);
  opacity: 1;
}

.np-sites main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 18px 40px;
  box-sizing: border-box;
}

.np-sites .sites-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.18fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.np-sites .sites-card {
  background: var(--np-card);
  border: 1px solid var(--np-border);
  border-radius: 14px;
  box-shadow: var(--np-shadow);
  padding: 14px 14px;
  min-width: 0;
}

.np-sites .sites-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.np-sites .np-template-list {
  display: grid;
  gap: 10px;
}
.np-sites .np-template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--np-border);
  border-radius: 12px;
  background: var(--np-card);
  min-width: 0;
}
.np-sites .np-template-meta {
  min-width: 0;
}
.np-sites .np-template-name {
  font-weight: 700;
  color: var(--np-text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-sites .np-template-id {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--np-muted);
}
.np-sites .np-template-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.np-sites .np-template-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
  background: color-mix(in srgb, #14b8a6 12%, #ffffff 88%);
  border: 1px solid color-mix(in srgb, #14b8a6 28%, transparent);
}
.np-sites .np-template-badge.is-used {
  color: #991b1b;
  background: color-mix(in srgb, #ef4444 12%, #ffffff 88%);
  border-color: color-mix(in srgb, #ef4444 30%, transparent);
}
.np-sites .btn-icon-lock {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  opacity: 0.9;
}
.np-sites .btn-icon-lock.is-used {
  color: #991b1b;
  border-color: color-mix(in srgb, #ef4444 30%, transparent);
  background: color-mix(in srgb, #ef4444 10%, #ffffff 90%);
  cursor: pointer;
}
.np-sites .btn-icon-lock.is-used:hover {
  background: color-mix(in srgb, #ef4444 16%, #ffffff 84%);
}
.np-sites .btn-icon-lock svg {
  width: 16px;
  height: 16px;
  display: block;
}

.np-sites .np-modal[hidden],
.np-modal[hidden] { display: none; }
.np-sites .np-modal,
.np-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 16px;
}
.np-sites .np-modal-backdrop,
.np-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.np-sites .np-modal-card,
.np-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  background: var(--np-card);
  border: 1px solid var(--np-border);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.28);
  padding: 14px 14px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.np-sites .np-modal-card h3,
.np-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.np-sites .np-modal-text,
.np-modal-text {
  margin: 0 0 12px;
  color: var(--np-text);
  font-size: 0.95rem;
}
.np-sites .np-modal-actions,
.np-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.np-sites .np-asset-modal .np-modal-card,
.np-asset-modal .np-modal-card {
  width: min(860px, calc(100vw - 32px));
  padding: 16px;
  background: #ffffff;
}
.np-sites .np-asset-modal-head,
.np-asset-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.np-sites .np-asset-modal-head h3,
.np-asset-modal-head h3 {
  margin: 0;
  font-size: 1rem;
}
.np-sites .np-asset-modal-close,
.np-asset-modal-close {
  border-radius: 10px;
  font-size: 1.1rem;
  padding: 4px 10px;
}
.np-sites .np-asset-modal-tabs,
.np-asset-modal-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}
.np-sites .np-asset-tab-btn,
.np-asset-tab-btn {
  border: 1px solid var(--np-border);
  background: #f8fafc;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
}
.np-sites .np-asset-tab-btn.is-active,
.np-asset-tab-btn.is-active {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
}
.np-sites .np-asset-modal-body,
.np-asset-modal-body {
  display: grid;
  gap: 12px;
}
.np-sites .np-asset-tab-panel,
.np-asset-tab-panel {
  display: none;
}
.np-sites .np-asset-tab-panel.is-active,
.np-asset-tab-panel.is-active {
  display: block;
}
.np-sites .np-asset-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.np-sites .np-asset-search-input {
  flex: 1 1 auto;
  border: 1px solid var(--np-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
}
.np-sites .np-asset-refresh {
  padding: 6px 10px;
  border-radius: 10px;
}
.np-sites .np-asset-pick-grid,
.np-asset-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.np-sites .np-asset-pick,
.np-asset-pick {
  border: 1px solid var(--np-border);
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  cursor: pointer;
}
.np-sites .np-asset-pick-thumb,
.np-asset-pick-thumb {
  display: block;
  height: 90px;
  background: #f8fafc;
  overflow: hidden;
}
.np-sites .np-asset-pick-thumb img,
.np-sites .np-asset-pick-thumb video,
.np-asset-pick-thumb img,
.np-asset-pick-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.np-sites .np-asset-pick-meta,
.np-asset-pick-meta {
  display: grid;
  gap: 4px;
  padding: 8px 10px 10px;
}
.np-sites .np-asset-pick-name,
.np-asset-pick-name {
  font-weight: 700;
  font-size: 0.84rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-sites .np-asset-pick-folder,
.np-asset-pick-folder {
  font-size: 0.75rem;
  color: #64748b;
}
.np-sites .np-asset-empty {
  font-size: 0.9rem;
  color: var(--np-muted);
  padding: 6px 2px;
}
.np-sites .np-asset-device {
  display: grid;
  gap: 8px;
  padding: 8px 2px;
  color: #0f172a;
}

.np-sites .sites-card .hint {
  margin: 6px 0 0;
  font-size: .85rem;
  color: var(--np-muted);
}

.np-sites .np-domain-result {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.np-sites .np-domain-block {
  border: 1px solid var(--np-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.np-sites .np-domain-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border-bottom: 1px solid var(--np-border);
}

.np-sites .np-domain-block-head strong {
  font-size: 0.86rem;
}

.np-sites .np-domain-dns {
  margin: 0;
  padding: 8px 10px 8px 26px;
  display: grid;
  gap: 6px;
}

.np-sites .np-domain-dns code {
  font-size: 0.83rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 7px;
}

.np-sites .np-domain-code {
  margin: 0;
  padding: 10px;
  font-size: 0.79rem;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre;
  overflow: auto;
  max-height: 260px;
  background: #0f172a;
  color: #e2e8f0;
}

.np-sites .table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--np-border);
}

.np-sites .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  min-width: 620px;
}

.np-sites .table-wrap th,
.np-sites .table-wrap td {
  padding: 10px 12px;
  font-size: 0.9rem;
  text-align: left;
  white-space: nowrap;
}

.np-sites .table-wrap th {
  background: #f3f4f6;
  font-weight: 700;
}

.np-sites .table-wrap tr + tr td {
  border-top: 1px solid #e5e7eb;
}

/* Activity log table: fit inside middle column */
.np-sites .np-activity-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.np-sites table.np-activity-table {
  min-width: 0;
  table-layout: fixed;
}

.np-sites table.np-activity-table th,
.np-sites table.np-activity-table td {
  padding: 8px 10px;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-sites table.np-activity-table th:nth-child(1),
.np-sites table.np-activity-table td:nth-child(1) {
  width: 38%;
}

.np-sites table.np-activity-table th:nth-child(2),
.np-sites table.np-activity-table td:nth-child(2) {
  width: 42%;
}

.np-sites table.np-activity-table th:nth-child(3),
.np-sites table.np-activity-table td:nth-child(3) {
  width: 120px;
}

.np-sites .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.np-sites .badge-on {
  background: #dcfce7;
  color: #166534;
}

.np-sites .badge-off {
  background: #fee2e2;
  color: #991b1b;
}

.np-sites .actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.np-sites .actions .np-action-form {
  display: inline;
  margin: 0;
}

.np-sites .actions .np-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #2563eb;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
}

.np-sites .actions .np-action-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.np-sites .actions .np-action-icon:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.np-sites .actions .np-action-icon--danger {
  color: #b91c1c;
}

.np-sites .actions .np-action-icon--danger:hover {
  background: #fee2e2;
  border-color: #fecaca;
}

.np-sites .actions button.np-action-icon {
  cursor: pointer;
  padding: 0;
}

/* --- Plugins (admin/sites.php) --- */
.np-sites .np-plugin-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* MVP: "Payé" suffit (actif est dérivé) */
.np-sites form.np-plugin-cell .np-switch:first-of-type {
  display: inline-flex;
}

.np-sites td:first-child {
  white-space: nowrap;
}
.np-sites td.is-client-online {
  color: #16a34a;
  font-weight: 650;
}
.np-sites td.is-client-offline {
  color: #6b7280;
}
.np-sites .np-plugin-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
}
.np-sites .np-plugin-status.is-allowed { color: #16a34a; }
.np-sites .np-plugin-status.is-blocked { color: #b91c1c; }

/* --- Presence + messagerie (admin/sites.php) --- */
.np-sites .np-sites-presence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
}
.np-sites .np-sites-presence-label {
  font-size: 0.82rem;
  opacity: 0.95;
}
.np-toggle--presence input:checked + .np-toggle-ui {
  background: #16a34a;
  border-color: color-mix(in srgb, #16a34a 60%, transparent);
}
.np-unread-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}
.np-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 6px;
}
.np-sites .np-chat-card {
  min-width: 0;
}
.np-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.np-chat-toolbar-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.np-chat-label {
  font-size: 0.9rem;
  font-weight: 700;
}
.np-chat-title-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ef4444;
}
.np-chat-select {
  min-width: 320px;
}
.np-chat-presence {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
}
.np-chat-presence.is-on {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}
.np-chat-presence.is-off {
  border-color: #fed7aa;
  background: #ffedd5;
  color: #9a3412;
}
.np-chat-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}
.np-chat-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.np-chat-hint {
  font-size: 0.82rem;
  color: #6b7280;
}
.np-chat-messages {
  height: 340px;
  overflow: auto;
  padding: 12px;
  background: #ffffff;
}
.np-chat-msg {
  display: flex;
  margin: 8px 0;
}
.np-chat-msg.is-admin {
  justify-content: flex-end;
}
.np-chat-bubble {
  max-width: min(640px, 92%);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.np-chat-msg.is-admin .np-chat-bubble {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.np-chat-body {
  white-space: pre-wrap;
  word-break: break-word;
}
.np-chat-meta {
  margin-top: 6px;
  font-size: 0.72rem;
  opacity: 0.75;
}
.np-chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
.np-chat-input {
  width: 100%;
  min-height: 44px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
}
.np-chat-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147,197,253,0.35);
}

/* --- Layout sites.php : liste+activité | messagerie | création --- */
.np-sites .np-sites-col-left {
  grid-column: 1 / 2; /* Sites + Activité */
  grid-row: 1;
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.np-sites .np-chat-card {
  grid-column: 2 / 3; /* Messagerie */
  grid-row: 1;
}
.np-sites .np-create-stack {
  grid-column: 3 / 4; /* Templates + Creer un client */
  grid-row: 1;
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

@media (max-width: 1200px) {
  .np-sites .sites-grid {
    grid-template-columns: 1fr;
  }
  .np-sites .np-sites-col-left,
  .np-sites .np-chat-card,
  .np-sites .np-create-stack {
    grid-column: auto;
    grid-row: auto;
  }
}

/* --- Layout sites.php (override) : 3 blocs + liste --- */
.np-sites .np-chat-card {
  grid-column: 3 / 4; /* Messagerie */
  grid-row: 1;
  min-width: 0;
}
.np-sites .np-activity-card {
  grid-column: 1 / 2; /* Activite */
  grid-row: 1;
  min-width: 0;
}
.np-sites .np-create-stack {
  grid-column: 2 / 3; /* Templates + Mises a jour + Domaine + Creer client */
  grid-row: 1;
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}
.np-sites .np-create-stack .np-create-card { order: 1; }
.np-sites .np-create-stack .np-domain-card { order: 2; }
.np-sites .np-create-stack .np-update-card { order: 3; }
.np-sites .np-create-stack .np-template-card { order: 4; }
.np-sites .np-sites-list-card {
  grid-column: 1 / -1; /* Liste des sites */
  grid-row: 2;
  min-width: 0;
  scroll-margin-top: 16px;
}

@media (max-width: 1200px) {
  .np-sites .sites-grid {
    grid-template-columns: 1fr;
  }
  .np-sites .np-chat-card,
  .np-sites .np-activity-card,
  .np-sites .np-create-stack,
  .np-sites .np-sites-list-card {
    grid-column: auto;
    grid-row: auto;
  }
}
/* --- Zone IA Admin --- */
.ia-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ia-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--client-primary) 0%, var(--client-primary-dark) 100%);
    color: #f9fafb;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    outline: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ia-btn:hover {
    background: linear-gradient(135deg, var(--client-primary-dark) 0%, var(--client-primary) 100%);
    box-shadow: 0 10px 22px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.ia-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}

.ia-status {
    font-size: 0.85rem;
    color: #6b7280;
}

.ia-info-box {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0f172a;
    background: color-mix(in srgb, var(--client-primary) 10%, #ffffff 90%);
    border: 1px solid color-mix(in srgb, var(--client-primary) 35%, #ffffff 65%);
}

/* Petit retour visuel */
.ia-status {
    margin-top: 6px;
    font-size: 13px;
    color: #083853;
}
/* --- HERO PREVIEW AVATAR --- */

.preview-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.preview-hero-avatar {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    overflow: hidden;
    background: #e6e6e6;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
}

.preview-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.preview-hero-title {
    font-size: 24px;
    font-weight: 700;
}

.preview-hero-sub {
    font-size: 16px;
    opacity: 0.8;
}

.preview-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #083853;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 8px;
}
/* === Mirar – HERO avec avatar === */

.hero-section {
    padding-top: 32px;
    padding-bottom: 32px;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    overflow: hidden;
    background: #f2f2f2;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.hero-sub {
    font-size: 15px;
    color: #555;
}
/* Bloc avatar Mirar – admin */
.avatar-settings {
    display: grid;
    grid-template-columns: 120px minmax(220px, 1fr);
    column-gap: 14px;
    row-gap: 10px;
    align-items: start;
    border: 1px dashed var(--client-border);
    position: relative;
    margin-bottom: 15px;
    border-radius: 10px;
}
.avatar-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    z-index: 9999;
}
.avatar-preview {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    flex-shrink: 0;
}
.avatar-preview img {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
}

.avatar-actions {
    display: contents;
}

.avatar-settings .banner-title {
    grid-column: 1 / span 2;
    grid-row: 1;
    margin-bottom: 4px;
}

.avatar-dropzone {
    border: 1px dashed #0066ff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #6b7280;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 80%;
    height: 90px;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.avatar-dropzone.is-dragover {
    border-color: #111827;
    background: #9bc3ff37;
}

.avatar-dropzone-label {
    margin-right: 4px; 
}

@media (max-width: 700px) {
    .avatar-settings {
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: center;
    }
    .avatar-settings .banner-title {
        grid-column: 1;
        grid-row: 1;
    }
    .avatar-dropzone {
        grid-column: 1;
        grid-row: auto;
    }
}

.avatar-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
    grid-column: 1 / span 2;
    color:var(--client-primary);
}
.avatar-style-row label {
    margin: 0;
    display: inline-block;
    color: var(--client-primary) !important;
}
.avatar-style-arrow {
    display: inline-block;
    color: var(--client-primary) !important;
    font-weight: 700;
}

.avatar-status {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    grid-column: 1 / span 2;
}
.avatar-quota-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    grid-column: 1 / span 2;
}
.avatar-quota {
    font-size: 0.8rem;
    color: #6b7280;
}
.avatar-quota--na {
    opacity: 0.7;
}
.avatar-quota-override {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--client-primary);
    user-select: none;
}
.avatar-quota-override input {
    transform: translateY(1px);
}

.avatar-status--error {
    color: #b91c1c;
}

.avatar-status--ok {
    color: #047857;
}
.ai-image-box {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.ai-image-title {
    font-weight: 700;
    color: #1f2937;
}
.ai-image-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ai-image-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ai-image-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #1f2937;
}
.ai-image-toggle input {
    transform: translateY(1px);
}
.ai-image-hidden {
    display: none;
}
.ai-image-quota-global {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 6px 0 8px 0;
}
.ai-image-status {
    font-size: 0.85rem;
    color: #6b7280;
}
.ai-image-status.ok {
    color: #047857;
}
.ai-image-status.err {
    color: #b91c1c;
}
.ai-image-preview-wrap {
    display: flex;
}
.ai-image-preview {
    width: 100%;
    max-width: 320px;
    height: 180px;
    border-radius: 12px;
    background: #e5e7eb;
    background-size: cover;
    background-position: center;
    display: block;
}
img.ai-image-preview {
    object-fit: cover;
}
.ai-image-preview.placeholder {
    background: #eef2f7;
}
.ai-image-loading [data-ai-generate] {
    opacity: 0.7;
    pointer-events: none;
}
.ai-image-quota {
    font-size: 0.8rem;
    color: #6b7280;
}
.ai-image-quota--na {
    opacity: 0.7;
}
#sections-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .section-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            border-radius: 10px;
            background: #f9fafb;
            border:1px dashed var(--client-primary-extralight)! important;
            margin-bottom: 8px;
            cursor: grab;
        }
        .section-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .handle {
            font-size: 1.1rem;
            color: #9ca3af;
        }
        .section-type {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: .06em;
            color: #6b7280;
        }
        .section-title {
            font-size: 0.9rem;
            font-weight: 500;
        }
        .section-actions a {
            font-size: 0.8rem;
            text-decoration: none;
            color: #2563eb;
        }
        .section-item .section-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-item,
        .section-grid-editor {
            overflow: visible;
        }
        .section-note {
            font-size: 0.78rem;
            color: #6b7280;
            margin-top: 4px;
        }
        .section-item.is-disabled {
            cursor: default;
        }
        .section-item.is-disabled .section-left,
        .section-item.is-disabled .section-actions > *:not(.np-help) {
            opacity: 0.55;
        }
        .section-item.is-inactive .section-left,
        .section-item.is-inactive .section-actions > *:not(.np-help) {
            opacity: 0.75;
        }
        .section-item .section-actions .np-help,
        .section-item .section-actions .np-help .np-help-pop {
            opacity: 1;
        }
        .np-switch {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            color: #4b5563;
            user-select: none;
            -webkit-user-select: none;
        }
        .np-switch input[type="checkbox"] {
            accent-color: var(--client-primary);
        }
        .np-switch-label {
            white-space: nowrap;
        }
        .section-actions .section-edit {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px dashed #c7d2fe;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #2563eb;
            background: #ffffff;
            transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
        }
        .section-actions .section-edit:hover {
            background: #eff6ff;
            border-color: #a5b4fc;
        }
        .section-actions .section-edit-icon {
            width: 16px;
            height: 16px;
            transition: transform 160ms ease;
        }
        .section-actions .section-edit:hover .section-edit-icon {
            transform: rotate(18deg);
        }

        /* Toggle (style Mirar AI) */
        .np-toggle {
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            -webkit-tap-highlight-color: transparent;
            position: relative;
        }
        .user-editor .np-toggle[data-tooltip]::after,
        .user-editor .np-toggle[data-tooltip]::before {
            pointer-events: none;
            opacity: 0;
            transition: opacity 160ms ease, transform 160ms ease;
        }
        .user-editor .np-toggle[data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            left: 50%;
            bottom: calc(100% + 12px);
            transform: translate(-50%, 6px);
            background: #d60c71;
            color: #ffffff;
            font-size: 0.78rem;
            line-height: 1.2;
            padding: 8px 10px;
            border-radius: 12px;
            white-space: normal;
            width: max-content;
            max-width: 220px;
            box-shadow: 0 12px 28px rgba(214, 12, 113, 0.35);
            z-index: 5200;
        }
        .user-editor .np-toggle[data-tooltip]::before {
            content: "";
            position: absolute;
            left: 50%;
            bottom: calc(100% + 4px);
            transform: translate(-50%, 6px);
            border: 6px solid transparent;
            border-top-color: #d60c71;
            z-index: 5199;
        }
        .user-editor .np-toggle[data-tooltip]:hover::after,
        .user-editor .np-toggle[data-tooltip]:hover::before {
            opacity: 1;
            transform: translate(-50%, 0);
        }
        .np-toggle input {
            position: absolute;
            opacity: 0;
            width: 1px;
            height: 1px;
            pointer-events: none;
        }
        .np-toggle-ui {
            width: 42px;
            height: 24px;
            border-radius: 999px;
            background: color-mix(in srgb, var(--client-primary) 35%, #ffffff 65%);
            border: 1px solid color-mix(in srgb, var(--client-primary) 55%, transparent);
            position: relative;
            transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
        }
        .np-toggle-ui::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 3px;
            width: 18px;
            height: 18px;
            border-radius: 999px;
            background: #ffffff;
            transform: translateY(-50%);
            box-shadow: 0 6px 16px rgba(0,0,0,0.20);
            transition: left 160ms ease, transform 160ms ease;
        }
        .np-toggle input:checked + .np-toggle-ui {
            background: #dc2743;
            border-color: color-mix(in srgb, #dc2743 60%, transparent);
        }
        .np-toggle input:checked + .np-toggle-ui::after {
            left: calc(100% - 3px);
            transform: translate(-100%, -50%);
        }
        .np-toggle input:focus-visible + .np-toggle-ui {
            outline: 2px solid color-mix(in srgb, var(--client-primary-dark) 45%, #ffffff 55%);
            outline-offset: 2px;
        }
        .section-actions .np-toggle {
            gap: 6px;
        }
        .section-actions .np-toggle--green .np-toggle-ui {
            background: #e5e7eb;
            border-color: #d1d5db;
        }
        .section-actions .np-toggle--green input:checked + .np-toggle-ui {
            background: #22c55e;
            border-color: #16a34a;
        }
        .section-actions .np-toggle--green input:disabled + .np-toggle-ui {
            opacity: 0.5;
        }
        .section-actions .np-toggle--blue .np-toggle-ui {
            background: #e8efff;
            border-color: #c7d2fe;
        }
        .section-actions .np-toggle--blue input:checked + .np-toggle-ui {
            background: #3b82f6;
            border-color: #2563eb;
        }
        .section-actions .np-toggle--blue input:disabled + .np-toggle-ui {
            opacity: 0.55;
        }
        .section-actions .np-toggle-text {
            font-size: 0.78rem;
            color: #9ca3af;
            white-space: nowrap;
        }
        .section-actions .np-toggle input:checked ~ .np-toggle-text {
            color: #16a34a;
        }
        .controls {
            position: relative;
            margin-top: 14px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        .btn-small {
            align-items: center;
            justify-content: center;
            gap: 6px;
            display: inline-flex;
            min-height: 36px;
            padding: 2px 12px;
            border: 1px solid #c5f6f0;
            border-radius: 11px;
            box-sizing: border-box;
            background-color: #e8fffb;
            background-position: 0 0;
            color: #0f766e;
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 700;
            line-height: 1.25;
            text-decoration: none;
            text-shadow: none;
            text-underline-offset: 1px;
            user-select: none;
            -webkit-user-select: none;
            touch-action: manipulation;
            white-space: nowrap;
            box-shadow: none;
            transition: border .2s ease-in-out, box-shadow .2s ease-in-out, background-color .2s ease-in-out, color .2s ease-in-out;
        }
        .btn-small:active,
        .btn-small:hover,
        .btn-small:focus {
            outline: 0;
        }
        .btn-small:hover {
            background-color: #dcfbf5;
            border-color: #7dd3c7;
            color: #0f766e;
            box-shadow: 0 8px 16px rgba(13, 148, 136, 0.18);
        }
        .btn-small:active {
            background-color: #0f766e;
            border-color: #0f766e;
            box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
            color: #ffffff;
        }
        .btn-small:focus-visible {
            outline: 2px solid #5eead4;
            outline-offset: 2px;
        }
        .btn-small:active:hover,
        .btn-small:focus:hover,
        .btn-small:focus {
            background-color: #0f766e;
            border-color: #0f766e;
            box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
            color: #ffffff;
        }
        .btn-icon-save {
            width: 36px;
            height: 32px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .btn-icon-save svg {
            width: 25px;
            height: 25px;
            display: block;
        }
        .btn-icon-upload {
            width: 36px;
            height: 32px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .btn-icon-upload svg {
            width: 25px;
            height: 25px;
            display: block;
        }
        .status {
            font-size: 0.85rem;
            margin-top: 8px;
            color: #6b7280;
        }
        .status.ok { color: #15803d; }
        .status.err { color: #b91c1c; }

        /* Bloc couleurs */
.color-row {
    display: grid;
    grid-template-columns: 150px 44px minmax(140px, 1fr);
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.color-row label {
    font-size: 0.9rem;
    margin: 0;
    color: var(--client-primary-dark) !important;
}
.mainailogs {
            max-width: 85%;
            margin: 24px auto 40px;
            padding: 0 16px;
        }
.ai-log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ai-log-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    font-size: 0.9rem;
    color: #111827;
}
.ai-log-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #6b7280;
    flex-wrap: wrap;
}
.ai-log-status {
    padding: 2px 8px;
    border-radius: 999px;
    color: #5aa30796 !important;
    font-weight: 700;
}
.ai-log-tokens {
    margin-left: auto;
    font-weight: 600;
    color: var(--client-primary-light);
}
.ai-log-q,
.ai-log-a {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--client-primary-light);
    font-weight: 700;
}
.ai-log-q span,
.ai-log-a span{
    margin-top: 4px;
    font-size: 0.9rem;
    color:#222;
    font-weight: 500;
}
.ai-log-table-wrapper {
    overflow-x: auto;
}
.ai-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.ai-log-table th,
.ai-log-table td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}
.ai-log-table th a {
    color: var(--client-primary-light);
    text-decoration: none;
    font-weight: 700;
}
.ai-log-table th a:hover {
    text-decoration: underline;
}
.social-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}
.social-row label {
    margin: 0;
    font-weight: 600;
    color: #111827;
}
.social-inputs {
    display: grid;
    grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
    gap: 2px;
    align-items: center;
      
}
.social-inputs > :only-child {
    grid-column: 1 / -1;
}
.social-inputs > * {
    min-width: 0;
}
.social_url{
    width: 80%;
    max-width: 80%;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}
.social-style-select {
    padding: 4px 8px;
    font-size: 0.95rem;
    max-width: 60%;
    min-width: 0;
    border:none;
    font-weight: 600;
    background: #2e880708;
    color:   #2e8807;
    transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}
.np-tts-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.np-tts-row .social-style-select {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
}
.np-tts-play {
    border-radius: 10px;
}
.np-tts-play.is-playing {
    background: rgba(46, 136, 7, 0.18);
}
.user-editor #ue-tts .np-ai-tts-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.user-editor #ue-tts .np-ai-tts-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}
.user-editor #ue-tts .np-ai-tts-chip--mode {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.user-editor #ue-tts .np-ai-tts-chip--voice {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.user-editor #ue-tts .np-ai-tts-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-editor #ue-tts .np-ai-tts-row {
    align-items: center;
}
.user-editor #ue-tts .social-style-select {
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
    color: #0f172a;
    font-weight: 600;
}
.user-editor #ue-tts .np-tts-play {
    min-width: 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c7ebe3;
    background: #eefaf6;
    color: #0f766e;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.10);
}
.user-editor #ue-tts .np-tts-play:hover {
    background: #ffffff;
    box-shadow: 0 12px 20px rgba(15, 118, 110, 0.14);
}
.user-editor #ue-tts .np-tts-play.is-playing {
    background: #0f766e;
    color: #ffffff;
}
@media (max-width: 520px) {
    .social-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .social-inputs {
        grid-template-columns: 1fr;
    }
}
.social-style-select.social-facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}
.social-style-select.social-instagram {
    background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: #dc2743;
    color: #ffffff;
}
.social-style-select.social-linkedin {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #ffffff;
}
.social-style-select.social-tiktok {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}
.social-style-select.social-youtube {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}
.social-style-select.social-twitter {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}
.user-editor .social-style-select.social-facebook,
.user-editor .social-style-select.social-instagram,
.user-editor .social-style-select.social-linkedin,
.user-editor .social-style-select.social-tiktok,
.user-editor .social-style-select.social-youtube,
.user-editor .social-style-select.social-twitter {
    color: #ffffff;
}
.user-editor .social-style-select.social-facebook {
    background: #1877f2;
    border-color: #1877f2;
}
.user-editor .social-style-select.social-instagram {
    background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: #dc2743;
}
.user-editor .social-style-select.social-linkedin {
    background: #0a66c2;
    border-color: #0a66c2;
}
.user-editor .social-style-select.social-tiktok {
    background: #000000;
    border-color: #000000;
}
.user-editor .social-style-select.social-youtube {
    background: #ff0000;
    border-color: #ff0000;
}
.user-editor .social-style-select.social-twitter {
    background: #111827;
    border-color: #111827;
}
.social-style-select option {
    background: #ffffff;
    color: #111827;
}
.color-alert {
    font-size: 0.8rem;
    margin-top: 8px;
}
        .color-alert.ok {
            color: #15803d;
        }
        .color-alert.err {
            color: #b91c1c;
        }
        .site-meta {
            font-size: 0.9rem;
            color: #4b5563;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
        }
        .site-meta-block {
            flex: 1;
        }
        .site-meta a.btn {
            padding: 7px 12px;
            border-radius: 999px;
            border: none;
            background: #111827;
            color: #f9fafb;
            font-size: 0.8rem;
            text-decoration: none;
            white-space: nowrap;
        }
.avatar-spinner{
    display: none;            /* caché par défaut */
    margin-top: 8px;
    font-size: 0.85rem;
    color: #374151;
    align-items: center;
    gap: 8px;
}

.avatar-spinner.is-loading{
    display: inline-flex;     /* visible seulement quand on génère */
}

.avatar-spinner::before{
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    border-top-color: #374151;
    animation: avatarLoader 1s ease-in-out infinite;
}

@keyframes avatarLoader{
    0%   { transform: rotate(0deg);   opacity: .6; }
    50%  { transform: rotate(180deg); opacity: 1;  }
    100% { transform: rotate(360deg); opacity: .6; }
}


.avatar-style-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.avatar-style-select {
    padding: 4px 8px;
    font-size: 0.80rem;
    background: #2e880708;
    color:   #2e8807;
    border-radius: 6px;
    border: none;
    width: auto;
    min-width: 140px;
}

/* === USER EDITOR (client) === */

.user-editor,
html {
    scroll-behavior: smooth;
}
.user-editor {
    --np-nav-top: 16px;
}
.user-editor:not(.np-ue-layout-ready) .np-user-editor-main {
    opacity: 0;
}
.user-editor.np-ue-layout-ready .np-user-editor-main {
    opacity: 1;
    transition: opacity 120ms ease;
}
.user-editor .np-user-editor-main {
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(420px, 50%) minmax(220px, 20%);
    gap: 18px;
    align-items: start;
}
.user-editor .np-ue-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    align-self: start;
    align-items: stretch;
    width: 100%;
}
.user-editor .np-ue-col-2 {
    position: relative;
    z-index: 20;
}
.user-editor .np-ue-col-1 {
    min-height: 100vh;
    align-self: stretch;
}
.user-editor .np-ue-col-3 {
    position: sticky;
    top: 16px;
    align-self: start;
    z-index: 5;
}
.user-editor .np-user-editor-main {
    isolation: isolate;
}
.user-editor .np-ue-col.is-help-active {
    z-index: 60 !important;
}
.user-editor .np-ue-anchor {
    scroll-margin-top: 90px;
}
.user-editor #ue-nav {
    position: sticky;
    top: var(--np-nav-top, 16px);
    width: 100%;
}
.user-editor .meta-card {
    width: 100%;
}
.user-editor .meta-card {
    align-self: start;
}
.user-editor .np-ue-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 0 0;
}
.user-editor .np-ue-nav-list.np-ue-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.user-editor .np-ue-menu-separator {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.45), rgba(56, 189, 248, 0.1));
    margin: 4px 2px 2px;
    border-radius: 999px;
}
.user-editor .np-ue-nav-list:not(.np-ue-menu) a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}
.user-editor .np-ue-nav-list:not(.np-ue-menu) a:hover {
    background: #e2e8f0;
}
.user-editor .np-ue-nav-list:not(.np-ue-menu) a.is-active {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}
.user-editor .np-ue-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 7px 7px;
    border-radius: 16px;
    border: 0;
    background: linear-gradient(180deg, #f1f5f9 0%, #e7edf5 100%);
    color: #162033;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.77rem;
    text-align: center;
    min-height: 64px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.user-editor .np-ue-menu-item:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #f6f9fc 0%, #edf3fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 16px 30px rgba(15, 23, 42, 0.09);
}
.user-editor .np-ue-menu-item:focus-visible {
    outline: 2px solid var(--ue-color);
    outline-offset: 3px;
}
.user-editor .np-ue-menu-item.is-active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18)), var(--ue-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 18px 32px rgba(15, 23, 42, 0.14);
}
.user-editor .np-ue-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    border: 0;
    background: var(--ue-color);
    color: #102033;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 18px rgba(15, 23, 42, 0.1);
}
.user-editor .np-ue-menu-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.user-editor .np-ue-menu-label {
    display: block;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.user-editor .np-ue-menu-item--link {
    background: linear-gradient(180deg, #f3f8fd 0%, #e8f0f8 100%);
}
.user-editor .np-ue-menu-item--shortcut {
    background: linear-gradient(180deg, #f0f6fd 0%, #e3ecf8 100%);
}
.user-editor .np-ue-menu-item--shortcut:hover {
    background: linear-gradient(180deg, #f5f9fe 0%, #eaf3fc 100%);
}
.user-editor .np-ue-menu-item--shortcut:focus-visible {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18)), var(--ue-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 18px 32px rgba(15, 23, 42, 0.14);
}
.user-editor .np-ue-menu-item--shortcut:active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14)), var(--ue-color);
    transform: translateY(0);
}
.user-editor .np-ue-menu-item.is-active .np-ue-menu-icon,
.user-editor .np-ue-menu-item--shortcut:focus-visible .np-ue-menu-icon,
.user-editor .np-ue-menu-item--shortcut:active .np-ue-menu-icon {
    background: rgba(255, 255, 255, 0.34);
    color: #102033;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 10px 18px rgba(15, 23, 42, 0.1);
}
@media (max-width: 1320px) {
    .user-editor .np-ue-nav-list.np-ue-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 920px) {
    .user-editor .np-ue-nav-list.np-ue-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .user-editor .np-ue-nav-list.np-ue-menu {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
.user-editor .np-ue-card {
    border-top: 8px solid var(--ue-card-accent, #dbeafe);
}
.user-editor .np-ue-card[hidden] {
    display: none !important;
}
.user-editor .np-ue-card.np-ue-card-enter {
    opacity: 0;
}
.user-editor .np-ue-card.np-ue-card-enter.np-ue-card-enter-active {
    opacity: 1;
    transition: opacity 180ms ease;
}
.user-editor .np-ue-card.np-ue-card-leave {
    opacity: 0;
    transition: opacity 180ms ease;
}
.user-editor .np-ue-col-2 {
    transition: opacity 160ms ease;
    will-change: opacity;
}
.user-editor .np-ue-col-2.np-ue-col-fade {
    opacity: 0;
}
.user-editor.np-theme-fade {
    transition: opacity 170ms ease;
}
.user-editor.np-theme-fade-out {
    opacity: 0.84;
}
.user-editor.np-theme-fade-in {
    opacity: 1;
}
.user-editor .np-updates-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: #ef4444;
    min-width: 22px;
    justify-content: center;
}
.user-editor .np-ga4-title-row {
    align-items: center;
    gap: 8px;
}
.user-editor #ue-ga4-stats {
    padding: 12px 14px;
}
.user-editor .np-ga4-controls {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.user-editor .np-ga4-range-form {
    margin: 0;
}
.user-editor .np-ga4-range-form select {
    min-width: 64px;
    padding: 4px 8px;
    border-radius: 10px;
}
.user-editor .np-ga4-link {
    white-space: nowrap;
    text-decoration: none;
}
.user-editor .np-ga4-subtitle {
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}
.user-editor #ue-ga4-stats.np-ga4-card-loading {
    opacity: 0.55;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.user-editor .np-ga4-error {
    margin-top: 6px;
}
.user-editor .np-i18n-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.user-editor .np-i18n-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.user-editor .np-i18n-row .np-toggle {
    margin-right: 4px;
}
.user-editor .np-i18n-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}
.user-editor .np-i18n-row .np-toggle input:disabled + .np-toggle-ui {
    background: #e5e7eb;
    border-color: #cbd5e1;
    box-shadow: none;
}
.user-editor .np-i18n-voice-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.user-editor .np-i18n-voice-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
.user-editor .np-i18n-voice-row.is-hidden {
    display: none;
}
.user-editor .np-i18n-voice-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.88rem;
    min-width: 140px;
    padding-top: 8px;
}
.user-editor .np-i18n-voice-row .np-tts-row {
    margin-left: auto;
    min-width: 0;
    flex: 0 1 auto;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.user-editor .np-i18n-voice-picker {
    display: grid;
    grid-template-columns: repeat(6, 48px);
    gap: 8px;
    width: auto;
}
.user-editor .np-i18n-voice-card {
    position: relative;
    width: 48px;
    height: 48px;
    display: block;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 160ms ease;
}
.user-editor .np-i18n-voice-card.is-selected {
    transform: translateY(-1px);
}
.user-editor .np-i18n-voice-card.is-playing {
    transform: translateY(-1px);
}
.user-editor .np-i18n-voice-select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    color: #0f172a;
    text-align: center;
    overflow: visible;
}
.user-editor .np-i18n-voice-select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.user-editor .np-i18n-voice-select[data-tooltip]::after,
.user-editor .np-i18n-voice-select[data-tooltip]::before {
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}
.user-editor .np-i18n-voice-select[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translate(-50%, 6px);
    background: #d60c71;
    color: #ffffff;
    font-size: 0.74rem;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: 12px;
    white-space: pre-line;
    width: max-content;
    max-width: 180px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
    z-index: 5200;
}
.user-editor .np-i18n-voice-select[data-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translate(-50%, 6px);
    border: 6px solid transparent;
    border-top-color: #d60c71;
    z-index: 5199;
}
.user-editor .np-i18n-voice-select[data-tooltip]:hover::after,
.user-editor .np-i18n-voice-select[data-tooltip]:hover::before,
.user-editor .np-i18n-voice-select[data-tooltip]:focus-visible::after,
.user-editor .np-i18n-voice-select[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
}
.user-editor .np-i18n-voice-avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: box-shadow 160ms ease, transform 160ms ease;
}
.user-editor .np-i18n-voice-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.user-editor .np-i18n-voice-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f766e;
}
.user-editor .np-i18n-voice-card-actions {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: block;
    min-height: 0;
}
.user-editor .np-i18n-voice-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: none;
    background: #f2f4f6;
    color: #7c6ff2;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.user-editor .np-i18n-voice-preview:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.22);
}
.user-editor .np-i18n-voice-preview.is-playing {
    background: #0f766e;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}
.user-editor .np-i18n-voice-preview:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    background: #f8fafc;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}
.user-editor .np-i18n-voice-card.is-selected .np-i18n-voice-avatar {
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16), 0 6px 16px rgba(15, 118, 110, 0.18);
}
.user-editor .np-i18n-voice-card.is-playing .np-i18n-voice-avatar {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16), 0 6px 16px rgba(59, 130, 246, 0.18);
}
@media (max-width: 1320px) {
    .user-editor .np-i18n-voice-picker {
        grid-template-columns: repeat(6, 48px);
    }
}
@media (max-width: 720px) {
    .user-editor .np-i18n-voice-row {
        flex-direction: column;
        align-items: stretch;
    }
    .user-editor .np-i18n-voice-label {
        min-width: 0;
        padding-top: 0;
    }
    .user-editor .np-i18n-voice-row .np-tts-row {
        margin-left: 0;
        min-width: 0;
        width: 100%;
    }
    .user-editor .np-i18n-voice-picker {
        grid-template-columns: repeat(3, 48px);
        gap: 8px;
    }
    .user-editor #ue-tts .np-ai-tts-row {
        flex-wrap: wrap;
    }
    .user-editor #ue-tts .np-tts-play {
        width: 100%;
    }
}
.user-editor input[type="text"],
.user-editor input[type="password"],
.user-editor input[type="email"],
.user-editor input[type="url"],
.user-editor input[type="number"],
.user-editor input[type="search"],
.user-editor textarea,
.user-editor select {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.user-editor textarea {
    max-width: 100%;
    min-height: 110px;
    resize: vertical;
}
.user-editor input::placeholder,
.user-editor textarea::placeholder {
    color: #94a3b8;
}
.user-editor input:hover,
.user-editor textarea:hover,
.user-editor select:hover {
    border-color: rgba(100, 116, 139, 0.75);
}
.user-editor input:focus,
.user-editor textarea:focus,
.user-editor select:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--client-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.user-editor select:not([multiple]) {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(71, 85, 105, 0.9) 50%),
        linear-gradient(135deg, rgba(71, 85, 105, 0.9) 50%, transparent 50%),
        linear-gradient(to right, rgba(148, 163, 184, 0.45), rgba(148, 163, 184, 0.45));
    background-position:
        calc(100% - 18px) 52%,
        calc(100% - 12px) 52%,
        calc(100% - 36px) 50%;
    background-size: 6px 6px, 6px 6px, 1px 18px;
    background-repeat: no-repeat;
}
.user-editor select[multiple] {
    padding-right: 12px;
}
.user-editor input:disabled,
.user-editor textarea:disabled,
.user-editor select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}
.user-editor .np-ga4-range-form select {
    min-width: 64px;
    padding: 4px 8px;
    border-radius: 10px;
}
.edit-section input[type="text"],
.edit-section input[type="password"],
.edit-section input[type="email"],
.edit-section input[type="url"],
.edit-section input[type="number"],
.edit-section input[type="search"],
.edit-section textarea,
.edit-section select {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.edit-section textarea {
    max-width: 100%;
    min-height: 110px;
    resize: vertical;
}
.edit-section input::placeholder,
.edit-section textarea::placeholder {
    color: #94a3b8;
}
.edit-section input:hover,
.edit-section textarea:hover,
.edit-section select:hover {
    border-color: rgba(100, 116, 139, 0.75);
}
.edit-section input:focus,
.edit-section textarea:focus,
.edit-section select:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--client-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.edit-section select:not([multiple]) {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(71, 85, 105, 0.9) 50%),
        linear-gradient(135deg, rgba(71, 85, 105, 0.9) 50%, transparent 50%),
        linear-gradient(to right, rgba(148, 163, 184, 0.45), rgba(148, 163, 184, 0.45));
    background-position:
        calc(100% - 18px) 52%,
        calc(100% - 12px) 52%,
        calc(100% - 36px) 50%;
    background-size: 6px 6px, 6px 6px, 1px 18px;
    background-repeat: no-repeat;
}
.edit-section select[multiple] {
    padding-right: 12px;
}
.edit-section input:disabled,
.edit-section textarea:disabled,
.edit-section select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}
.user-editor .np-ga4-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 4px;
}
.user-editor .np-ga4-metric {
    border-radius: 12px;
    padding: 4px 4px;
    text-align: center;
}
.user-editor .np-ga4-metric-value {
    font-weight: 600;
    color: var(--client-primary-dark);
    font-size: 1.34rem;
    line-height: 1.1;
    padding: 2px;
    border-radius: 999px;
}
.user-editor .np-ga4-metric-label {
    margin-top: 1px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--client-primary-light);
    text-transform:capitalize;
    letter-spacing: 0.02em;
}
.user-editor .np-ga4-pages {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--client-primary-dark);
}
.user-editor .np-ga4-full-wrap {
    max-width: 1200px;
    margin: 24px auto 40px;
    padding: 0 16px;
}
.user-editor .np-ga4-full-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.user-editor .np-ga4-full-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
}
.user-editor .np-ga4-full-days {
    margin-left: auto;
}
.user-editor .np-ga4-pages-full {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}
.user-editor .np-ga4-full-back {
    white-space: nowrap;
}
@media (max-width: 720px) {
    .user-editor .np-ga4-full-header {
        flex-wrap: wrap;
    }
    .user-editor .np-ga4-full-days {
        margin-left: 0;
    }
}
.user-editor .np-ga4-pages-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: none;
    background: transparent;
    padding: 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.user-editor .np-ga4-pages-caret {
    font-size: 1rem;
    color: #94a3b8;
    transform: rotate(90deg);
    transition: transform 0.18s ease, color 0.18s ease;
}
.user-editor .np-ga4-pages.is-open .np-ga4-pages-caret {
    transform: rotate(270deg);
    color: #475569;
}
.user-editor .np-ga4-pages-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.2s ease, margin-top 0.2s ease;
    margin-top: 0;
}
.user-editor .np-ga4-pages.is-open .np-ga4-pages-body {
    margin-top: 6px;
    opacity: 1;
}
.user-editor .np-ga4-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: none;
    border-radius: 0;
    padding: 4px 0;
    background: transparent;
}
.user-editor .np-ga4-page-title {
    font-weight: 350;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-editor .np-ga4-page-views {
    font-weight: 600;
    color: #0ea5e9;
    flex-shrink: 0;
}
.user-editor #ue-progress .meta-title-row {
    align-items: center;
    margin-bottom: 10px;
}
.user-editor #ue-progress .meta-title {
    margin: 0;
}
.user-editor .np-progress-head {
    display: grid;
    gap: 8px;
}
.user-editor .np-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.user-editor .np-progress-statuses {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.user-editor .np-progress-percent {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0f172a;
}
.user-editor .np-progress-global {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    color: #475569;
    background: #f8fafc;
}
.user-editor .np-progress-global.is-ok {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}
.user-editor .np-progress-global.is-warn {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}
.user-editor .np-progress-global.is-enriched {
    color: #0f766e;
    background: #ccfbf1;
    border-color: #5eead4;
}
.user-editor .np-progress-global.is-connected {
    color: #3f6212;
    background: #ecfccb;
    border-color: #a3e635;
}
.user-editor .np-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.user-editor .np-progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8 0%, #22c55e 100%);
}
.user-editor .np-progress-meta {
    font-size: 0.82rem;
    color: #64748b;
}
.user-editor .np-progress-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}
.user-editor .np-progress-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
}
.user-editor .np-progress-item.is-ok {
    border-color: #86efac;
    background: #f0fdf4;
}
.user-editor .np-progress-item.is-warn {
    border-color: #fcd34d;
    background: #fffbeb;
}
.user-editor .np-progress-item.is-muted {
    border-color: #cbd5e1;
    background: #f8fafc;
    opacity: 0.9;
}
.user-editor .np-progress-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.user-editor .np-progress-item-title {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
}
.user-editor .np-progress-item-state {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}
.user-editor .np-progress-details {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
}
.user-editor .np-progress-details li {
    font-size: 0.82rem;
    color: #475569;
}
.user-editor .np-progress-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #475569;
}
/* Fallback styles for progression card (ensures stable rendering even if root class scope changes) */
#ue-progress .meta-title-row {
    align-items: center;
    margin-bottom: 10px;
}
#ue-progress .meta-title {
    margin: 0;
}
#ue-progress .np-progress-head {
    display: grid;
    gap: 8px;
}
#ue-progress .np-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
#ue-progress .np-progress-statuses {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
#ue-progress .np-progress-percent {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0f172a;
}
#ue-progress .np-progress-global {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    color: #475569;
    background: #f8fafc;
}
#ue-progress .np-progress-global.is-ok {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}
#ue-progress .np-progress-global.is-warn {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}
#ue-progress .np-progress-global.is-enriched {
    color: #0f766e;
    background: #ccfbf1;
    border-color: #5eead4;
}
#ue-progress .np-progress-global.is-connected {
    color: #3f6212;
    background: #ecfccb;
    border-color: #a3e635;
}
#ue-progress .np-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
#ue-progress .np-progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8 0%, #22c55e 100%);
}
#ue-progress .np-progress-meta {
    font-size: 0.82rem;
    color: #64748b;
}
#ue-progress .np-progress-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}
#ue-progress .np-progress-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
}
#ue-progress .np-progress-item.is-ok {
    border-color: #86efac;
    background: #f0fdf4;
}
#ue-progress .np-progress-item.is-warn {
    border-color: #fcd34d;
    background: #fffbeb;
}
#ue-progress .np-progress-item.is-muted {
    border-color: #cbd5e1;
    background: #f8fafc;
    opacity: 0.9;
}
#ue-progress .np-progress-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
#ue-progress .np-progress-item-title {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
}
#ue-progress .np-progress-item-state {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}
#ue-progress .np-progress-details {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid;
    gap: 4px;
}
#ue-progress .np-progress-details li {
    list-style: none !important;
    margin: 0 !important;
    font-size: 0.82rem;
    color: #475569;
}
#ue-progress .np-progress-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #475569;
}
.user-editor #ue-updates .meta-title-row {
    align-items: center;
}
.user-editor #ue-updates .meta-title {
    margin: 0;
}
.user-editor #ue-updates .np-updates-badge {
    margin-left: 8px;
}
.user-editor #ue-updates .np-updates-toggle {
    margin-left: auto;
}
.user-editor #ue-updates .np-updates-toggle,
.user-editor #ue-audit .np-audit-toggle,
.user-editor #ue-ai-logs .np-ai-logs-toggle,
.user-editor #ue-progress .np-progress-toggle,
.user-editor #ue-home .np-home-toggle,
.user-editor #ue-voices .np-voices-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
}
.user-editor #ue-updates .np-updates-toggle .np-eye-icon {
    width: 18px;
    height: 18px;
    display: block;
}
.user-editor #ue-updates .np-updates-toggle .np-eye-closed {
    display: none;
}
.user-editor #ue-updates.is-collapsed .np-updates-toggle .np-eye-open {
    display: none;
}
.user-editor #ue-updates.is-collapsed .np-updates-toggle .np-eye-closed {
    display: block;
}
.user-editor #ue-audit .np-audit-toggle .np-eye-icon,
.user-editor #ue-ai-logs .np-ai-logs-toggle .np-eye-icon,
.user-editor #ue-progress .np-progress-toggle .np-eye-icon,
.user-editor #ue-home .np-home-toggle .np-eye-icon,
.user-editor #ue-voices .np-voices-toggle .np-eye-icon {
    width: 18px;
    height: 18px;
    display: block;
}
.user-editor #ue-audit .np-audit-toggle .np-eye-closed,
.user-editor #ue-ai-logs .np-ai-logs-toggle .np-eye-closed,
.user-editor #ue-progress .np-progress-toggle .np-eye-closed,
.user-editor #ue-home .np-home-toggle .np-eye-closed,
.user-editor #ue-voices .np-voices-toggle .np-eye-closed {
    display: none;
}
.user-editor #ue-audit.is-collapsed .np-audit-toggle .np-eye-open,
.user-editor #ue-ai-logs.is-collapsed .np-ai-logs-toggle .np-eye-open,
.user-editor #ue-progress.is-collapsed .np-progress-toggle .np-eye-open,
.user-editor #ue-home.is-collapsed .np-home-toggle .np-eye-open,
.user-editor #ue-voices.is-collapsed .np-voices-toggle .np-eye-open {
    display: none;
}
.user-editor #ue-audit.is-collapsed .np-audit-toggle .np-eye-closed,
.user-editor #ue-ai-logs.is-collapsed .np-ai-logs-toggle .np-eye-closed,
.user-editor #ue-progress.is-collapsed .np-progress-toggle .np-eye-closed,
.user-editor #ue-home.is-collapsed .np-home-toggle .np-eye-closed,
.user-editor #ue-voices.is-collapsed .np-voices-toggle .np-eye-closed {
    display: block;
}
.user-editor .np-updates-body {
    margin-top: 8px;
}
.user-editor .np-audit-body,
.user-editor .np-ai-logs-body,
.user-editor .np-progress-body {
    margin-top: 8px;
}
.user-editor .np-updates-list {
    display: grid;
    gap: 10px;
}
.user-editor .np-update-item {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
.user-editor .np-update-title {
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.user-editor .np-update-scope {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1f2937;
    background: #e5e7eb;
}
.user-editor .np-update-date {
    margin-top: 2px;
    font-size: 0.8rem;
    color: #6b7280;
}
.user-editor .np-update-details {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
}
.user-editor .np-updates-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.user-editor .meta-card.is-collapsed .np-updates-body {
    display: none;
}
.user-editor .meta-card.is-collapsed .np-audit-body,
.user-editor .meta-card.is-collapsed .np-ai-logs-body,
.user-editor .meta-card.is-collapsed .np-progress-body,
.user-editor .meta-card.is-collapsed .np-ue-home-body {
    display: none;
}
.user-editor #ue-voices .np-i18n-voice-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-editor #ue-voices .np-i18n-voice-title {
    margin: 0;
    font-weight: 700;
    color: #111827;
}
.user-editor #ue-voices .np-voices-toggle {
    margin-left: auto;
}
.user-editor #ue-voices .np-i18n-voice-body {
    margin-top: 10px;
}
.user-editor #ue-voices.is-collapsed .np-i18n-voice-body {
    display: none;
}
.user-editor #ue-progress .meta-title-row {
    align-items: center;
}
.user-editor #ue-progress .np-progress-toggle {
    margin-left: auto;
}
.user-editor #ue-home .meta-title-row {
    align-items: center;
}
.user-editor #ue-home .np-home-toggle {
    margin-left: auto;
}
.user-editor #ue-audit .meta-title-row {
    align-items: center;
    gap: 10px;
}
.user-editor #ue-audit .meta-title {
    margin: 0;
}
.user-editor .np-audit-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.user-editor .np-audit-body-top,
.user-editor .np-ai-logs-body-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.user-editor #ue-ai-logs .meta-title-row {
    align-items: center;
}
.user-editor .np-audit-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5f5;
    border-top-color: #3b82f6;
    display: none;
    animation: np-spin 0.9s linear infinite;
}
.user-editor .np-audit-loading .np-audit-spinner {
    display: inline-block;
}
.user-editor .np-audit-remaining {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f2937;
    background: #e2e8f0;
}
.user-editor .np-audit-meta {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}
.user-editor .np-audit-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-editor .np-audit-item {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}
.user-editor .np-audit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.user-editor .np-audit-label {
    font-weight: 450;
    color: #111827;
}
.user-editor .np-audit-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.user-editor .np-audit-summary {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
}
.user-editor .np-audit-empty {
    color: #124f00;
    font-style: italic;
}
.user-editor .np-audit-item.is-seen {
    opacity: 0.7;
}
.user-editor .np-audit-item.is-seen .np-audit-label,
.user-editor .np-audit-item.is-seen .np-audit-summary {
    color: #64748b;
}
@media (max-width: 640px) {
    .user-editor .np-audit-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
@keyframes np-spin {
    to {
        transform: rotate(360deg);
    }
}
.user-editor.np-ue-layout-ready .np-ue-col-4 {
    display: none;
}
@media (max-width: 1200px) {
    .user-editor .np-user-editor-main {
        grid-template-columns: 1fr;
    }
    .user-editor #ue-nav {
        position: relative;
        top: auto;
    }
    .user-editor .np-ue-col-3 {
        position: static;
        top: auto;
    }
}

.user-editor header {
    padding: 12px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
    gap: 16px;
}
.user-editor header,
.edit-section header {
    position: sticky;
    top: 0;
    z-index: 1200;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.78) 0%, rgba(8, 47, 154, 0.78) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.user-editor .np-ue-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    justify-content: flex-end;
}
.user-editor .np-ue-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.user-editor .np-ue-lang-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.user-editor .np-ue-lang-label {
    font-size: 0.78rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}
.user-editor .np-ue-lang-select.social-style-select {
    min-width: 130px;
    padding: 4px 24px 4px 10px;
    font-size: 0.78rem;
    border-radius: 999px;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.14);
}
.user-editor .np-ue-lang-select.social-style-select option {
    color: #0f172a;
}
.user-editor .np-theme-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.user-editor .np-theme-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, opacity .16s ease;
    opacity: 0.84;
}
.user-editor .np-theme-dot:hover {
    transform: scale(1.08);
    opacity: 1;
}
.user-editor .np-theme-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}
.user-editor .np-theme-dot.is-active {
    opacity: 1;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}
.user-editor .np-theme-dot.is-light {
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
}
.user-editor .np-theme-dot.is-dark {
    background: linear-gradient(135deg, #0b1220 0%, #1f2937 100%);
}
.user-editor .np-theme-dot.is-sienna {
    background: linear-gradient(135deg, #a16207 0%, #7c2d12 100%);
}
.user-editor .np-ue-header-helpwrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.user-editor .np-ue-header-helpwrap .np-ue-header-tool {
    background: transparent;
    border-color: transparent;
    padding: 4px 8px;
}
.user-editor .np-ue-header-helpwrap .np-help-btn {
    background: rgba(255, 255, 255, 0.9);
}
.user-editor .np-ue-header-tool {
    white-space: nowrap;
}
.user-editor .np-ue-header-maint {
    margin: 0;
}
.user-editor .np-ue-header-title {
    flex: 1 1 auto;
    min-width: 0;
}
.user-editor .np-ue-header-center {
    flex: 0 0 auto;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.np-ue-pill,
.np-ue-quota-pill {
    font-size: 0.85rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.np-ue-quota-pill--na {
    opacity: 0.7;
}
.np-ue-quota-pill--storage .quota-pill {
    margin-left: 4px;
    width: 9px;
    height: 9px;
}
.user-editor .np-ue-header-title.np-ue-pill {
    font-weight: 700;
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
}
.user-editor .np-ue-link {
    text-decoration: none;
    color: #ffffff;
}
.user-editor .np-admin-btn,
.user-editor .np-presence-dot {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 10px 22px rgba(0,0,0,0.20);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    position: relative;
}
.user-editor .np-admin-btn.is-online,
.user-editor .np-presence-dot.is-online {
    color: #22c55e;
    border-color: rgba(255,255,255,0.92);
    box-shadow: 0 0 0 6px rgba(34,197,94,0.25), 0 10px 22px rgba(0,0,0,0.20);
}
.user-editor .np-admin-btn.is-offline,
.user-editor .np-presence-dot.is-offline {
    color: rgba(255,255,255,0.55);
}
.user-editor .np-admin-btn:focus-visible,
.user-editor .np-presence-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}
.user-editor .np-admin-toast {
    position: absolute;
    top: 42px;
    right: 0;
    background: #ef4444;
    color: #fff;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
    display: none;
}
.user-editor .np-admin-toast.is-visible {
    display: block;
    animation: np-toast-pop 0.45s ease-out;
}

.np-help {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.np-help.is-open {
    z-index: 80;
}
.np-help-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(247, 181, 20, 0.55);
    background: rgba(255, 192, 58, 0.3);
    color: #4b2b00;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.np-help-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.np-help-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}
.np-help-pop {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    min-width: 0;
    width: min(460px, calc(100vw - 32px));
    max-width: none;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 12px 14px;
    z-index: 5000;
    display: none;
}
.np-help.is-open .np-help-pop {
    display: block;
    animation: np-help-pop 0.18s ease-out;
}
.np-help-text {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #374151;
}
.np-help-audio {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.np-help-audio-label {
    font-size: 0.78rem;
    color: #6b7280;
}
.np-help--card {
    flex: 0 0 auto;
}
.np-help--section {
    margin-right: 8px;
}
.np-help--section .np-help-pop {
    left: 0;
    right: auto;
    transform: none;
}
.np-help--header .np-help-pop {
    top: 0;
    right: auto;
    left: 0;
    transform: none;
}

@keyframes np-help-pop {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes np-toast-pop {
    0% { transform: translateY(-6px) scale(0.96); opacity: 0; }
    60% { transform: translateY(0) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* --- Chat modal (client) --- */
.np-chat-modal[hidden] {
    display: none !important;
}
.np-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
}
.np-chat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,0.55);
}
.np-chat-panel {
    position: relative;
    width: min(720px, 96vw);
    max-height: min(760px, 86vh);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.35);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.18);
}
.np-chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #111827;
    color: #f9fafb;
}
.np-chat-panel-title {
    font-weight: 800;
    font-size: 0.95rem;
}
.np-chat-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.10);
    color: #f9fafb;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.np-chat-close:hover {
    background: rgba(255,255,255,0.16);
}
.np-chat-panel-status {
    padding: 10px 14px;
    font-size: 0.88rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
}
.np-chat-panel-status.is-online {
    background: #dcfce7;
    color: #166534;
    border-bottom-color: #bbf7d0;
}
.np-chat-panel-status.is-offline {
    background: #ffedd5;
    color: #9a3412;
    border-bottom-color: #fed7aa;
}
.np-chat-panel-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}
.np-chat-panel .np-chat-messages {
    height: auto;
    flex: 1;
}
.user-editor header a {
    color: #e0e7ff;
}
.user-editor .btn-primary,
.user-editor .btn {
    align-items: center;
    justify-content: center;
    gap: 6px;
    display: inline-flex;
    min-height: 36px;
    padding: 2px 12px;
    border: 1px solid #c5f6f0;
    border-radius: 11px;
    box-sizing: border-box;
    background-color: #e8fffb;
    background-position: 0 0;
    color: #0f766e;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: none;
    text-underline-offset: 1px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    box-shadow: none;
    transition: border .2s ease-in-out, box-shadow .2s ease-in-out, background-color .2s ease-in-out, color .2s ease-in-out;
}
.user-editor .btn-primary:active,
.user-editor .btn-primary:hover,
.user-editor .btn-primary:focus,
.user-editor .btn:active,
.user-editor .btn:hover,
.user-editor .btn:focus {
    outline: 0;
}
.user-editor .btn-primary:hover,
.user-editor .btn:hover {
    background-color: #dcfbf5;
    border-color: #7dd3c7;
    color: #0f766e;
    box-shadow: 0 8px 16px rgba(13, 148, 136, 0.18);
}
.user-editor .btn-primary:active,
.user-editor .btn:active {
    background-color: #0f766e;
    border-color: #0f766e;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
    color: #ffffff;
}
.user-editor .btn-primary:focus-visible,
.user-editor .btn:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}
.user-editor .btn-primary:active:hover,
.user-editor .btn-primary:focus:hover,
.user-editor .btn-primary:focus,
.user-editor .btn:active:hover,
.user-editor .btn:focus:hover,
.user-editor .btn:focus {
    background-color: #0f766e;
    border-color: #0f766e;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
    color: #ffffff;
}

.user-editor .section-item {
    border:1px dashed var(--client-primary-extralight)! important;
}
.user-editor .section-item[data-type="pdc"] .np-section-toggle,
.user-editor .section-item[data-type="ml"] .np-section-toggle,
.user-editor .section-item[data-type="rgpd"] .np-section-toggle,
.user-editor .section-item[data-type="cookies"] .np-section-toggle {
    display: none;
}
.user-editor .section-item[data-type="pdc"] .np-toggle--green,
.user-editor .section-item[data-type="ml"] .np-toggle--green,
.user-editor .section-item[data-type="rgpd"] .np-toggle--green,
.user-editor .section-item[data-type="cookies"] .np-toggle--green {
    display: none;
}
.user-editor .handle {
    color: var(--client-primary);
}
.user-editor .section-grid-editor {
    margin-bottom: 12px;
}
.user-editor .section-grid-editor.draggables,
.user-editor #sections-draggable {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}
.user-editor .section-item.fixed {
    opacity: 1;
}
.np-menu-placement-card {
    margin-top: 2px;
}
.np-menu-placement-card h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}
.np-menu-placement-group {
    margin-top: 10px;
}
.np-menu-placement-group-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0 6px;
    color: #334155;
}
.np-menu-placement-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(250px, 340px);
    gap: 10px;
    align-items: center;
    padding: 6px 0;
}
.np-menu-placement-label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.np-menu-placement-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 2px 8px;
    text-transform: lowercase;
}
.np-menu-placement-controls {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 8px;
    align-items: center;
}
.np-menu-placement-controls .input,
.np-menu-placement-controls input[type="number"] {
    width: 100%;
    min-width: 0;
}
@media (max-width: 860px) {
    .np-menu-placement-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .np-menu-placement-controls {
        grid-template-columns: 1fr 96px;
    }
}

.site-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}
.meta-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.164);
    box-sizing: border-box;
}
.meta-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding: 8px;
    color: var(--client-primary-dark);
    border-radius: 12px;
}
.meta-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    
}
.meta-title-row > * {
    align-self: center;
}
.meta-title-row .meta-title {
    margin: 0;
}
.meta-title-row .np-help {
    margin-left: 8px;
}
.np-ga4-title-row .np-ga4-controls {
    margin-left: auto;
}
.meta-title-row .np-help + * {
    margin-left: auto;
}
.meta-title-row .btn-primary {
    margin-left: auto;
}
.meta-title-row .np-ue-title-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-editor .np-ue-home-body {
    margin-top: 2px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px 14px;
}
.user-editor .np-ue-home-body--intro {
    background: radial-gradient(120% 140% at 20% 10%, #e0f2fe 0%, #f8fbff 55%, #eef2ff 100%);
}
.user-editor .np-ue-home-intro {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 26px 22px;
    animation: npUeIntroIn .95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.user-editor .np-ue-home-intro-glow {
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}
.user-editor .np-ue-home-intro-title {
    margin: 0;
    font-size: 1.34rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0f172a;
    line-height: 1.45;
    max-width: 680px;
}
.user-editor .np-ue-home-intro-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    max-width: 640px;
}
.user-editor .np-ue-home-intro-form {
    margin-top: 4px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.user-editor .np-ue-home-intro-btn {
    border-radius: 999px;
    padding-left: 18px;
    padding-right: 18px;
}
.user-editor .np-ue-home-compact {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 10px 12px;
    background: #ffffff;
}
.user-editor .np-ue-home-expand-btn {
    margin-top: 10px;
}
.user-editor .np-ue-home-flow.is-collapsed {
    display: none;
}
.user-editor .np-ue-home-lead {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.user-editor .np-ue-home-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #334155;
}
.user-editor .np-ue-home-progress {
    margin-top: 10px;
}
.user-editor .np-ue-home-progress-meta {
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 6px;
}
.user-editor .np-ue-home-progress-meta strong {
    color: #0f172a;
}
.user-editor .np-ue-home-progress-bar {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.user-editor .np-ue-home-progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8 0%, #22c55e 100%);
}
.user-editor .np-ue-home-checklist {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.user-editor .np-ue-home-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 86px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    cursor: pointer;
}
.user-editor .np-ue-home-step:hover {
    border-color: #93c5fd;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.14);
}
.user-editor .np-ue-home-step.is-ok {
    border-color: #86efac;
    background: #f0fdf4;
}
.user-editor .np-ue-home-step.is-warn {
    border-color: #f5a3ad;
    background: #fff1f3;
}
.user-editor .np-ue-home-step.is-muted {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.user-editor .np-ue-home-step-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #e0526b;
}
.user-editor .np-ue-home-step.is-ok .np-ue-home-step-icon {
    color: #16a34a;
}
.user-editor .np-ue-home-step.is-muted .np-ue-home-step-icon {
    color: #64748b;
}
.user-editor .np-ue-home-step-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.user-editor .np-ue-home-step-main {
    min-width: 0;
    text-align: center;
}
.user-editor .np-ue-home-step-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.user-editor .np-ue-home-step-state {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.2;
    margin-top: 3px;
}
.user-editor .np-ue-home-status-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.user-editor .np-ue-home-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1;
}
.user-editor .np-ue-home-status-chip.is-operational {
    color: #166534;
    border-color: #86efac;
    background: #dcfce7;
}
.user-editor .np-ue-home-status-chip.is-enriched {
    color: #0f766e;
    border-color: #5eead4;
    background: #ccfbf1;
}
.user-editor .np-ue-home-status-chip.is-connected {
    color: #3f6212;
    border-color: #a3e635;
    background: #ecfccb;
}
.user-editor .np-ue-home-hint {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}
.user-editor .np-ue-home-hint p {
    margin: 0;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.4;
}
.user-editor .np-ue-home-enriched-title {
    font-weight: 800;
    color: #166534;
    margin-bottom: 4px;
}
.user-editor .np-ue-home-enriched-block {
    margin-top: 10px;
}
.user-editor .np-ue-home-enrich-progress {
    margin-top: 10px;
}
.user-editor .np-ue-home-enrich-progress-meta {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 6px;
}
.user-editor .np-ue-home-enrich-progress-meta strong {
    color: #0f172a;
}
.user-editor .np-ue-home-enrich-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.user-editor .np-ue-home-enrich-progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb7185 0%, #22c55e 100%);
}
.user-editor .np-ue-home-hint ol {
    margin: 8px 0 0 18px;
    padding: 0;
}
.user-editor .np-ue-home-hint li {
    margin: 3px 0;
    font-size: 0.82rem;
    color: #334155;
}
.user-editor .np-ue-home-action-link {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    font-weight: 600;
}
.user-editor .np-ue-home-action-link:hover {
    color: #1e40af;
}
.user-editor .np-ue-home-actions-grid {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.user-editor .np-ue-home-action-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 78px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.user-editor .np-ue-home-action-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.14);
}
.user-editor .np-ue-home-action-card.is-ok {
    border-color: #86efac;
    background: #f0fdf4;
}
.user-editor .np-ue-home-action-card.is-warn {
    border-color: #f5a3ad;
    background: #fff1f3;
}
.user-editor .np-ue-home-action-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0526b;
}
.user-editor .np-ue-home-action-card.is-ok .np-ue-home-action-icon {
    color: #16a34a;
}
.user-editor .np-ue-home-action-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.user-editor .np-ue-home-action-title {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}
.user-editor .np-ue-home-action-state {
    font-size: 0.72rem;
    color: #475569;
}
.user-editor .np-ue-home-design-progress {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}
.user-editor .np-ue-home-design-progress-meta {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 6px;
}
.user-editor .np-ue-home-design-progress-meta strong {
    color: #0f172a;
}
.user-editor .np-ue-home-design-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.user-editor .np-ue-home-design-progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #bef264 0%, #16a34a 100%);
}
.user-editor .np-ue-home-status-row-bottom {
    margin-top: 12px;
}
.user-editor .np-ue-suggestions {
    background: #ffffff;
    border: 0;
}
.user-editor .np-ue-suggestion-inner {
    border: 0;
    border-radius: 12px;
    background: #fffefb;
    padding: 36px 20px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}
.user-editor .np-ue-suggestion-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 36px;
}
.user-editor .np-ue-suggestion-icon {
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffe9b8 0%, #ffd78d 100%);
    color: #b45309;
    border: 1px solid #f2c66b;
}
.user-editor .np-ue-suggestion-icon svg {
    width: 25px;
    height: 25px;
}
.user-editor .np-ue-suggestion-text {
    margin: 0 auto;
    padding: 12px 0 48px;
    font-size: 1rem;
    line-height: 1.55;
    color: #1f2937;
    max-width: 680px;
}
.user-editor .np-ue-suggestion-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}
.user-editor .np-ue-suggestion-form {
    margin: 0;
}
.user-editor .np-ue-suggestion-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}
.user-editor .np-ue-suggestion-audio {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.user-editor .np-ue-suggestion-audio-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
}
@media (max-width: 760px) {
    .user-editor .np-ue-suggestion-inner {
        min-height: 220px;
        padding: 28px 14px 24px;
    }
    .user-editor .np-ue-suggestion-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .user-editor .np-ue-suggestion-audio {
        margin-left: 0;
        align-self: flex-end;
    }
}
@keyframes npUeIntroIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.user-editor .np-ue-home-setup-grid {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.user-editor .np-ue-home-setup-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f5a3ad;
    background: #fff1f3;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.user-editor .np-ue-home-setup-card:hover {
    border-color: #f08a98;
    background: #ffe4e8;
    box-shadow: 0 3px 10px rgba(224, 82, 107, 0.16);
}
.user-editor .np-ue-home-setup-card.is-ok {
    border-color: #86efac;
    background: #f0fdf4;
}
.user-editor .np-ue-home-setup-card.is-ok:hover {
    border-color: #4ade80;
    background: #dcfce7;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.16);
}
.user-editor .np-ue-home-setup-title {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}
.user-editor .np-ue-home-setup-state {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.25;
}
.user-editor .np-ue-home-setup-badge {
    font-size: 0.69rem;
    font-weight: 700;
    color: #9f1239;
    line-height: 1.2;
}
.user-editor .np-ue-home-setup-card.is-ok .np-ue-home-setup-badge {
    color: #166534;
}
@media (max-width: 1300px) {
    .user-editor .np-ue-home-checklist {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .user-editor .np-ue-home-actions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .user-editor .np-ue-home-setup-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 860px) {
    .user-editor .np-ue-home-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .user-editor .np-ue-home-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .user-editor .np-ue-home-setup-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
.np-ue-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 600;
}
.np-ue-reset-form {
    margin: 0;
}
body.np-reload-pending {
    opacity: 0;
    transition: opacity 0.08s ease;
    pointer-events: none;
}
.np-i18n-title-btn.is-hidden {
    display: none;
}
.meta-row {
    font-size: 0.9rem;
    color: #4b5563;
}
.meta-actions {
    margin-top: 10px;
}
.meta-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.quota-pill {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.quota-pill.quota-warn {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.quota-pill.quota-danger {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}
.color-inputs {
    display: contents;
}
.color-inputs input[type="color"] {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    justify-self: start;
}
.color-inputs input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}
.color-inputs input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
}
.color-inputs input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 50%;
}
.color-row input[type="text"] {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #2e880708;
    color:   #2e8807;
    border: none;
    font-size: 0.9rem;
}
.avatar-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.banner-preview {
    border: 1px dashed var(--client-border);
    border-radius: 10px;
    padding: 8px;
    position: relative;
}
.banner-thumb-wrapper {
    position: relative;
}
.banner-title {
    font-weight: 700;
    margin-bottom: 6px;
}
.banner-thumb {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.banner-video-thumb {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
    display: block;
}
.banner-kind-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.banner-kind-select {
    border-radius: 10px;
    background: #2e880708;
    color:   #2e8807;
    padding: 8px 10px;
    font-size: 0.9rem;
    border: none;
}
.banner-thumb.placeholder {
    display: grid;
    place-items: center;
    color: #6b7280;
    background: var(--client-primary);
}
.banner-note {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}
.banner-upload {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 12px;
}
.banner-upload-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.banner-upload input[type="file"] {
    font-size: 0.85rem;
    flex: 1;
}
.banner-upload-label {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
}
.banner-file-name {
    font-size: 0.85rem;
    color: #374151;
    min-height: 16px;
}
.banner-upload-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #374151;
    padding: 6px 10px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--client-secondary-soft) 65%, #ffffff 35%);
    border: 1px solid color-mix(in srgb, var(--client-border) 70%, transparent);
}
.banner-upload-status[hidden] {
    display: none;
}
.banner-upload-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    border-top-color: #374151;
    animation: avatarLoader 1s ease-in-out infinite;
}
.banner-upload.is-uploading {
    opacity: 0.96;
}
.banner-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Tarifs (formulaire) */
.tarifs-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tarif-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 8px;
}
.tarif-row input[type="text"] {
    width: 100%;
}
@media (max-width: 640px) {
    .tarif-row {
        grid-template-columns: 1fr;
    }
}

/* Horaires (formulaire) */
.horaires-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.horaire-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}
.horaire-row .horaire-main {
    display: grid;
    grid-template-columns: 90px repeat(4, 76px) 120px 40px;
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}
.horaire-row .horaire-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1 1 320px;
}
.horaire-row .day-select,
.horaire-row .time-select,
.horaire-row .hour-date,
.horaire-row .hour-text,
.horaire-row .hour-image,
.horaire-row .hour-image-file {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #f8fafc;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.horaire-row .day-select,
.horaire-row .time-select {
    max-width: none;
}
.horaire-row .hour-date {
    min-width: 0;
    width: 120px;
    max-width: 120px;
    padding: 5px 8px;
    font-size: 0.82rem;
    justify-self: start;
}
.horaire-row .hour-text {
    min-width: 220px;
    flex: 1 1 240px;
}
.horaire-row .hour-image {
    min-width: 180px;
    flex: 1 1 200px;
}
.horaire-row .hour-image-file {
    min-width: 180px;
    max-width: 240px;
}
.horaire-row .day-select:focus,
.horaire-row .time-select:focus,
.horaire-row .hour-date:focus,
.horaire-row .hour-text:focus,
.horaire-row .hour-image:focus,
.horaire-row .hour-image-file:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
    outline: none;
    background: #ffffff;
}
.horaire-row .btn-remove-hour {
    padding: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    font-size: 1rem;
    color: #bf0778;
    margin-left: 6px;
    justify-self: start;
}
@media (max-width: 1000px) {
    .horaire-row {
        align-items: stretch;
    }
    .horaire-row .horaire-main,
    .horaire-row .horaire-extra {
        width: 100%;
    }
    .horaire-row .horaire-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .horaire-row .btn-remove-hour {
        width: 100%;
    }
}
@media (max-width: 640px) {
    .horaire-row .horaire-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.meta-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}
.meta-stack,
.meta-pos-account,
.meta-stack-right {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 420px;
    display: grid;
    gap: 12px;
}
.meta-stack-right {
    gap: 12px;
}
.color-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}
.color-toast {
    position: fixed;              /* ← clé du comportement global */
    top: 50%;
    left: 50%;
    right: auto;
    z-index: 9999;

    background: #16a34a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.4;

    box-shadow: 0 12px 30px rgba(0,0,0,0.18);

    opacity: 0;
    transform: translate(-50%, -56%);
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.color-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: np-toast-auto-hide 2s ease forwards;
}

@keyframes np-toast-auto-hide {
    0%,
    80% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -56%);
    }
}


/* Blog admin */
.preview-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.preview-blog-thumb {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px;
  min-height: 248px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.preview-blog-thumb img {
  width: 100%;
  height: 122px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.preview-blog-thumb-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.preview-blog-thumb .preview-slider-caption {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  color: #0f172a;
  text-align: left;
}
.preview-blog-thumb-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
  color: #475569;
}
.preview-blog-thumb-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.preview-blog-thumb-state.is-active {
  background: #dcfce7;
  color: #166534;
}
.preview-blog-thumb-state.is-inactive {
  background: #fee2e2;
  color: #991b1b;
}


.blog-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap:12px;
  align-items:stretch;
}

.blog-card-actions {
    margin-top: auto;
    bottom: auto;
    gap: 6px;
  padding: 4px 0 0;
  display: flex;
  justify-content: space-between;
}
.blog-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #4b5563;
}
.pill {
    padding: 3px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
}
.pill.success { background: #d1fae5; color: #065f46; }
.pill.muted   { background: var(--client-primary); color: #6b7280; }
.blog-card-body h3 {
    margin: 2px 0;
    font-size: 1rem;
}
.blog-card-body .excerpt {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
}
.blog-card-actions {
    position: static;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.preview-blog-flags {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.preview-blog-flags--inline {
    position: static;
}
.preview-blog-flag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    position: relative;
}
.preview-blog-flag-chip img {
    display: block;
    width: 18px;
    height: 13px;
    border-radius: 3px;
    object-fit: cover;
    opacity: 0.86;
}
.preview-blog-flag-fallback {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #334155;
}
.preview-blog-flag-chip[data-tooltip]::after,
.preview-blog-flag-chip[data-tooltip]::before {
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}
.preview-blog-flag-chip[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 6px);
    background: #d60c71;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: 12px;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    box-shadow: 0 12px 28px rgba(214, 12, 113, 0.35);
    z-index: 5200;
}
.preview-blog-flag-chip[data-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translate(-50%, 6px);
    border: 6px solid transparent;
    border-top-color: #d60c71;
    z-index: 5199;
}
.preview-blog-flag-chip[data-tooltip]:hover::after,
.preview-blog-flag-chip[data-tooltip]:hover::before {
    opacity: 1;
    transform: translate(-50%, 0);
}
.np-blog-editor-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    padding: 12px 14px;
    margin: 10px 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}
.np-blog-editor-meta-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.np-blog-editor-meta-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.np-blog-editor-meta-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}
.np-blog-editor-meta-chip {
    max-width: 100%;
}
.np-blog-editor-meta-chip--neutral {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}
.np-translator-open-btn {
    gap: 8px;
}
.np-translator-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}
.np-translator-modal-card {
    width: min(760px, calc(100vw - 32px));
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.22);
    backdrop-filter: none;
}
.np-translator-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.np-translator-queue-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 58vh;
    overflow: auto;
    padding-right: 4px;
}
.np-translator-queue-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}
.np-translator-queue-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.np-translator-queue-title {
    font-size: 0.95rem;
    font-weight: 650;
    color: #0f172a;
    line-height: 1.35;
}
.np-translator-queue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.np-translator-queue-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
}
.np-translator-queue-flag-chip,
.np-translator-queue-avatar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}
.np-translator-queue-flag-chip img,
.np-translator-queue-avatar-chip img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.np-translator-queue-note {
    font-size: 0.78rem;
    color: #64748b;
}
.np-translator-queue-progress {
    display: grid;
    gap: 5px;
    margin-top: 2px;
}
.np-translator-queue-progress-track {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: #e9eef8;
}
.np-translator-queue-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,#0f766e 0%,#14b8a6 60%,#99f6e4 100%);
    transition: width .18s ease;
}
.np-translator-queue-progress-text {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.35;
}
.np-translator-queue-row.is-processing {
    border-color: #99f6e4;
    background: #fcfffe;
}
.np-translator-queue-row.is-failed {
    border-color: #fecaca;
    background: #fff8f8;
}
.np-translator-queue-row.is-done {
    opacity: 0.72;
}
.np-translator-queue-form {
    margin: 0;
    flex: 0 0 auto;
    align-self: center;
}
.np-translator-modal-actions {
    margin-top: 14px;
}
@media (max-width: 700px) {
    .np-translator-modal-head,
    .np-translator-queue-row {
        flex-direction: column;
        align-items: stretch;
    }
    .np-translator-queue-form .btn-ghost,
    .np-translator-modal-actions .btn-ghost {
        width: 100%;
    }
    .np-blog-editor-meta-actions {
        width: 100%;
        margin-left: 0;
    }
}
.btn-danger {
    color: #f97316;
    border: none;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
}
.btn-icon-delete {
    background: #ffffff;
    color: #991b1b;
    border: none;
    padding: 6px 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}
.btn-icon-delete svg {
    width: 16px;
    height: 16px;
    display: block;
}
.btn-icon-banner {
    background: #ffffff;
    color: #1d4ed8;
    padding: 6px 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-banner:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}
.btn-icon-banner svg {
    width: 16px;
    height: 16px;
    display: block;
}
.btn-mod {
    background: #ffffff;
    color: #08af61;
    border: none;
    padding: 6px 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-mod:hover {
    background: #08af614a;
    border-color: #08af61;
}
.blog-form {
    background: #fff;
    border-top: dotted 2px  var(--client-primary);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blog-form h3 { margin: 0 0 8px 0; }
.blog-form .form-vertical label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.blog-form .form-vertical input[type="text"],
.blog-form .form-vertical textarea,
.blog-form .form-vertical select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.95rem;
    box-sizing: border-box;
}
.blog-form .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.blog-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.blog-manager--posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}
.blog-manager--posts .blog-manager__flash {
    order: 0;
}
.blog-manager--posts .blog-manager__right {
    order: 1;
}
.blog-manager--posts .blog-manager__left {
    order: 2;
}
.np-blog-section-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 16px;
    align-items: start;
}
.np-blog-section-form > .field:nth-of-type(1),
.np-blog-section-form > .field:nth-of-type(2) {
    margin-bottom: 0;
}
.np-blog-section-form > .field:nth-of-type(n+3) {
    grid-column: 1 / -1;
}
.blog-manager--editor {
    margin-top: 0;
}
.blog-manager--editor .blog-manager__right {
    width: 100%;
}
.np-blog-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 16px;
    align-items: start;
}
form.blog-edit-form.np-blog-edit-form-layout {
    display: contents;
}
.np-blog-row1-left {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 10px;
}
.np-blog-row1-right {
    grid-column: 2;
    grid-row: 1;
}
.np-blog-row2-editor {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.np-blog-row3-upload {
    grid-column: 1 / -1;
    grid-row: 3;
}
.np-blog-row4-grid {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    gap: 16px;
    align-items: start;
}
.np-blog-row4-right .ai-image-preview-wrap {
    margin-bottom: 10px;
}
.np-blog-post-active {
    margin-bottom: 8px;
}
.np-blog-row1-left .field,
.np-blog-row2-editor .field,
.np-blog-row3-upload .field {
    margin-bottom: 0;
}
@media (max-width: 1100px) {
    .np-blog-section-form {
        grid-template-columns: 1fr;
    }
    .np-blog-editor-grid {
        grid-template-columns: 1fr;
    }
    .np-blog-row1-left,
    .np-blog-row1-right,
    .np-blog-row2-editor,
    .np-blog-row3-upload,
    .np-blog-row4-grid {
        grid-column: 1;
        grid-row: auto;
    }
    .np-blog-row4-grid {
        grid-template-columns: 1fr;
    }
}
.np-videos-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 4px;
}
.np-videos-source-panel {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.np-videos-source-summary {
    list-style: none;
    display: block;
    cursor: pointer;
    padding: 8px 10px;
}
.np-videos-source-summary::-webkit-details-marker {
    display: none;
}
.np-videos-source-summary .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.np-videos-source-body {
    border-top: 1px dashed #e5e7eb;
    padding: 10px;
}
form[data-upload-progress="1"].is-uploading {
    opacity: 0.96;
}
form[data-upload-progress="1"] .banner-upload-status {
    margin-left: 4px;
}

/* Avis (admin) */
.np-avis-admin {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.np-avis-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.np-avis-admin-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.np-avis-admin-item summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
}
.np-avis-admin-item summary::-webkit-details-marker {
    display: none;
}
.np-avis-admin-sum {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.np-avis-admin-stars {
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 1px;
}
.np-avis-admin-who {
    font-weight: 800;
    color: #111827;
}
.np-avis-admin-meta {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}
.np-avis-admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.np-avis-admin-actions form {
    margin: 0;
}
.np-avis-admin-body {
    padding: 10px 12px 12px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}
.np-avis-admin-comment {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #111827;
    white-space: pre-wrap;
}
.np-avis-admin-item textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.92rem;
    box-sizing: border-box;
    resize: vertical;
}
.blog-pagination {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.page-pill {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    text-decoration: none;
    color: #111827;
}
.page-pill.is-active {
    background: var(--site-primary);
    color: #fff;
    border-color: var(--site-primary);
}
.current-thumb {
    font-size: 0.9rem;
    color: #4b5563;
}

@media (max-width: 900px) {
    .user-editor .section-grid-editor.draggables,
    .user-editor #sections-draggable {
        grid-template-columns: 1fr;
    }
    .blog-admin-grid {
        grid-template-columns: 1fr;
    }
    .blog-preview {
        max-height: none;
    }
}

.color-toast.err { background: #b91c1c; }
.color-toast.info { background: #2563eb; }

.np-addr-field {
    position: relative;
}

.np-addr-suggest {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    overflow: hidden;
}

.np-addr-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #111827;
    cursor: pointer;
    font-size: .9rem;
    border-radius: 0;
}

.np-addr-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 820px) {
    .row-2 {
        grid-template-columns: 1fr;
    }
}

/* Assets manager */
.np-assets-main {
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.np-notifications-main {
    max-width: 1320px;
}
.np-notifications-form {
    width: 100%;
}
.np-notifications-layout {
    display: grid;
    grid-template-columns: minmax(320px, 35%) minmax(0, 65%);
    gap: 24px;
    align-items: start;
}
.np-notifications-config {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.np-notification-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.np-notification-card {
    position: relative;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.np-notification-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
}
.np-notification-card--reviews::before {
    background: linear-gradient(180deg, #22c55e 0%, #0f766e 100%);
}
.np-notification-card--callback::before {
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
}
.np-notification-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.np-notification-card-pill,
.np-notification-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.np-notification-card-pill {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}
.np-notification-card--reviews .np-notification-card-pill {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.np-notification-card--callback .np-notification-card-pill {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}
.np-notification-card-badge {
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
}
.np-notification-card .meta-title {
    margin-bottom: 10px;
    padding: 0;
    font-size: 1.1rem;
    color: #0f172a;
}
.np-notification-card-lead {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
}
.np-notification-card .social-row {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
    align-items: start;
}
.np-notification-card .social-row label {
    padding-top: 11px;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    color: #1e293b;
}
.np-notification-card .social-inputs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
.np-notification-card input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.np-notification-card input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}
.np-notification-card .hint {
    margin-left: 98px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #64748b;
}
.np-notification-card-note {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.82rem;
    line-height: 1.45;
    color: #475569;
}
.np-notifications-actions {
    justify-content: flex-start;
    gap: 12px;
    padding: 2px 4px 0;
}
.np-notification-viewer {
    position: sticky;
    top: 16px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background:
        radial-gradient(140% 120% at 100% 0%, rgba(191, 219, 254, 0.45) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
}
.np-notification-viewer:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}
.np-notification-viewer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.np-notification-viewer-head--compact {
    justify-content: flex-end;
    margin-bottom: 12px;
}
.np-notification-viewer-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.np-notification-viewer .meta-title {
    margin: 10px 0 8px;
    padding: 0;
    font-size: 1.3rem;
    color: #0f172a;
}
.np-notification-viewer-intro {
    margin: 0;
    max-width: 680px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}
.np-notification-viewer-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.np-notification-viewer-tips span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}
.np-notification-viewer-link {
    flex: 0 0 auto;
}
.np-notification-viewer-frame {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.np-notification-viewer img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 18px;
    background: #dbeafe;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
}
.np-notification-viewer-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}
.np-notification-viewer-control {
    min-width: 120px;
}
.np-notification-viewer-control[data-ntfy-prev] {
    justify-self: start;
}
.np-notification-viewer-control[data-ntfy-next] {
    justify-self: end;
}
.np-notification-viewer-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
.np-notification-viewer-counter {
    min-width: 88px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}
.np-notification-viewer-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.np-notification-viewer-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.np-notification-viewer-step:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}
.np-notification-viewer-step.is-active {
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(239, 246, 255, 0.98);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}
.np-notification-viewer-step-index {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #e0f2fe;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
}
.np-notification-viewer-step.is-active .np-notification-viewer-step-index {
    background: #2563eb;
    color: #ffffff;
}
.np-notification-viewer-step-label {
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 700;
}
.np-assets-layout {
    display: grid;
    grid-template-columns: minmax(180px, 20%) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.np-assets-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.np-assets-nav {
    position: sticky;
    top: 16px;
    align-self: start;
}
.np-assets-nav-card .meta-title {
    margin-bottom: 8px;
}
.np-assets-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.np-assets-nav-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
}
.np-assets-nav-list a:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.08);
}
.np-assets-nav-list a.is-active {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}
.np-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.np-asset-upload {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.np-asset-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.np-asset-drop {
    border: 1px dashed rgba(15, 23, 42, 0.25);
    border-radius: 12px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.04);
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}
.np-asset-drop span {
    display: block;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
}
.np-asset-drop.is-over {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.12);
}
.np-asset-card {
    border: 1px solid var(--client-primary-extralight);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
.np-asset-thumb {
    display: block;
    background: #f8fafc;
    height: 120px;
    position: relative;
    overflow: hidden;
}
.np-asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.np-asset-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 900px) {
    .np-notifications-layout {
        grid-template-columns: 1fr;
    }
    .np-notification-viewer {
        position: static;
    }
    .np-assets-layout {
        grid-template-columns: 1fr;
    }
    .np-assets-nav {
        position: static;
    }
}
@media (max-width: 760px) {
    .np-notification-card .social-row {
        grid-template-columns: 1fr;
    }
    .np-notification-card .social-row label {
        padding-top: 0;
    }
    .np-notification-card .hint {
        margin-left: 0;
    }
    .np-notification-viewer-head {
        flex-direction: column;
    }
    .np-notification-viewer-toolbar {
        grid-template-columns: 1fr;
    }
    .np-notification-viewer-control,
    .np-notification-viewer-control[data-ntfy-prev],
    .np-notification-viewer-control[data-ntfy-next] {
        justify-self: stretch;
        width: 100%;
    }
    .np-notification-viewer-steps {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 520px) {
    .np-notification-card {
        padding: 16px 14px 14px;
    }
    .np-notification-viewer {
        padding: 16px;
    }
    .np-notification-viewer-frame {
        padding: 10px;
        border-radius: 18px;
    }
}
.np-asset-file {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #64748b;
}
.np-asset-meta {
    padding: 10px;
    display: grid;
    gap: 6px;
}
.np-asset-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-asset-size {
    font-size: 0.8rem;
    color: #64748b;
}
.np-asset-actions {
    margin-top: auto;
    padding: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

/* Plugin "Payé" checkbox -> toggle UI (admin/sites.php) */
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"] + .np-switch-label {
    position: relative;
    padding-left: 54px;
    line-height: 24px;
}
.np-sites form.np-plugin-cell label.np-switch.np-switch--plugin-only input[data-plugin-paid="1"] + .np-switch-label {
    display: inline-block;
    padding-left: 0;
    width: 42px;
    height: 24px;
    line-height: 24px;
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"] + .np-switch-label .np-plugin-state {
    display: none;
    font-weight: 700;
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"]:checked + .np-switch-label .np-plugin-state--on {
    display: inline;
    color: #16a34a;
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"]:not(:checked) + .np-switch-label .np-plugin-state--off {
    display: inline;
    color: #b91c1c;
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"] + .np-switch-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--client-primary) 35%, #ffffff 65%);
    border: 1px solid color-mix(in srgb, var(--client-primary) 55%, transparent);
    transform: translateY(-50%);
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"] + .np-switch-label::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    transform: translateY(-50%);
    box-shadow: 0 6px 16px rgba(0,0,0,0.20);
    transition: left 160ms ease, transform 160ms ease;
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"]:checked + .np-switch-label::before {
    background: #16a34a;
    border-color: color-mix(in srgb, #16a34a 60%, transparent);
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"]:checked + .np-switch-label::after {
    left: 39px;
    transform: translate(-100%, -50%);
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"]:focus-visible + .np-switch-label::before {
    outline: 2px solid color-mix(in srgb, var(--client-primary-dark) 45%, #ffffff 55%);
    outline-offset: 2px;
}
.np-sites form.np-plugin-cell label.np-switch input[data-plugin-paid="1"]:disabled + .np-switch-label {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Pages widget editor */
.np-pages-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 10px;
}
@media (max-width: 900px) {
    .np-pages-grid {
        grid-template-columns: 1fr;
    }
}
.np-pages-add-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}
.np-pages-create {
    margin-bottom: 14px;
}
.np-pages-create--top {
    margin: 10px 0 18px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}
.np-pages-create--top .meta-title {
    margin-bottom: 8px;
}
.np-pages-create--top .alert,
.np-pages-create--top .color-toast {
    margin-bottom: 10px;
}
.np-pages-create--top .np-pages-add-row {
    margin-bottom: 0;
}
.np-page-delete-form {
    margin: 0;
}
.np-pages-items,
.np-page-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.np-page-item,
.np-page-block {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 10px;
    background: #ffffff;
}
.np-page-block {
    border-style: dashed;
}
.np-page-item.is-active {
    border-color: color-mix(in srgb, var(--client-primary) 60%, #e5e7eb 40%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.np-page-handle {
    font-weight: 900;
    cursor: grab;
    user-select: none;
}
.np-page-main,
.np-page-block-body {
    flex: 1;
    min-width: 0;
}
.np-page-link {
    display: inline-block;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}
.np-page-link:hover {
    text-decoration: none;
}
.np-page-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #6b7280;
}
.np-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 0.7rem;
    color: #1f2937;
}
.np-page-chip.warn {
    background: #fee2e2;
    color: #991b1b;
}
.np-page-block-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
}
.np-page-block-preview {
    font-size: 0.85rem;
    color: #374151;
}
.np-page-block-thumb {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}
.np-page-meta-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.np-page-add {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}
.np-downloads-admin {
    margin: 12px 0 18px;
    display: grid;
    gap: 12px;
}
.np-downloads-upload {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    display: grid;
    gap: 8px;
}
.np-downloads-label {
    font-weight: 700;
    font-size: 0.95rem;
}
.np-downloads-drop {
    position: relative;
    padding: 16px;
    border: 2px dashed #cbd5f5;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
    color: #475569;
}
.np-downloads-drop.is-drag {
    border-color: #6366f1;
    background: #eef2ff;
}
.np-downloads-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.np-downloads-drop-text {
    font-size: 0.9rem;
}
.np-downloads-list {
    display: grid;
    gap: 10px;
}
.np-downloads-item {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.np-downloads-item-main {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.np-downloads-badge {
    min-width: 54px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
}
.np-downloads-info {
    flex: 1 1 220px;
}
.np-downloads-title {
    font-weight: 800;
}
.np-downloads-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #64748b;
}
.np-downloads-open {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}
.np-downloads-row {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.np-downloads-row input[type="text"] {
    flex: 1 1 240px;
    min-width: 200px;
}
.np-downloads-delete {
    margin-top: 6px;
}
