{# We keep Django's own admin CSS loaded (base.css/dark_mode.css/ responsive.css, plus whatever change_form.html/change_list.html add via extrastyle) rather than stripping it out - the actual list/form HTML Django generates per-model (results tables, filters, fieldsets, inline formsets, the calendar/clock widgets) depends on it for layout, and re-building all of that from scratch across 44 registered models would be its own project. Instead, this file reskins colors by overriding the CSS custom properties Django's own stylesheets already read from (--body-bg, --link-fg, --button-bg, etc. - see admin/css/base.css) to match Secera's palette, and replaces the outer chrome (header/breadcrumbs/nav-sidebar) with the same sidebar/ topbar/page shell every other page in the app uses. The actual tables/forms Django renders inside the content block are untouched structurally - just recolored. #}
Skip to main content {# Raw-id/related-object popups get no shell at all, matching Django's own default behavior (header/sidebar are already hidden for these). All the content-related block tags below appear exactly once in this file - Django's block-tag parser resolves them at compile time regardless of surrounding if-tags, so duplicating a block inside both an if- and else-branch is a TemplateSyntaxError - only the wrapping shell HTML around them is conditional on is_popup. #}