body {
  background: #f5f7f8;
}

body::before {
  display: none;
}

.site-header {
  border-top: 3px solid #153e5c;
  border-bottom-color: #d6e0e6;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 64px;
}

.brand {
  color: #153e5c;
}

.brand-mark,
.header-action {
  border-color: #b9cbd7;
  border-radius: 4px;
  box-shadow: none;
}

.nav a,
.header-action {
  color: #465964;
  font-weight: 400;
}

.page-hero {
  padding: 22px 0 2px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.34rem, 1.55vw, 1.72rem);
  line-height: 1.22;
  font-weight: 500;
}

.page-hero .section-subtitle {
  margin-top: 5px;
  font-size: 0.82rem;
  line-height: 1.48;
}

.search-panel {
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #d6e0e6;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, 1fr)) auto;
  gap: 8px;
}

.filter-form input,
.filter-form select {
  min-height: 34px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  outline: 0;
  font-size: 0.84rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: #5d8eae;
  box-shadow: 0 0 0 2px rgba(23, 99, 154, 0.12);
}

.filter-form .button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-form .button:hover {
  background: #155681;
}

.filter-form .button:active {
  transform: translateY(1px);
}

.page-hero + .section {
  padding-top: 8px;
}

.results-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.side-panel,
.results-panel {
  border: 1px solid #d6e0e6;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.side-panel {
  padding: 0;
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #fff;
}

.side-group {
  padding: 0 10px 10px;
  border-bottom: 1px solid #dfe6ea;
}

.side-group:last-child {
  border-bottom: 0;
}

.side-group h3 {
  min-height: 31px;
  display: flex;
  align-items: center;
  margin: 0 -10px 8px;
  padding: 0 10px;
  border-bottom: 1px solid #c9d9e3;
  background: #e8f0f5;
  color: #294b60;
  font-size: 0.79rem;
  font-weight: 500;
}

.side-group h3::before {
  content: "";
  width: 3px;
  height: 13px;
  margin-right: 7px;
  border-radius: 2px;
  background: #17639a;
}

.chip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 6px;
}

.chip-list a {
  min-height: 25px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-list a:hover {
  border-color: #d5e2e9;
  background: #f1f6f9;
  color: #174f73;
}

.results-top {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #c9d9e3;
  background: #e8f0f5;
  color: #294b60;
}

.results-top strong {
  font-size: 0.88rem;
  font-weight: 500;
}

.results-top .muted {
  color: #607681;
  font-size: 0.8rem;
}

.result-row {
  display: block;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #e2e8eb;
  background: #fff;
}

.result-row:nth-child(even) {
  background: #fbfcfc;
}

.result-row:hover {
  background: #f1f6f9;
}

.result-row[title]:hover .result-title {
  color: #174f73;
}

.result-row:focus-visible,
.chip-list a:focus-visible,
.filter-form .button:focus-visible,
.pagination-actions .button:focus-visible {
  outline: 2px solid rgba(23, 99, 154, 0.45);
  outline-offset: 2px;
}

.result-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.result-code {
  min-width: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-main .status {
  justify-self: end;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
}

.result-title {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.42;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.pagination-actions {
  display: flex;
  gap: 8px;
}

.pagination-actions .button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 980px) {
  .filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .results-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    border-top-width: 2px;
  }

  .header-inner {
    min-height: 54px;
  }

  .page-hero {
    padding-top: 18px;
  }

  .page-hero h1 {
    font-size: 1.2rem;
  }

  .search-panel {
    margin-top: 10px;
  }

  .filter-form {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .side-panel {
    display: none;
  }

  .results-top {
    min-height: 38px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 0 10px;
    justify-content: space-between;
  }

  .result-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
    min-height: 0;
    padding: 8px 0;
  }

  .result-row {
    min-height: 0;
    padding: 0 10px;
  }

  .result-code {
    flex-basis: auto;
    max-width: 100%;
    font-size: 0.84rem;
  }

  .result-main .status {
    justify-self: end;
  }

  .result-title {
    grid-column: 1 / -1;
    font-size: 0.84rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .pagination-actions {
    width: 100%;
  }

  .pagination-actions .button {
    flex: 1;
  }
}
