* { box-sizing: border-box; }

html, body, button, input, a {
  font-family: "Poppins", "Inter", Arial, sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f3f2;
  color: #171717;
}

.news-sync-header {
  padding: 22px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid #d4d0cd;
  background: #fff;
}

.news-sync-header-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-page-eyebrow {
  margin: 0 0 3px;
  color: #df0038;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
}

.site-page-title {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.08;
}

.site-page-store-name {
  margin: 6px 0 0;
  color: #6d6763;
  font-size: 12px;
}

.news-sync-back {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9c4c0;
  background: #fff;
  color: #171717;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.news-sync-shell {
  width: min(980px, calc(100% - 28px));
  margin: 22px auto 60px;
  display: grid;
  gap: 14px;
}

.news-sync-card {
  padding: 20px;
  border: 1px solid #d4d0cd;
  border-top: 3px solid #df0038;
  background: #fff;
}

.news-sync-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.news-sync-card-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-sync-step {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.news-sync-card h2 {
  margin: 0;
  font-size: 18px;
}

.news-sync-card > p {
  margin: 12px 0 0;
  color: #6d6763;
  font-size: 12px;
  line-height: 1.55;
}

.news-sync-state {
  color: #6d6763;
  font-size: 10px;
  font-weight: 700;
}

.news-sync-token-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.news-sync-token-row input {
  min-width: 0;
  height: 44px;
  padding: 0 11px;
  border: 1px solid #bbb6b2;
  background: #faf9f8;
  color: #171717;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.news-sync-token-row button,
.news-sync-actions button,
.news-sync-actions a {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bbb6b2;
  background: #fff;
  color: #171717;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.news-sync-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-sync-actions .news-sync-primary {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.news-sync-note {
  font-size: 10.5px !important;
}

html.nexus-dark-gray body {
  background: #242424;
  color: #f4f1ef;
}

html.nexus-dark-gray .news-sync-header,
html.nexus-dark-gray .news-sync-card,
html.nexus-dark-gray .news-sync-back,
html.nexus-dark-gray .news-sync-token-row button,
html.nexus-dark-gray .news-sync-actions button,
html.nexus-dark-gray .news-sync-actions a {
  border-color: #595552;
  background: #2d2d2d;
  color: #f4f1ef;
}

html.nexus-dark-gray .news-sync-card > p,
html.nexus-dark-gray .site-page-store-name,
html.nexus-dark-gray .news-sync-state {
  color: #bdb8b4;
}

html.nexus-dark-gray .news-sync-token-row input {
  border-color: #595552;
  background: #333231;
  color: #f4f1ef;
}

html.nexus-dark-gray .news-sync-actions .news-sync-primary,
html.nexus-dark-gray .news-sync-step {
  background: #f4f1ef;
  color: #171717;
}

@media (max-width: 620px) {
  .news-sync-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-sync-back {
    width: 100%;
  }

  .news-sync-card-heading {
    flex-direction: column;
  }

  .news-sync-token-row {
    grid-template-columns: 1fr;
  }

  .news-sync-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
