        .restoia-front-shell {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding: 24px;
            background: #f6f7f7;
            border-radius: 14px;
            box-sizing: border-box;
            color: #1d2327;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        }
        .restoia-front-shell .wrap,
        .restoia-front-shell .et_pb_text_inner,
        .restoia-front-shell .et_pb_module,
        .restoia-front-shell .et_pb_code_inner {
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
            overflow: visible;
        }
        .restoia-front-shell h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.2; font-weight: 700; color: #111827; }
        .restoia-front-shell h2 { margin: 28px 0 14px; font-size: 22px; line-height: 1.3; font-weight: 700; color: #1f2937; }
        .restoia-front-shell h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; font-weight: 700; color: #374151; }
        .restoia-front-shell p, .restoia-front-shell li, .restoia-front-shell label, .restoia-front-shell th, .restoia-front-shell td { font-size: 14px; line-height: 1.5; }
        .restoia-front-shell .description { margin: 6px 0 0; color: #64748b; font-size: 13px; }
        .restoia-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
        .restoia-card { background: #fff; border: 1px solid #dcdcde; border-radius: 12px; padding: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
        .restoia-front-shell .form-table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 12px 0 24px; background: #ffffff; border: 1px solid #dcdcde; border-radius: 12px; overflow: hidden; display: table; }
        .restoia-front-shell .form-table tr { border-bottom: 1px solid #e5e7eb; }
        .restoia-front-shell .form-table tr:last-child { border-bottom: 0; }
        .restoia-front-shell .form-table th { width: 240px; padding: 16px; text-align: left; vertical-align: top; font-weight: 700; background: #f9fafb; color: #111827; }
        .restoia-front-shell .form-table td { padding: 16px; vertical-align: top; }
        .restoia-front-shell input[type="text"], .restoia-front-shell input[type="email"], .restoia-front-shell input[type="number"], .restoia-front-shell input[type="date"], .restoia-front-shell input[type="url"], .restoia-front-shell select, .restoia-front-shell textarea, .restoia-front-shell .regular-text, .restoia-front-shell .large-text { width: 100%; max-width: 520px; min-height: 42px; padding: 9px 12px; border: 1px solid #c3c4c7; border-radius: 8px; background: #ffffff; color: #111827; box-sizing: border-box; font-size: 14px; }
        .restoia-front-shell textarea, .restoia-front-shell .large-text { max-width: 760px; min-height: 120px; }
        .restoia-front-shell input[type="checkbox"] { width: 18px; height: 18px; vertical-align: middle; margin-right: 8px; }
        .restoia-front-shell .button, .restoia-front-shell .button-primary, .restoia-front-shell button, .restoia-front-shell input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid #111827; border-radius: 8px; background: #111827; color: #ffffff !important; text-decoration: none !important; font-weight: 700; line-height: 1.2; cursor: pointer; box-sizing: border-box; transition: opacity .15s ease, transform .15s ease; }
        .restoia-front-shell .button:hover, .restoia-front-shell .button-primary:hover, .restoia-front-shell button:hover, .restoia-front-shell input[type="submit"]:hover { opacity: .9; transform: translateY(-1px); }

        .restoia-calendar-manual-add {
            margin: 22px 0;
            padding: 0;
            border-radius: 16px;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
            overflow: hidden;
        }

        .restoia-calendar-manual-add summary {
            cursor: pointer;
            list-style: none;
            padding: 18px 22px;
            background: #f9fafb;
            color: #111827;
            font-weight: 800;
            font-size: 15px;
            border-bottom: 1px solid #e5e7eb;
        }

        .restoia-calendar-manual-add summary::-webkit-details-marker {
            display: none;
        }

        .restoia-calendar-manual-add summary span::before {
            content: "+";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            margin-right: 10px;
            border-radius: 999px;
            background: #111827;
            color: #ffffff;
            font-weight: 900;
            line-height: 1;
        }

        .restoia-calendar-manual-add[open] summary span::before {
            content: "−";
        }

        .restoia-calendar-manual-form {
            padding: 22px;
        }

        .restoia-calendar-manual-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 16px;
            align-items: start;
        }

        .restoia-calendar-manual-grid label {
            display: flex;
            flex-direction: column;
            gap: 7px;
            margin: 0;
            color: #374151;
            font-weight: 700;
            font-size: 13px;
        }

        .restoia-calendar-manual-grid label span {
            color: #111827;
            font-weight: 800;
            font-size: 13px;
        }

        .restoia-calendar-manual-grid input,
        .restoia-calendar-manual-grid select,
        .restoia-calendar-manual-grid textarea {
            width: 100% !important;
            max-width: 100% !important;
            min-height: 42px;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            padding: 9px 11px;
            background: #ffffff;
            color: #111827;
            box-sizing: border-box;
        }

        .restoia-calendar-field-large {
            grid-column: span 2;
        }

        .restoia-calendar-field-full {
            grid-column: 1 / -1;
        }

        .restoia-calendar-manual-actions {
            margin-top: 18px;
            display: flex;
            justify-content: flex-end;
        }

        @media (max-width: 900px) {
            .restoia-calendar-manual-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .restoia-calendar-field-large {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 640px) {
            .restoia-calendar-manual-form {
                padding: 16px;
            }

            .restoia-calendar-manual-grid {
                grid-template-columns: 1fr;
            }

            .restoia-calendar-manual-actions {
                justify-content: stretch;
            }

            .restoia-calendar-manual-actions .button {
                width: 100%;
            }
        }

        .restoia-front-shell .restoia-danger { background: #b91c1c !important; border-color: #b91c1c !important; }
        .restoia-inline-form { display: inline-flex; margin-left: 6px; }
        .restoia-front-shell table.widefat, .restoia-front-shell .widefat { width: 100%; border-collapse: collapse; margin: 18px 0 28px; background: #ffffff; border: 1px solid #dcdcde; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
        .restoia-front-shell table.widefat th, .restoia-front-shell table.widefat td, .restoia-front-shell .widefat th, .restoia-front-shell .widefat td { padding: 12px 14px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
        .restoia-front-shell table.widefat th, .restoia-front-shell .widefat th { background: #111827; color: #ffffff; font-weight: 700; white-space: nowrap; }
        .restoia-front-shell table.widefat tr:last-child td, .restoia-front-shell .widefat tr:last-child td { border-bottom: 0; }
        .restoia-front-shell table.widefat tbody tr:nth-child(even), .restoia-front-shell .widefat tbody tr:nth-child(even) { background: #f9fafb; }
        .restoia-front-shell .notice, .restoia-front-notice { margin: 16px 0; padding: 14px 16px; border-radius: 10px; border-left: 5px solid #64748b; background: #ffffff; box-shadow: 0 4px 16px rgba(15, 23, 42, .06); }
        .restoia-front-shell .notice p { margin: 0; }
        .restoia-front-shell .notice-success, .restoia-front-notice.restoia-front-success { border-left-color: #16a34a; background: #f0fdf4; color: #14532d; }
        .restoia-front-shell .notice-error, .restoia-front-error { border-left-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
        .restoia-front-shell .notice-warning { border-left-color: #f59e0b; background: #fffbeb; color: #78350f; }
        .restoia-front-shell .notice-info { border-left-color: #2563eb; background: #eff6ff; color: #1e3a8a; }
        .restoia-front-shell code, .restoia-front-shell pre { background: #0f172a; color: #e5e7eb; border-radius: 8px; padding: 2px 6px; }
        .restoia-front-shell pre { padding: 16px; overflow-x: auto; white-space: pre-wrap; }
        @media (max-width: 900px) {
            .restoia-front-shell { padding: 16px; }
            .restoia-grid { grid-template-columns: 1fr; }
            .restoia-front-shell .form-table, .restoia-front-shell .form-table tbody, .restoia-front-shell .form-table tr, .restoia-front-shell .form-table th, .restoia-front-shell .form-table td { display: block; width: 100%; }
            .restoia-front-shell .form-table th { padding-bottom: 6px; }
            .restoia-front-shell .form-table td { padding-top: 6px; }
            .restoia-front-shell table.widefat, .restoia-front-shell .widefat { display: block; overflow-x: auto; white-space: nowrap; }
        }

        .restoia-jour-loader {
                display: none;
                margin: 18px 0;
                padding: 16px 18px;
                border-radius: 14px;
                background: #eff6ff;
                border: 1px solid #bfdbfe;
                color: #1e40af;
                font-weight: 800;
            }
            .restoia-jour-loader-dot {
                display: inline-block;
                width: 8px;
                height: 8px;
                margin-left: 4px;
                border-radius: 999px;
                background: currentColor;
                animation: restoiaJourPulse 1s infinite ease-in-out;
            }
            .restoia-jour-loader-dot:nth-child(2) { animation-delay: .15s; }
            .restoia-jour-loader-dot:nth-child(3) { animation-delay: .3s; }
            @keyframes restoiaJourPulse {
                0%, 80%, 100% { opacity: .25; transform: translateY(0); }
                40% { opacity: 1; transform: translateY(-3px); }
            }

/* Import IA — champ payload technique masqué */
.restoia-import-payload-hidden {
    display: none;
}


/* Admin Resto IA — loaders et résultats IA */
.restoia-admin-loader {
    display: none;
    margin: 20px 0;
    padding: 18px;
    background: #fff;
    border-left: 5px solid #2271b1;
}

.restoia-admin-ai-result {
    margin: 25px 0;
    max-width: 1200px;
}

.restoia-admin-ai-title {
    margin: 0 0 16px;
}

.restoia-admin-ai-raw {
    white-space: pre-wrap;
    background: #111827;
    color: #fff;
    padding: 18px;
    border-radius: 12px;
}

