/* A single thin WARNAX brand row; record details stay on white. */
.warnax-dialog-header,
.wanted-modal > header.warnax-dialog-header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 14px;
  padding: 0 16px 12px;
  color: #554264;
  background: #fff;
  border-bottom: 1px solid #e9e2ee;
}
.warnax-dialog-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34px;
  z-index: -1;
  background: linear-gradient(110deg, #fbfaff, #edeaf7, #f6f3fc, #edeaf7, #fbfaff);
  background-size: 280% 100%;
  animation: warnax-header-shimmer 12s ease-in-out infinite;
  box-shadow: inset 0 -1px 0 #d5cde9;
}
.warnax-dialog-header > div {
  display: contents;
}
.warnax-dialog-header .section-kicker {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  height: 34px;
  line-height: 34px;
  margin: 0;
  color: #433652;
  font: 700 10px/34px Arial, "Segoe UI", sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.warnax-dialog-header h2,
.warnax-dialog-header h3,
.traffic-settings-dialog .traffic-dialog-head h3,
.wanted-modal > header.warnax-dialog-header h2 {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  color: #554264;
  font: 700 18px/1.3 Arial, "Segoe UI", sans-serif;
  margin: 11px 0 0;
  overflow-wrap: anywhere;
}
.warnax-dialog-header p:not(.section-kicker) {
  grid-column: 1 / -1;
  grid-row: 3;
  color: #82768d;
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0 0;
}
.warnax-dialog-header .button,
.warnax-dialog-header .close-button,
.warnax-dialog-header .icon-button,
.wanted-modal > header.warnax-dialog-header .icon-button {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  min-height: 24px;
  height: 24px;
  padding: 3px 10px;
  color: #433652;
  background: #ffffff16;
  border: 1px solid #d5cde9;
  border-radius: 3px;
  font: 600 10px/16px Arial, "Segoe UI", sans-serif;
  white-space: nowrap;
}
.warnax-dialog-header .button:hover,
.warnax-dialog-header .close-button:hover,
.warnax-dialog-header .icon-button:hover {
  color: #433652;
  background: #ffffff2e;
}
.warnax-dialog-header button:focus-visible {
  outline: 2px solid #625187;
  outline-offset: 2px;
}
.osago-manual-dialog .osago-editor-head.warnax-dialog-header {
  position: sticky;
  top: -15px;
  z-index: 2;
  margin: -15px -15px 14px;
}
.osago-detail-modal .osago-detail-head.warnax-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
}
.traffic-settings-dialog .traffic-dialog-head.warnax-dialog-header {
  grid-column: 1 / -1;
  margin: -20px -20px 0;
}
@media (max-width: 760px) {
  .warnax-dialog-header,
  .wanted-modal > header.warnax-dialog-header {
    padding-left: 12px;
    padding-right: 12px;
    gap: 0 8px;
  }
  .warnax-dialog-header h2,
  .warnax-dialog-header h3 {
    font-size: 16px;
  }
  .traffic-settings-dialog .traffic-dialog-head.warnax-dialog-header {
    margin: -14px -14px 0;
  }
}

@keyframes warnax-header-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .warnax-dialog-header::before { animation: none; }
}
