/* Django admin в токенах системы: Golos Text, один синий акцент, плоские таблицы. */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-400-cyrillic.2b8fbbb33a14.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-400-latin.f57df9832ab8.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-600-cyrillic.2b8fbbb33a14.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-600-latin.f57df9832ab8.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
:root, html[data-theme] {
  --primary: #1d5fd1; --secondary: #1d5fd1; --accent: #1d5fd1; --primary-fg: #fff;
  --header-color: #15181e; --header-branding-color: #15181e; --header-link-color: #1d5fd1;
  --breadcrumbs-fg: #7b8494; --breadcrumbs-link-fg: #1d5fd1;
  --link-fg: #1d5fd1; --link-hover-color: #174db0; --link-selected-fg: #174db0;
  --button-bg: #1d5fd1; --button-hover-bg: #174db0; --default-button-bg: #1d5fd1; --default-button-hover-bg: #174db0;
  --object-tools-bg: #4b5563; --object-tools-hover-bg: #15181e;
  --font-family-primary: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[data-theme="light"], :root:not([data-theme="dark"]) { --header-bg: #ffffff; --breadcrumbs-bg: #f3f4f6; --body-bg: #ffffff; --darkened-bg: #f8f9fb; --hairline-color: #e2e5ea; --border-color: #c9cfd8; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { --header-bg: #171b21; --header-color: #e7eaef; --header-branding-color: #e7eaef; --header-link-color: #5b94f0; --breadcrumbs-bg: #0f1216; --link-fg: #5b94f0; } }
html[data-theme="dark"] { --header-bg: #171b21; --header-color: #e7eaef; --header-branding-color: #e7eaef; --header-link-color: #5b94f0; --breadcrumbs-bg: #0f1216; --link-fg: #5b94f0; }
body { font-size: 14px; }
#header { border-bottom: 1px solid var(--hairline-color); padding: 8px 24px; min-height: 52px; }
#site-name a.adm-brand { display: flex; align-items: center; gap: 10px; color: var(--header-branding-color); font-weight: 600; font-size: 15px; text-decoration: none; }
.adm-mark { width: 28px; height: 28px; border-radius: 6px; background: #1d5fd1; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.adm-brand small { display: block; font-size: 11px; color: var(--body-quiet-color); font-weight: 400; }
#user-tools { text-transform: none; letter-spacing: 0; font-size: 13px; display: flex; align-items: center; gap: 14px; }
#user-tools a { border-bottom: 0; color: var(--header-link-color); font-weight: 500; }
.adm-who { color: var(--body-quiet-color); }
div.breadcrumbs { border-bottom: 1px solid var(--hairline-color); }
#recent-actions-module { display: none; }
.module h2, .module caption, .inline-group h2 { background: var(--darkened-bg); color: var(--body-fg); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 13px; }
.module { border: 1px solid var(--hairline-color); border-radius: 6px; overflow: hidden; }
#content h1 { font-weight: 600; font-size: 20px; }
thead th, tfoot td { background: var(--darkened-bg); text-transform: none; letter-spacing: 0; }
.button, input[type=submit], input[type=button], .submit-row input, a.button { border-radius: 6px; }
.object-tools a { border-radius: 6px; text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
  #header { padding: 8px 12px; }
  #user-tools a, .object-tools a, .button, input[type=submit], #content a, #site-name a, .paginator a, #changelist-filter a { min-height: 44px; display: inline-flex; align-items: center; }
  #content a.related-widget-wrapper-link, .theme-toggle { min-width: 44px; min-height: 44px; justify-content: center; display: inline-flex; align-items: center; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 44px; }
  input[type=checkbox] { width: 22px; height: 22px; }
  .module td, .module th { vertical-align: middle; }
  #content a.addlink, #content a.changelink, #content a.viewlink, #content a.deletelink { display: inline-block; line-height: 44px; min-height: 44px; background-position: 0 50%; }
  #header { flex-wrap: wrap; gap: 4px; }
  #user-tools { margin: 0; justify-content: flex-start; flex-wrap: wrap; }
}
