/* ==========================================================================
   Orizza Admin
   1. Tokens (globais)
   2. Componentes globais (admin e login)
   3. Shell do admin (escopado em body.admin-shell)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --brand-900: #36180c;
    --brand-700: #5c2e18;
    --accent: #f7945c;
    --accent-600: #e9793d;
    --accent-soft: rgba(247, 148, 92, 0.12);
    --bg: #f7f4f1;
    --surface: #fff;
    --surface-muted: #fbf8f6;
    --border: #ece6e1;
    --text: #1f1a17;
    --muted: #6b6460;
    --danger: #dc3545;
    --success: #1f8a4c;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(31, 26, 23, 0.04), 0 1px 3px rgba(31, 26, 23, 0.06);
    --shadow-md: 0 8px 24px rgba(31, 26, 23, 0.12);
    --sidebar-width: 264px;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Aliases usados por views e partials */
    --primary-color: var(--brand-900);
    --secondary-color: var(--accent);
}

/* 2. Componentes globais ------------------------------------------------- */
body {
    font-family: var(--font-sans);
    color: var(--text);
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-primary {
    --bs-btn-color: var(--brand-900);
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-900);
    --bs-btn-hover-border-color: var(--brand-900);
    --bs-btn-focus-shadow-rgb: 247, 148, 92;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-700);
    --bs-btn-active-border-color: var(--brand-700);
    --bs-btn-disabled-color: var(--brand-900);
    --bs-btn-disabled-bg: var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-700);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: var(--brand-900);
    --bs-btn-hover-bg: var(--accent);
    --bs-btn-hover-border-color: var(--accent);
    --bs-btn-focus-shadow-rgb: 247, 148, 92;
    --bs-btn-active-color: var(--brand-900);
    --bs-btn-active-bg: var(--accent);
    --bs-btn-active-border-color: var(--accent);
}

.btn-outline-secondary {
    --bs-btn-color: var(--muted);
    --bs-btn-border-color: var(--border);
    --bs-btn-bg: var(--surface);
    --bs-btn-hover-color: var(--text);
    --bs-btn-hover-bg: var(--surface-muted);
    --bs-btn-hover-border-color: #d9cfc8;
    --bs-btn-active-color: var(--text);
    --bs-btn-active-bg: var(--border);
    --bs-btn-active-border-color: #d9cfc8;
}

.btn-outline-danger {
    --bs-btn-border-color: #f1c4c8;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #3d3632;
}

.form-control,
.form-select {
    border-color: #e2dad4;
    border-radius: var(--radius-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(247, 148, 92, 0.2);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(247, 148, 92, 0.2);
}

.alert {
    border: none;
    border-radius: var(--radius);
    padding: 0.875rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(31, 138, 76, 0.08);
    border-left: 4px solid var(--success);
    color: #14532d;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.08);
    border-left: 4px solid var(--danger);
    color: #842029;
}

/* Toasts */
.toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.toast-stack .toast {
    pointer-events: auto;
    width: 100%;
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.toast-stack .toast-success { border-left-color: var(--success); }
.toast-stack .toast-error { border-left-color: var(--danger); }

.toast-stack .toast-body {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text);
}

.toast-stack .toast-body > span { flex: 1; }
.toast-stack .toast-success .toast-icon { color: var(--success); }
.toast-stack .toast-error .toast-icon { color: var(--danger); }
.toast-stack .toast-icon { margin-top: 0.15rem; }

/* Estado vazio */
.empty-state {
    background: var(--surface);
    border: 1px dashed #e0d5cd;
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 0.35rem;
}

.empty-state-text {
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 420px;
    margin: 0 auto 1.25rem;
}

/* Barra de ações do formulário */
.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 0;
    background: linear-gradient(rgba(247, 244, 241, 0), var(--bg) 40%);
}

.form-actions .btn { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Pílula de status */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.6;
    background: #f1ece8;
    color: var(--muted);
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.is-active {
    background: rgba(31, 138, 76, 0.1);
    color: var(--success);
}

/* 3. Shell do admin ------------------------------------------------------ */
:where(body.admin-shell, body.admin-shell *) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-shell {
    background: var(--bg);
    overflow-x: hidden;
}

/* Sidebar */
.admin-shell .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--brand-900);
    color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.admin-shell .sidebar-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-shell .sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent);
    line-height: 1;
}

.admin-shell .sidebar-brand small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 6px;
}

.admin-shell .sidebar-nav {
    flex: 1;
    padding: 1.25rem 0.75rem;
    overflow-y: auto;
}

.admin-shell .nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.5rem 0.75rem 0.35rem;
}

.admin-shell .nav-item-row {
    display: flex;
    align-items: center;
    border-radius: 10px;
    margin-bottom: 2px;
    overflow: hidden;
    transition: background 0.2s;
}

.admin-shell .nav-item-row:hover { background: rgba(255, 255, 255, 0.06); }

.admin-shell .nav-item-row.active { background: rgba(247, 148, 92, 0.16); }

.admin-shell .nav-main-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.admin-shell .nav-main-link:hover { color: #fff; }

.admin-shell .nav-item-row.active .nav-main-link {
    color: var(--accent);
    font-weight: 600;
}

.admin-shell .nav-main-link i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.admin-shell .nav-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 4px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.admin-shell .nav-new-btn:hover {
    color: var(--brand-900);
    background: var(--accent);
}

.admin-shell .nav-item-row.active .nav-new-btn { color: var(--accent); }
.admin-shell .nav-item-row.active .nav-new-btn:hover { color: var(--brand-900); }

.admin-shell .sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-shell .sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-shell .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--brand-900);
    flex-shrink: 0;
}

.admin-shell .sidebar-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-shell .sidebar-footer-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-shell .sidebar-logout-form { flex: 1; }

.admin-shell .btn-sidebar-logout {
    background: rgba(255, 255, 255, 0.07);
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.admin-shell .btn-sidebar-logout:hover {
    background: rgba(220, 53, 69, 0.28);
    color: #ffb3ba;
}

.admin-shell .btn-sidebar-migrate {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-shell .btn-sidebar-migrate:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

/* Top nav */
.admin-shell .top-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 2rem;
    margin-left: var(--sidebar-width);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-shell .mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--brand-900);
    cursor: pointer;
    padding: 0.25rem;
}

.admin-shell .page-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

/* Conteúdo */
.admin-shell .main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: calc(100vh - 54px);
    max-width: calc(1200px + var(--sidebar-width));
}

.admin-shell .fade-in { animation: fadeIn 0.3s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-shell .page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-shell .page-header h2 {
    color: var(--brand-900);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.admin-shell .page-header h2 i { color: var(--accent); }

.admin-shell .page-header p {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Cards */
.admin-shell .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-shell .card-header {
    background: var(--surface);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.admin-shell .card-header h4,
.admin-shell .card-header h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--brand-900);
}

.admin-shell .card-header h4 i,
.admin-shell .card-header h5 i { color: var(--accent); }

.admin-shell .card-body { padding: 1.25rem; }

/* Listagens */
.admin-shell .list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-shell .search-field {
    position: relative;
    flex: 1 1 260px;
    max-width: 420px;
}

.admin-shell .search-field > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.admin-shell .search-input {
    padding-left: 2.25rem;
    background-color: var(--surface);
}

.admin-shell .stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-shell .stat-chip strong { color: var(--text); }

.admin-shell .list-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-shell .list-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    transition: background 0.15s;
}

.admin-shell .list-row + .list-row { border-top: 1px solid var(--border); }
.admin-shell .list-row:hover { background: var(--surface-muted); }

.admin-shell .list-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--accent-soft);
    color: var(--accent-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-shell .list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-shell .list-main { min-width: 0; }

.admin-shell .list-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-shell a.list-title:hover { color: var(--accent-600); }

.admin-shell .list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.admin-shell .list-meta i { margin-right: 0.3rem; opacity: 0.75; }

.admin-shell .list-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-shell .list-search-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Campo de imagem com prévia (Blog e Cursos) */
.admin-shell .image-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.75rem;
    border: 2px dashed #e5d5cc;
    border-radius: var(--radius);
    background: var(--surface-muted);
    overflow: hidden;
}

.admin-shell .image-preview img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-shell .image-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #9a7b6c;
    font-size: 0.85rem;
}

.admin-shell .image-preview-empty i { font-size: 1.6rem; color: var(--accent); }
.admin-shell .image-preview.has-image { border-style: solid; border-color: var(--border); }
.admin-shell .image-preview.has-image img { display: block; }
.admin-shell .image-preview.has-image .image-preview-empty { display: none; }

/* Campos dinâmicos (Cursos) */
.admin-shell .dynamic-field {
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}

.admin-shell .remove-btn {
    background: transparent;
    border: 1px solid #f1c4c8;
    color: var(--danger);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.admin-shell .remove-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* Galeria de Eventos */
.admin-shell .cover-zone {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 2px dashed #e5d5cc;
    border-radius: var(--radius);
    background: var(--surface-muted);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.admin-shell .cover-zone.dragover,
.admin-shell .gallery-grid.dragover {
    border-color: var(--accent);
    background: rgba(247, 148, 92, 0.08);
}

.admin-shell .cover-zone img { display: none; width: 100%; height: 100%; object-fit: cover; }
.admin-shell .cover-zone.has-image { border-style: solid; border-color: transparent; }
.admin-shell .cover-zone.has-image img { display: block; }
.admin-shell .cover-zone.has-image .cover-empty { display: none; }

.admin-shell .cover-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9a7b6c;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    padding: 1rem;
}

.admin-shell .cover-empty i { font-size: 1.8rem; color: var(--accent); }

.admin-shell .cover-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.admin-shell .cover-zone.has-image .cover-actions { display: flex; }
.admin-shell .cover-actions .btn { border-radius: 8px; margin: 0; }

.admin-shell .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px dashed #e5d5cc;
    border-radius: var(--radius);
    background: var(--surface-muted);
    transition: border-color 0.2s, background 0.2s;
}

.admin-shell .gallery-tile,
.admin-shell .gallery-add {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.admin-shell .gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s, filter 0.2s; }

.admin-shell .gallery-tile.is-new::after {
    content: 'Nova';
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: var(--accent);
    color: var(--brand-900);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
}

.admin-shell .tile-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.92);
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.admin-shell .tile-btn:hover { background: #c82333; }

.admin-shell .tile-removed-label {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    white-space: nowrap;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
    padding: 2px 0;
}

.admin-shell .gallery-tile.is-removed img { opacity: 0.35; filter: grayscale(1); }
.admin-shell .gallery-tile.is-removed .tile-removed-label { display: block; }
.admin-shell .gallery-tile.is-removed .tile-btn { background: rgba(108, 117, 125, 0.92); }

.admin-shell .gallery-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 2px dashed var(--accent);
    color: var(--accent-600);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface);
    transition: background 0.2s;
}

.admin-shell .gallery-add i { font-size: 1.3rem; }
.admin-shell .gallery-add:hover { background: rgba(247, 148, 92, 0.08); }

/* Modal de exclusão */
.admin-shell .modal-content {
    border: none;
    border-radius: 14px;
}

.admin-shell .modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Mobile */
@media (max-width: 991px) {
    .admin-shell .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-shell .sidebar.mobile-open { transform: translateX(0); }
    .admin-shell .top-nav { margin-left: 0; padding: 0.75rem 1.25rem; }

    .admin-shell .main-content {
        margin-left: 0;
        padding: 1.25rem;
    }

    .admin-shell .mobile-toggle { display: block; }

    .admin-shell .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 999;
    }

    .admin-shell .mobile-overlay.active { display: block; }
}

@media (max-width: 575px) {
    .admin-shell .main-content { padding: 1rem; }
    .admin-shell .page-header h2 { font-size: 1.2rem; }
    .admin-shell .list-toolbar .btn,
    .admin-shell .search-field { flex: 1 1 100%; max-width: none; }

    .admin-shell .list-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 0.5rem 0.75rem;
        padding: 0.85rem 1rem;
    }

    .admin-shell .list-thumb { width: 48px; height: 48px; }
    .admin-shell .list-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .admin-shell .form-actions .btn { flex: 1; padding-left: 0.75rem; padding-right: 0.75rem; }
}

.admin-shell .image-error { display: block; }
