<style nonce="{{ csp_nonce }}">

/* === admin_templates.html === */
* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: system-ui, -apple-system, sans-serif; background: #f5f5f5; color: #333; padding: 20px; }
        h1 { font-size: 20px; margin-bottom: 16px; }
        .card { background: white; border-radius: 8px; padding: 24px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
        .btn { display: inline-block; padding: 6px 14px; background: #1a1a2e; color: white; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; font-size: 13px; }
        .btn-sm { padding: 4px 10px; font-size: 12px; }
        .btn-danger { background: #c0392b; }
        .btn-outline { background: transparent; border: 1px solid #1a1a2e; color: #1a1a2e; }
        .btn:hover { opacity: 0.9; }
        table { width: 100%; border-collapse: collapse; font-size: 13px; }
        th { text-align: left; padding: 8px; border-bottom: 2px solid #ddd; font-weight: 600; }
        td { padding: 8px; border-bottom: 1px solid #eee; vertical-align: top; }
        .badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
        .badge-featured { background: #fff3cd; color: #856404; }
        .badge-cat { background: #e8f5e9; color: #2e7d32; }
        .actions { display: flex; gap: 4px; }
        .flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 13px; }
        .flash-success { background: #d4edda; color: #155724; }
        .flash-error { background: #f8d7da; color: #721c24; }
        .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 100; }
        .modal.active { display: flex; }
        .modal-content { background: white; border-radius: 8px; padding: 24px; width: 500px; max-width: 90vw; max-height: 80vh; overflow-y: auto; }
        .modal-content h2 { font-size: 16px; margin-bottom: 16px; }
        .form-group { margin-bottom: 12px; }
        .form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
        .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
        .form-group textarea { font-family: monospace; font-size: 12px; min-height: 120px; }
        .modal-actions { display: flex; gap: 8px; margin-top: 16px; }
</style>