.monday-sync {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
  border-color: #24506a;
  background:
    radial-gradient(circle at 88% 5%, rgba(49, 194, 223, 0.09), transparent 30%),
    #102a3b;
}

.monday-sync__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #244b61;
}

.monday-sync__intro h2,
.monday-sync__section-heading h3 {
  margin: 3px 0 6px;
  color: #f4fbff;
}

.monday-sync__intro p:not(.monday-sync__eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #91b7cb;
  line-height: 1.5;
}

.monday-sync__eyebrow {
  margin: 0;
  color: #6eaacb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.monday-sync__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.monday-sync__guardrails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #244b61;
  border-bottom: 1px solid #244b61;
}

.monday-sync__guardrails span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: #0b2130;
  color: #9fc1d2;
  font-size: 0.8rem;
}

.monday-sync__guardrails strong {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #153d51;
  color: #37c7e6;
}

.monday-sync__notice {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border: 1px solid #31596f;
  border-radius: 8px;
  background: #0a2130;
  color: #c4dce7;
}

.monday-sync__notice--success {
  border-color: #23765f;
  background: #0c382f;
  color: #75e0bd;
}

.monday-sync__notice--warning {
  border-color: #8b641c;
  background: #3a2b17;
  color: #ffd27d;
}

.monday-sync__notice--error {
  border-color: #a74450;
  background: #402129;
  color: #ff9aa6;
}

.monday-sync__empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 26px;
  color: #82a9bd;
  text-align: center;
}

.monday-sync__empty strong {
  color: #d9eaf2;
}

.monday-sync__empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #31596f;
  border-radius: 50%;
  color: #31c2df;
  font-size: 1.4rem;
}

.monday-sync__metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  padding: 18px 24px 10px;
}

.monday-sync__metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid #31596f;
  border-radius: 9px;
  background: #091f2e;
}

.monday-sync__metric span,
.monday-sync__metric small {
  display: block;
  color: #80abc1;
}

.monday-sync__metric strong {
  display: block;
  margin: 6px 0 4px;
  color: #f4fbff;
  font-size: clamp(1.12rem, 1.5vw, 1.55rem);
  line-height: 1.1;
  word-break: break-word;
}

.monday-sync__metric--primary {
  border-color: #28bbdc;
  background: #0b3545;
}

.monday-sync__metric--primary strong,
.monday-sync__metric--total strong {
  color: #50d4ed;
}

.monday-sync__metric--total {
  border-color: #32826d;
  background: #0b302b;
}

.monday-sync__metric--warning strong {
  color: #ffbd55;
}

.monday-sync__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 25px 15px;
  color: #7fa8bd;
  font-size: 0.78rem;
}

.monday-sync__validation,
.monday-sync__issues {
  margin: 0 24px 18px;
}

.monday-sync__validation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #28775f;
  border-radius: 8px;
  background: #0d382f;
  color: #a8d8c9;
}

.monday-sync__validation strong {
  color: #62dfb6;
}

.monday-sync__issues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.monday-sync__issue {
  padding: 13px 15px;
  border: 1px solid #31596f;
  border-radius: 8px;
  background: #0a2130;
}

.monday-sync__issue ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #b9d2de;
}

.monday-sync__issue--error {
  border-color: #97414d;
  background: #3a2027;
}

.monday-sync__issue--error strong {
  color: #ff8795;
}

.monday-sync__issue--warning {
  border-color: #795a1d;
  background: #322716;
}

.monday-sync__issue--warning strong {
  color: #ffc764;
}

.monday-sync__mapping-section {
  margin: 0 24px 18px;
  padding: 18px;
  border: 1px solid #31596f;
  border-radius: 10px;
  background: #0a2130;
}

.monday-sync__section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.monday-sync__section-heading > span {
  color: #789eb2;
  font-size: 0.76rem;
}

.monday-sync__mapping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.monday-sync__mapping > span {
  display: block;
  margin: 0 0 6px;
  color: #87b3c9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.monday-sync__mapping em {
  margin-left: 5px;
  color: #ffbd55;
  font-style: normal;
  font-size: 0.62rem;
}

.monday-sync__mapping select {
  width: 100%;
  min-height: 40px;
}

.monday-sync__optional {
  margin-top: 14px;
  border-top: 1px solid #244b61;
  padding-top: 12px;
}

.monday-sync__optional summary,
.monday-sync__sample summary {
  cursor: pointer;
  color: #44c8e4;
  font-weight: 700;
}

.monday-sync__optional[open] summary {
  margin-bottom: 12px;
}

.monday-sync__sample {
  margin: 0 24px 18px;
  padding: 15px 17px;
  border: 1px solid #31596f;
  border-radius: 9px;
  background: #091f2e;
}

.monday-sync__table-wrap {
  margin-top: 13px;
  overflow-x: auto;
}

.monday-sync__table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.monday-sync__table-wrap th,
.monday-sync__table-wrap td {
  padding: 9px 10px;
  border-bottom: 1px solid #244b61;
  color: #c6dce6;
  text-align: left;
  white-space: nowrap;
}

.monday-sync__table-wrap th {
  color: #73a8c2;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.monday-sync__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 24px;
  border-top: 1px solid #244b61;
  background: #0a2130;
}

.monday-sync__footer p {
  max-width: 870px;
  margin: 0;
  color: #85adbf;
  font-size: 0.79rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .monday-sync__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monday-sync__mapping-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .monday-sync__intro,
  .monday-sync__footer,
  .monday-sync__section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .monday-sync__actions {
    justify-content: stretch;
  }

  .monday-sync__actions .btn,
  .monday-sync__footer .btn {
    width: 100%;
  }

  .monday-sync__guardrails,
  .monday-sync__metrics,
  .monday-sync__mapping-grid {
    grid-template-columns: 1fr;
  }
}
