.data-head { display: none; }

.audit { display: grid; gap: 12px; }
.audit-item { padding: 10px 12px; border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; }
.audit-item.audit-insert { border-left-color: hsl(142, 60%, 40%); }
.audit-item.audit-update { border-left-color: var(--primary); }
.audit-item.audit-delete { border-left-color: var(--danger); }
.audit-item summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
.audit-item summary::-webkit-details-marker { display: none; }
.audit-item summary strong { overflow-wrap: anywhere; }
.audit-fields { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
#audit-more { justify-self: start; }

.cover-grid .data-row { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
.cover-grid .data-row strong { grid-column: 1 / -1; }
.cover-cell { display: grid; gap: 4px; font-size: 0.875rem; }
.cover-cell input { width: 100%; max-width: 7rem; font-size: 16px; }
.access-admin { display: grid; gap: 12px; }
.access-admin .add-panel { max-width: 32rem; margin-bottom: 0; }
.access-who { display: grid; gap: 2px; min-width: 0; }
.access-who .note { overflow-wrap: anywhere; font-size: 0.85rem; }
.badge.off { border-color: var(--danger); color: var(--danger); }
.access-back { justify-self: start; height: 40px; padding: 0 16px; }
.access-create { justify-self: start; width: auto; padding: 0 16px; }

.class-bar input[type="number"] { flex: 0 0 5.5rem; }
.class-grid .filter-row { gap: 12px; }
.class-grid .filter-row span { color: var(--muted); margin-left: auto; }

#admin-devnotes, .dev-notes, .dev-list { display: grid; gap: 12px; }
.dev-card { gap: 6px; }
.dev-card.priority { border-left: 4px solid var(--danger); }
.dev-card.done { opacity: 0.65; }
.dev-card.done .dev-title { text-decoration: line-through; }
.dev-title { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.dev-title .badge { text-decoration: none; display: inline-block; }
.dev-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dev-card .note { margin: 0; font-size: 0.85rem; }
.dev-actions .sign-out { height: 32px; padding: 0 10px; font-size: 0.85rem; }

@media (min-width: 768px) {
    .dev-notes { max-width: 52rem; }
    .filters-admin { max-width: 52rem; }
    .filter-add { display: flex; align-items: center; gap: 16px; }
    .filter-add .people-bar { flex: 0 1 28rem; }
    .filters-admin > .people-bar { max-width: 28rem; }

    .data-grid { gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
    .data-grid .data-head,
    .data-grid .data-row { display: grid; align-items: center; gap: 12px; padding: 8px 12px; }
    .data-grid .data-head {
        background: var(--page);
        border-bottom: 1px solid var(--border);
        color: var(--muted);
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }
    .data-grid .data-row { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
    .data-grid .data-row:last-child { border-bottom: 0; }
    .data-grid .data-row:hover { background: var(--nav-active); }
    .data-grid .holiday-actions { justify-content: flex-end; }
    .data-grid label.check { min-height: 0; }
    .data-grid .cell-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .dept-grid .data-head,
    .dept-grid .data-row { grid-template-columns: minmax(0, 1fr) 10rem 6rem 6rem; }
    .cover-grid .data-head,
    .cover-grid .data-row { grid-template-columns: minmax(0, 1fr) repeat(var(--depots, 1), 7rem); }
    .cover-grid .data-row strong { grid-column: auto; }
    .cover-cell { display: block; }
    .class-grid .data-head,
    .class-grid .data-row { grid-template-columns: minmax(0, 1fr) 6rem 7rem; }
    .class-grid .filter-row span { margin-left: 0; color: inherit; }
    .class-grid .data-row .sign-out { justify-self: end; }
    .depot-grid .data-head,
    .depot-grid .data-row { grid-template-columns: minmax(0, 1fr) 7rem; }
    .depot-grid .data-row .sign-out { justify-self: end; }
    .access-grid .data-head,
    .access-grid .data-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 6rem 9rem 11rem; }
    .access-admin > .staff-bar { max-width: 52rem; }
}
