<style>
    /* Jabali Panel - Filament-matching Design System */
    :root {
        --jp-bg: #ffffff;
        --jp-bg-subtle: #f9fafb;
        --jp-bg-muted: #f3f4f6;
        --jp-border: #e5e7eb;
        --jp-text: #111827;
        --jp-text-muted: #6b7280;
        --jp-text-subtle: #9ca3af;
        --jp-primary: #3b82f6;
        --jp-success: #10b981;
        --jp-warning: #f59e0b;
        --jp-danger: #ef4444;
        --jp-info: #06b6d4;
    }
    .dark {
        --jp-bg: #1f2937;
        --jp-bg-subtle: #111827;
        --jp-bg-muted: #374151;
        --jp-border: #374151;
        --jp-text: #f9fafb;
        --jp-text-muted: #9ca3af;
        --jp-text-subtle: #6b7280;
    }

    /* Cards */
    .jp-card {
        background: var(--jp-bg);
        border: 1px solid var(--jp-border);
        border-radius: 8px;
        overflow: hidden;
    }
    .jp-card-header {
        padding: 16px;
        border-bottom: 1px solid var(--jp-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }
    .jp-card-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--jp-text);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .jp-card-title svg { width: 20px; height: 20px; }
    .jp-card-body { padding: 16px; }
    .jp-card-footer {
        padding: 12px 16px;
        border-top: 1px solid var(--jp-border);
        background: var(--jp-bg-subtle);
    }

    /* Stats Grid */
    .jp-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }
    .jp-stat {
        background: var(--jp-bg);
        border: 1px solid var(--jp-border);
        border-radius: 8px;
        padding: 16px;
    }
    .jp-stat-value {
        font-size: 24px;
        font-weight: 700;
        color: var(--jp-text);
        line-height: 1;
    }
    .jp-stat-label {
        font-size: 12px;
        color: var(--jp-text-muted);
        margin-top: 4px;
    }
    .jp-stat.success .jp-stat-value { color: var(--jp-success); }
    .jp-stat.warning .jp-stat-value { color: var(--jp-warning); }
    .jp-stat.danger .jp-stat-value { color: var(--jp-danger); }
    .jp-stat.info .jp-stat-value { color: var(--jp-info); }

    /* Tables */
    .jp-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .jp-table {
        width: 100%;
        border-collapse: collapse;
    }
    .jp-table th {
        text-align: left;
        padding: 12px 16px;
        font-size: 12px;
        font-weight: 500;
        color: var(--jp-text-muted);
        background: var(--jp-bg-subtle);
        border-bottom: 1px solid var(--jp-border);
    }
    .jp-table td {
        padding: 12px 16px;
        font-size: 14px;
        color: var(--jp-text);
        border-bottom: 1px solid var(--jp-border);
        vertical-align: middle;
    }
    .jp-table tr:hover td { background: var(--jp-bg-subtle); }
    .jp-table tr:last-child td { border-bottom: none; }

    /* Badges */
    .jp-badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        gap: 6px;
    }
    .jp-badge-success { background: rgba(16, 185, 129, 0.1); color: #059669; }
    .jp-badge-warning { background: rgba(245, 158, 11, 0.1); color: #d97706; }
    .jp-badge-danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
    .jp-badge-info { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
    .jp-badge-gray { background: var(--jp-bg-muted); color: var(--jp-text-muted); }
    .dark .jp-badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
    .dark .jp-badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
    .dark .jp-badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
    .dark .jp-badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

    /* Buttons */
    .jp-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.15s;
        border: none;
        text-decoration: none;
    }
    .jp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .jp-btn svg { width: 16px; height: 16px; }
    .jp-btn-sm { padding: 6px 10px; font-size: 12px; }
    .jp-btn-sm svg { width: 14px; height: 14px; }
    .jp-btn-xs { padding: 4px 8px; font-size: 11px; }
    .jp-btn-xs svg { width: 12px; height: 12px; }

    .jp-btn-primary { background: var(--jp-primary); color: white; }
    .jp-btn-primary:hover:not(:disabled) { background: #2563eb; }
    .jp-btn-success { background: var(--jp-success); color: white; }
    .jp-btn-success:hover:not(:disabled) { background: #059669; }
    .jp-btn-danger { background: var(--jp-danger); color: white; }
    .jp-btn-danger:hover:not(:disabled) { background: #dc2626; }
    .jp-btn-warning { background: var(--jp-warning); color: white; }
    .jp-btn-warning:hover:not(:disabled) { background: #d97706; }
    .jp-btn-secondary {
        background: var(--jp-bg);
        color: var(--jp-text);
        border: 1px solid var(--jp-border);
    }
    .jp-btn-secondary:hover:not(:disabled) { background: var(--jp-bg-subtle); }
    .jp-btn-ghost { background: transparent; color: var(--jp-text-muted); }
    .jp-btn-ghost:hover:not(:disabled) { background: var(--jp-bg-subtle); color: var(--jp-text); }

    /* Soft buttons (like Filament's outlined style) */
    .jp-btn-soft-primary { background: rgba(59, 130, 246, 0.1); color: var(--jp-primary); }
    .jp-btn-soft-primary:hover:not(:disabled) { background: rgba(59, 130, 246, 0.2); }
    .jp-btn-soft-success { background: rgba(16, 185, 129, 0.1); color: var(--jp-success); }
    .jp-btn-soft-success:hover:not(:disabled) { background: rgba(16, 185, 129, 0.2); }
    .jp-btn-soft-danger { background: rgba(239, 68, 68, 0.1); color: var(--jp-danger); }
    .jp-btn-soft-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.2); }

    /* Forms */
    .jp-input, .jp-select, .jp-textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid var(--jp-border);
        border-radius: 6px;
        background: var(--jp-bg);
        color: var(--jp-text);
        font-size: 14px;
        transition: border-color 0.15s, box-shadow 0.15s;
    }
    .jp-input:focus, .jp-select:focus, .jp-textarea:focus {
        outline: none;
        border-color: var(--jp-primary);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    .jp-label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--jp-text);
        margin-bottom: 6px;
    }
    .jp-helper { font-size: 12px; color: var(--jp-text-muted); margin-top: 4px; }

    /* Action Groups */
    .jp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .jp-actions-sm { gap: 4px; }

    /* Grid layouts */
    .jp-grid { display: grid; gap: 16px; }
    .jp-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .jp-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .jp-grid-4 { grid-template-columns: repeat(4, 1fr); }
    @media (max-width: 1024px) {
        .jp-grid-4 { grid-template-columns: repeat(2, 1fr); }
        .jp-grid-3 { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
        .jp-grid-4, .jp-grid-3, .jp-grid-2 { grid-template-columns: 1fr; }
    }

    /* Empty state */
    .jp-empty {
        padding: 48px 24px;
        text-align: center;
        color: var(--jp-text-muted);
    }
    .jp-empty svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.5; }
    .jp-empty-title { font-size: 16px; font-weight: 500; color: var(--jp-text); margin-bottom: 4px; }
    .jp-empty-text { font-size: 14px; }

    /* Info/Warning/Error boxes */
    .jp-alert {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 14px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    .jp-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
    .jp-alert-info { background: rgba(59, 130, 246, 0.1); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, 0.2); }
    .jp-alert-success { background: rgba(16, 185, 129, 0.1); color: #047857; border: 1px solid rgba(16, 185, 129, 0.2); }
    .jp-alert-warning { background: rgba(245, 158, 11, 0.1); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.2); }
    .jp-alert-danger { background: rgba(239, 68, 68, 0.1); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.2); }
    .dark .jp-alert-info { color: #93c5fd; }
    .dark .jp-alert-success { color: #6ee7b7; }
    .dark .jp-alert-warning { color: #fcd34d; }
    .dark .jp-alert-danger { color: #fca5a5; }

    /* Code/Log display */
    .jp-code {
        background: #18181b;
        border-radius: 8px;
        padding: 16px;
        font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
        font-size: 12px;
        color: #a1a1aa;
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-all;
    }
    .jp-code-success { color: #4ade80; }

    /* Modal */
    .jp-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }
    .jp-modal {
        background: var(--jp-bg);
        border-radius: 12px;
        width: 100%;
        max-width: 600px;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    .jp-modal-lg { max-width: 900px; }
    .jp-modal-header {
        padding: 16px 20px;
        border-bottom: 1px solid var(--jp-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .jp-modal-title { font-size: 16px; font-weight: 600; color: var(--jp-text); }
    .jp-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
    .jp-modal-footer {
        padding: 12px 20px;
        border-top: 1px solid var(--jp-border);
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    /* Spinner */
    .jp-spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        vertical-align: middle;
    }
    .jp-spinner svg { animation: jp-spin 1s linear infinite; }
    @keyframes jp-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

    /* Text utilities */
    .jp-text-muted { color: var(--jp-text-muted); }
    .jp-text-success { color: var(--jp-success); }
    .jp-text-warning { color: var(--jp-warning); }
    .jp-text-danger { color: var(--jp-danger); }
    .jp-text-sm { font-size: 13px; }
    .jp-text-xs { font-size: 12px; }
    .jp-font-mono { font-family: ui-monospace, SFMono-Regular, monospace; }

    /* Domain/Item cell */
    .jp-item-cell { display: flex; flex-direction: column; gap: 2px; }
    .jp-item-name { font-weight: 500; color: var(--jp-text); }
    .jp-item-meta { font-size: 12px; color: var(--jp-text-muted); }

    /* Responsive */
    @media (max-width: 768px) {
        .jp-hide-mobile { display: none !important; }
        .jp-card-header { flex-direction: column; align-items: flex-start; }
    }
</style>
