:root {
  --google-blue: #4285f4;
  --google-red: #db4437;
  --google-yellow: #f4b400;
  --google-green: #0f9d58;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --border: #dadce0;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --shadow-soft: 0 8px 28px rgba(60, 64, 67, 0.12);
  --radius-pill: 999px;
  --radius-large: 28px;
  --radius-medium: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface);
  color: var(--text-primary);
  font-family:
    Roboto,
    "Open Sans",
    Arial,
    sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 16px);
  grid-template-rows: repeat(2, 16px);
  gap: 5px;
  width: 45px;
  height: 45px;
  padding: 4px;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.12);
}

.brand-mark span {
  border-radius: 50%;
}

.brand-blue {
  background: var(--google-blue);
}

.brand-red {
  background: var(--google-red);
}

.brand-yellow {
  background: var(--google-yellow);
}

.brand-green {
  background: var(--google-green);
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

.app-header p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.search-form {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.08);
}

.search-form:focus-within {
  border-color: rgba(66, 133, 244, 0.65);
  box-shadow: 0 3px 14px rgba(66, 133, 244, 0.16);
}

select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  border-right: 1px solid #e8eaed;
  outline: 0;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  background: #f8fafd;
}

input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--text-primary);
  background: transparent;
  font-size: 16px;
}

input[type="search"]::placeholder {
  color: #80868b;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.filters label {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.filters input,
.filters select {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  outline: 0;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
}

.filters input:focus,
.filters select:focus {
  border-color: rgba(66, 133, 244, 0.65);
  box-shadow: 0 2px 10px rgba(66, 133, 244, 0.12);
}

.filter-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(66, 133, 244, 0.35);
  border-radius: var(--radius-pill);
  color: var(--google-blue);
  background: #f8fafd;
  font-weight: 500;
  white-space: nowrap;
}

.filter-button:hover {
  background: #eef4ff;
}

.search-form button,
.secondary-button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  background: var(--google-blue);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.search-form button:hover,
.secondary-button:hover {
  background: #3367d6;
  box-shadow: 0 3px 10px rgba(66, 133, 244, 0.3);
}

.search-form button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.secondary-button {
  background: var(--google-green);
  white-space: nowrap;
}

.secondary-button:hover {
  background: #0b8043;
}

.loading-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  margin: 4px 0 14px;
  background: var(--surface-soft);
}

.loading-bar span {
  animation: slide 1.05s ease-in-out infinite;
}

.bar-blue {
  background: var(--google-blue);
}

.bar-red {
  background: var(--google-red);
  animation-delay: 90ms;
}

.bar-yellow {
  background: var(--google-yellow);
  animation-delay: 180ms;
}

.bar-green {
  background: var(--google-green);
  animation-delay: 270ms;
}

@keyframes slide {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.provider-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 14px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: #f1f3f4;
  font-size: 13px;
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa0a6;
}

.status-chip.ok::before {
  background: var(--google-green);
}

.status-chip.error::before {
  background: var(--google-red);
}

.status-chip.skipped::before {
  background: var(--google-yellow);
}

.table-shell {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

tbody td {
  max-width: 280px;
  padding: 17px 18px;
  border-bottom: 1px solid #eef0f1;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
  vertical-align: top;
}

tbody tr:hover td {
  background: #f8fafd;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.muted {
  color: var(--text-secondary);
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 32px;
  color: var(--text-secondary);
  font-size: 15px;
}

.empty-state[hidden] {
  display: none;
}

.table-actions {
  display: flex;
  justify-content: center;
  padding: 18px 0 0;
}

.load-more-button {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--google-blue);
  background: var(--surface);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.load-more-button:hover {
  background: #f8fafd;
  border-color: rgba(66, 133, 244, 0.45);
}

.load-more-button[hidden] {
  display: none;
}

.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;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 24px 0 36px;
  }

  .app-header {
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
  }

  .brand-mark {
    transform: scale(0.9);
    transform-origin: top left;
  }

  h1 {
    font-size: 25px;
  }

  .app-header p {
    font-size: 14px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr;
    border-radius: 26px;
    padding: 8px;
  }

  select {
    border-right: 0;
  }

  .search-form button,
  .secondary-button {
    width: 100%;
  }

  .table-shell {
    border-radius: 22px;
  }
}
