:root,
html[data-theme="light"] {
  --color-primary: #1e40af;
  --color-primary-hover: #1d4ed8;
  --color-on-primary: #ffffff;
  --color-accent: #b45309;
  --color-background: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-foreground: #172554;
  --color-text: #1e293b;
  --color-muted-text: #64748b;
  --color-border: #dbe4f0;
  --color-success: #047857;
  --color-danger: #b91c1c;
  --color-warning-bg: #fff7ed;
  --color-ring: #2563eb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px rgba(30, 64, 175, .08);
  --primary: var(--color-primary);
  --secondary: #315cc8;
  --accent: #e0e7ff;
  --primary-fg: var(--color-on-primary);
  --body-fg: var(--color-text);
  --body-bg: var(--color-background);
  --body-quiet-color: var(--color-muted-text);
  --body-medium-color: #475569;
  --body-loud-color: #0f172a;
  --header-color: #ffffff;
  --header-branding-color: #ffffff;
  --header-bg: #102a72;
  --header-link-color: #dbeafe;
  --breadcrumbs-fg: #64748b;
  --breadcrumbs-link-fg: #1e40af;
  --breadcrumbs-bg: #ffffff;
  --link-fg: #1e40af;
  --link-hover-color: #1d4ed8;
  --link-selected-fg: #b45309;
  --hairline-color: var(--color-border);
  --border-color: var(--color-border);
  --error-fg: var(--color-danger);
  --message-success-bg: #ecfdf5;
  --message-warning-bg: #fffbeb;
  --message-error-bg: #fef2f2;
  --darkened-bg: #f1f5f9;
  --selected-bg: #eef2ff;
  --selected-row: #f0f5ff;
  --button-fg: #ffffff;
  --button-bg: var(--color-primary);
  --button-hover-bg: var(--color-primary-hover);
  --default-button-bg: var(--color-primary);
  --default-button-hover-bg: var(--color-primary-hover);
  --close-button-bg: #475569;
  --close-button-hover-bg: #334155;
  color-scheme: light;
}

html[data-theme="dark"] {
  --color-primary: #7da2ff;
  --color-primary-hover: #9ab7ff;
  --color-on-primary: #081a45;
  --color-accent: #fbbf24;
  --color-background: #0b1220;
  --color-surface: #111c2f;
  --color-surface-soft: #162238;
  --color-foreground: #dbeafe;
  --color-text: #e5edf8;
  --color-muted-text: #a8b6ca;
  --color-border: #2b3a53;
  --color-success: #6ee7b7;
  --color-danger: #fca5a5;
  --color-warning-bg: #3a280d;
  --color-ring: #93b4ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .24);
  --primary: #7da2ff;
  --secondary: #263b67;
  --accent: #172554;
  --primary-fg: #071735;
  --body-fg: var(--color-text);
  --body-bg: var(--color-background);
  --body-quiet-color: var(--color-muted-text);
  --body-medium-color: #c1ccdc;
  --body-loud-color: #ffffff;
  --header-color: #ffffff;
  --header-branding-color: #ffffff;
  --header-bg: #081a45;
  --header-link-color: #dbeafe;
  --breadcrumbs-fg: #a8b6ca;
  --breadcrumbs-link-fg: #bfdbfe;
  --breadcrumbs-bg: #101a2d;
  --link-fg: #9ab7ff;
  --link-hover-color: #c3d4ff;
  --link-selected-fg: #fbbf24;
  --hairline-color: var(--color-border);
  --border-color: var(--color-border);
  --error-fg: var(--color-danger);
  --message-success-bg: #12382f;
  --message-warning-bg: #3a280d;
  --message-error-bg: #421d25;
  --darkened-bg: #162238;
  --selected-bg: #1b2d50;
  --selected-row: #17294a;
  --button-fg: #081a45;
  --button-bg: #7da2ff;
  --button-hover-bg: #9ab7ff;
  --default-button-bg: #7da2ff;
  --default-button-hover-bg: #9ab7ff;
  --close-button-bg: #475569;
  --close-button-hover-bg: #64748b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--color-background); }
body { font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; line-height: 1.5; letter-spacing: .005em; }
a, button, input, select, textarea { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-ring) 35%, transparent); outline-offset: 2px; }

#header { min-height: 72px; padding: 0 28px; border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 4px 16px rgba(8,26,69,.18); }
#branding { min-width: 220px; }
#site-name { font-size: inherit; }
#site-name > a { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 5px 16px rgba(0,0,0,.15); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 18px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: #bfdbfe; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; }
#user-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; font-size: 12px; }
#user-tools a, #logout-form button { padding: 8px 6px; border-radius: 6px; }
#user-tools a:hover, #logout-form button:hover { background: rgba(255,255,255,.1); color: #fff; }
.theme-toggle { width: 40px; height: 40px; border-radius: 10px; }

div.breadcrumbs { min-height: 46px; display: flex; align-items: center; gap: 7px; padding: 8px 28px; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.main > .content { background: var(--color-background); }
#content { padding: 28px; }
#content h1 { margin: 0 0 22px; color: var(--body-loud-color); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
#content h2 { font-weight: 650; letter-spacing: -.015em; }

#nav-sidebar { width: 250px; flex: 0 0 250px; padding: 16px 12px; border-right: 1px solid var(--color-border); background: var(--color-surface); box-shadow: 4px 0 18px rgba(15,23,42,.035); }
#nav-filter { min-height: 42px; margin: 0 4px 14px; padding: 9px 12px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface-soft); color: var(--color-text); }
#nav-filter:focus { border-color: var(--color-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-ring) 18%, transparent); }
#nav-sidebar .module { margin-bottom: 16px; border: 0; background: transparent; }
#nav-sidebar .module caption { padding: 9px 12px; border-radius: 8px; background: transparent; color: var(--color-muted-text); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
#nav-sidebar .module th, #nav-sidebar .module td { padding: 0; border: 0; white-space: normal; }
#nav-sidebar .module th a { display: flex; min-height: 42px; align-items: center; margin: 2px 0; padding: 9px 12px; border-radius: 8px; color: var(--color-text); font-weight: 600; }
#nav-sidebar .module th a:hover { background: var(--selected-bg); color: var(--link-fg); }
#nav-sidebar .current-model th a { background: var(--selected-bg); color: var(--link-fg); box-shadow: inset 3px 0 0 var(--color-primary); }
#nav-sidebar .addlink, #nav-sidebar .changelink { display: grid; place-items: center; min-width: 38px; min-height: 38px; border-radius: 8px; background-position: center; font-size: 0; }
#nav-sidebar .addlink:hover, #nav-sidebar .changelink:hover { background-color: var(--selected-bg); }
#nav-sidebar-toggle { width: 44px; min-height: 44px; border: 0; border-right: 1px solid var(--color-border); background-color: var(--color-surface); }

.module, .inline-group, #changelist-filter, #content-related { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.module h2, .module caption, .inline-group h2 { padding: 12px 16px; background: var(--color-foreground); color: #fff; font-size: 13px; font-weight: 650; letter-spacing: .02em; }
html[data-theme="dark"] .module h2, html[data-theme="dark"] .module caption, html[data-theme="dark"] .inline-group h2 { background: #1b2d50; }
.module h3 { color: var(--color-muted-text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

#changelist { display: flex; gap: 20px; align-items: flex-start; }
#changelist .changelist-form-container { min-width: 0; flex: 1; }
#changelist .results { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-sm); overflow-x: auto; }
#changelist table { border: 0; }
#changelist table thead th { padding: 12px 14px; border-bottom: 1px solid var(--color-border); background: var(--color-surface-soft); color: var(--color-muted-text); font-size: 11px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
#changelist table tbody td, #changelist table tbody th { min-height: 48px; padding: 12px 14px; border-color: var(--color-border); vertical-align: middle; }
#changelist table tbody tr { background: var(--color-surface); }
#changelist table tbody tr:hover { background: var(--selected-row); }
#changelist-filter { flex: 0 0 240px; }
#changelist-filter h2 { padding: 14px 16px; }
#changelist-filter h3 { margin: 0; padding: 14px 16px 5px; }
#changelist-filter ul { margin: 0; padding: 4px 10px 12px; }
#changelist-filter li a { display: block; padding: 7px 8px; border-radius: 6px; }
#changelist-filter li.selected a { background: var(--selected-bg); color: var(--link-fg); font-weight: 700; }
#changelist .actions { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
#changelist-search { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-sm); }
#changelist-search #searchbar { min-height: 42px; border-radius: 8px; }
.paginator { color: var(--color-muted-text); font-variant-numeric: tabular-nums; }

input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], textarea, select, .vTextField { min-height: 42px; padding: 9px 11px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); color: var(--color-text); font: inherit; }
textarea { min-height: 110px; }
input:hover, textarea:hover, select:hover { border-color: #94a3b8; }
input:focus, textarea:focus, select:focus { border-color: var(--color-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-ring) 17%, transparent); outline: 0; }
.aligned label { padding-top: 10px; color: var(--color-text); font-weight: 600; }
.form-row { padding: 16px; border-color: var(--color-border); }
.help, p.help, form p.help, div.help, form div.help { margin-top: 6px; color: var(--color-muted-text); font-size: 12px; }
.errorlist { border-radius: 8px; }

.button, input[type="submit"], input[type="button"], .submit-row input, a.button, button.button { min-height: 42px; padding: 10px 15px; border: 0; border-radius: 8px; font-weight: 650; line-height: 1.2; cursor: pointer; box-shadow: none; }
.button:hover, input[type="submit"]:hover, input[type="button"]:hover, .submit-row input:hover, a.button:hover { box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.submit-row > * { margin: 0 !important; }
.submit-row a.deletelink { min-height: 42px; display: inline-flex; align-items: center; padding: 10px 15px; border-radius: 8px; }
.object-tools { margin-top: -56px; }
.object-tools a { min-height: 42px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--color-primary); font-weight: 650; }
.object-tools a:hover { background: var(--color-primary-hover); }

.messagelist { margin: 0 0 18px; padding: 0; }
.messagelist li { min-height: 48px; display: flex; align-items: center; padding: 12px 16px 12px 44px; border: 1px solid var(--color-border); border-radius: 10px; background-position: 16px center; box-shadow: var(--shadow-sm); }
.messagelist li.success { border-color: color-mix(in srgb, var(--color-success) 32%, var(--color-border)); }
.messagelist li.error { border-color: color-mix(in srgb, var(--color-danger) 32%, var(--color-border)); }

.admin-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 190px; margin-bottom: 20px; padding: 30px 32px; border-radius: 16px; overflow: hidden; color: #fff; background: linear-gradient(120deg, #102a72, #1e40af 58%, #315cc8); box-shadow: var(--shadow-md); }
.admin-hero::after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border: 44px solid rgba(255,255,255,.075); border-radius: 50%; pointer-events: none; }
.admin-hero > * { position: relative; z-index: 1; }
.admin-hero h1 { max-width: 680px; margin: 5px 0 10px !important; color: #fff !important; }
.admin-hero p { max-width: 680px; margin: 0; color: #dbeafe; font-size: 15px; }
.admin-eyebrow { color: inherit; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; }
.admin-hero-action { min-height: 46px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 11px 17px; border-radius: 9px; color: #172554 !important; background: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 7px 20px rgba(0,0,0,.13); }
.admin-hero-action:hover { background: #eef2ff; }
.quick-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.quick-actions a { position: relative; display: grid; min-height: 112px; padding: 17px; border: 1px solid var(--color-border); border-radius: 12px; color: var(--color-text); background: var(--color-surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.quick-actions a:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); box-shadow: var(--shadow-md); }
.quick-actions strong { margin-top: 15px; font-size: 15px; }
.quick-actions small { color: var(--color-muted-text); }
.quick-icon { position: absolute; top: 14px; right: 15px; color: var(--link-fg); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11px; font-weight: 700; }
.section-heading { margin: 4px 0 12px; }
.section-heading h2 { margin: 4px 0 0; color: var(--body-loud-color); font-size: 21px; }
.section-heading .admin-eyebrow { color: var(--color-muted-text); }
.dashboard #content { width: 100%; }
.dashboard #content-main { width: auto; }
.dashboard .module table th { width: 100%; }
.dashboard .module table td { white-space: nowrap; }
.dashboard .module a { font-weight: 600; }
.dashboard #content-related { padding: 0; }
.dashboard #content-related .module { border: 0; box-shadow: none; }
.dashboard #content-related h2 { margin: 0; }
.dashboard #content-related h3 { margin: 0; padding: 14px 16px 5px; }
.dashboard .actionlist { padding: 6px 16px 16px; }
.dashboard .actionlist li { display: grid; gap: 3px; padding: 11px 0 11px 24px; border-bottom: 1px solid var(--color-border); background-position: 0 14px; }
.empty-note { padding: 0 16px 16px; color: var(--color-muted-text); }

.backup-page #content { max-width: 1440px; width: 100%; margin-inline: auto; }
.backup-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 16px; padding: 28px 30px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #102a72, #1e40af 62%, #315cc8); box-shadow: var(--shadow-md); }
.backup-hero h1 { margin: 5px 0 8px !important; color: #fff !important; }
.backup-hero p { max-width: 700px; margin: 0; color: #dbeafe; font-size: 15px; }
.backup-create-button { min-width: 270px; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border: 0; border-radius: 10px; color: #172554; background: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.16); text-align: left; }
.backup-create-button:hover { background: #eef2ff; box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.backup-create-button:disabled { opacity: .72; cursor: wait; }
.backup-create-button svg { width: 26px; height: 26px; flex: 0 0 auto; fill: currentColor; }
.backup-create-button[aria-busy="true"] svg { animation: backup-spin 1s linear infinite; }
.button-copy { display: grid; gap: 2px; }
.button-copy strong { font-size: 14px; }
.button-copy small { color: #475569; font-size: 11px; }
@keyframes backup-spin { to { transform: rotate(360deg); } }
.backup-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.backup-stats article { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.backup-stats span { color: var(--color-muted-text); font-size: 12px; font-weight: 650; }
.backup-stats strong { color: var(--body-loud-color); font-size: 23px; font-variant-numeric: tabular-nums; }
.backup-panel { border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.backup-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--color-border); }
.backup-panel-heading .admin-eyebrow { color: var(--color-muted-text); }
.backup-panel-heading h2 { margin: 3px 0 0; color: var(--body-loud-color); font-size: 20px; }
.backup-panel-heading p { max-width: 460px; margin: 0; color: var(--color-muted-text); text-align: right; }
.backup-table-wrap { overflow-x: auto; }
.backup-table { width: 100%; border-collapse: collapse; }
.backup-table th { padding: 11px 14px; border-bottom: 1px solid var(--color-border); color: var(--color-muted-text); background: var(--color-surface-soft); font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .055em; }
.backup-table td { padding: 13px 14px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.backup-table tr:last-child td { border-bottom: 0; }
.backup-table tbody tr:hover { background: var(--selected-row); }
.backup-table td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.backup-table td:first-child small { display: block; color: var(--color-muted-text); }
.backup-filename { max-width: 390px; overflow-wrap: anywhere; font-weight: 600; }
.backup-table code { color: var(--color-muted-text); font-size: 12px; }
.backup-download { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border-radius: 8px; color: #fff !important; background: var(--color-primary); font-weight: 650; text-decoration: none; white-space: nowrap; }
.backup-download:hover { background: var(--color-primary-hover); }
.backup-download svg { width: 18px; height: 18px; fill: currentColor; }
.backup-empty { display: grid; place-items: center; padding: 48px 20px; text-align: center; }
.backup-empty svg { width: 44px; height: 44px; margin-bottom: 12px; fill: var(--color-muted-text); }
.backup-empty h3 { margin: 0 0 5px; color: var(--body-loud-color); }
.backup-empty p { margin: 0; color: var(--color-muted-text); }
.backup-warning { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 16px 18px; border: 1px solid color-mix(in srgb, #d97706 45%, var(--color-border)); border-radius: 12px; color: var(--color-text); background: var(--color-warning-bg); }
.backup-warning svg { width: 22px; height: 22px; flex: 0 0 auto; fill: #b45309; }
.backup-warning p { margin: 3px 0 0; color: var(--color-muted-text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

body.login { background: linear-gradient(135deg, #eef2ff 0%, var(--color-background) 55%, #e0e7ff 100%); }
html[data-theme="dark"] body.login { background: linear-gradient(135deg, #081a45 0%, var(--color-background) 58%, #111c2f 100%); }
.login #container { width: min(430px, calc(100% - 32px)); border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); box-shadow: 0 24px 70px rgba(15,23,42,.16); overflow: hidden; }
.login #header { min-height: 92px; padding: 18px 24px; }
.login #content { padding: 28px; }
.login .form-row { padding: 10px 0; }
.login .form-row label { font-weight: 650; }
.login .form-row #id_username, .login .form-row #id_password { width: 100%; min-height: 46px; }
.login .submit-row { padding: 12px 0 0; border: 0; box-shadow: none; background: transparent; }
.login .submit-row input { width: 100%; min-height: 46px; }

@media (max-width: 1024px) {
  #content { padding: 22px; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-hero { align-items: flex-start; flex-direction: column; }
  #changelist { display: block; }
  #changelist-filter { width: 100%; margin-top: 18px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  #header { min-height: auto; padding: 12px 16px; }
  #branding { min-width: 0; }
  .brand-copy small { display: none; }
  #user-tools { width: 100%; justify-content: flex-start; gap: 2px; padding-top: 8px; }
  div.breadcrumbs { padding: 9px 16px; overflow-x: auto; white-space: nowrap; }
  #content { padding: 18px 16px; }
  #content h1 { margin-bottom: 18px; }
  .object-tools { margin: 0 0 14px; float: none; }
  .object-tools li { float: none; }
  .object-tools a { justify-content: center; width: 100%; }
  .admin-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 24px 20px; }
  .admin-hero-action { width: 100%; justify-content: center; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions a { min-height: 96px; }
  .backup-hero { padding: 22px 18px; }
  .backup-hero form, .backup-create-button { width: 100%; min-width: 0; }
  .backup-stats { grid-template-columns: 1fr; }
  .backup-panel-heading { align-items: flex-start; flex-direction: column; }
  .backup-panel-heading p { text-align: left; }
  .backup-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .backup-table, .backup-table tbody, .backup-table tr, .backup-table td { display: block; width: 100%; }
  .backup-table tr { padding: 12px 14px; border-bottom: 1px solid var(--color-border); }
  .backup-table tr:last-child { border-bottom: 0; }
  .backup-table td { display: grid; grid-template-columns: minmax(90px, 32%) 1fr; gap: 10px; padding: 7px 0; border: 0; }
  .backup-table td[data-label]::before { content: attr(data-label); color: var(--color-muted-text); font-size: 12px; font-weight: 650; }
  .backup-table td:last-child { display: block; }
  .backup-download { width: 100%; margin-top: 4px; }
  .module, .inline-group, #changelist-filter, #content-related, #changelist .results { border-radius: 10px; }
  #changelist-search { align-items: stretch; flex-wrap: wrap; }
  #changelist-search #searchbar { width: calc(100% - 50px); font-size: 16px; }
  #changelist .actions { display: flex; align-items: center; flex-wrap: wrap; }
  input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], textarea, select, .vTextField { max-width: 100%; font-size: 16px; }
  .aligned .form-row > div { flex-direction: column; }
  .aligned label { width: auto; padding: 0 0 6px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row input, .submit-row a, .submit-row p { width: 100%; text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
