.sync-status {
  margin-top: 20px;
  margin-bottom: 42px;
  padding: 26px 28px;
  border: 1px solid #ffffff24;
  background: #ffffff08;
}

.sync-status-head,
.sync-status-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #aebbb5;
  font-size: 12px;
}

.sync-status-head strong { color: #fff; font-size: 14px; }
.sync-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #72ca91;
  box-shadow: 0 0 0 5px #72ca9120;
}
.sync-progress { height: 5px; margin: 18px 0 22px; overflow: hidden; background: #ffffff12; }
.sync-progress i { display: block; height: 100%; background: var(--gold); }
.sync-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #ffffff18; }
.sync-metrics div { display: flex; flex-direction: column; padding: 18px; background: #18352b; }
.sync-metrics b { color: #e6c99d; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.sync-metrics span { margin-top: 6px; color: #aebbb5; font-size: 11px; }
.sync-status-foot { align-items: flex-start; margin-top: 18px; line-height: 1.5; }
.sync-status-foot span:last-child { text-align: right; }
.sync-status-foot b { color: #e6c99d; }

@media (max-width: 760px) {
  .sync-status { padding: 20px 16px; }
  .sync-status-head, .sync-status-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sync-status-foot span:last-child { text-align: left; }
  .sync-metrics { grid-template-columns: 1fr 1fr; }
  .sync-metrics b { font-size: 25px; }
}

/* «Шежіре толықтырылуда»: сан + кітап жіберуге шақыру */
.sync-invite { display: grid; grid-template-columns: minmax(180px, .6fr) 2fr; gap: 1px; margin-top: 18px; background: #ffffff18; }
.sync-invite > div { padding: 22px; background: #18352b; }
.sync-total { display: flex; flex-direction: column; justify-content: center; }
.sync-total b { color: #e6c99d; font-family: Georgia, serif; font-size: 40px; font-weight: 400; white-space: nowrap; }
.sync-total span { margin-top: 6px; color: #aebbb5; font-size: 12px; }
.sync-invite-text p { margin: 0 0 18px; color: #d6ded9; font-size: 15px; line-height: 1.6; }
.sync-invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.sync-invite-actions a { color: #e6c99d; font-size: 13px; text-decoration: none; }
.sync-invite-actions a:hover { text-decoration: underline; }
.sync-invite-actions .sync-invite-primary { padding: 13px 22px; background: var(--gold); color: #14251e; }
.sync-invite-actions .sync-invite-primary:hover { text-decoration: none; filter: brightness(1.08); }
.sync-invite-primary b { margin-left: 12px; }
.sync-latest { margin-top: 24px; }
.sync-latest h3 { margin: 0 0 12px; font: 21px Georgia, serif; }
.sync-latest ol { list-style: none; margin: 0; padding: 0; }
.sync-latest li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px solid #ffffff18; }
.sync-latest li a { min-width: 0; overflow: hidden; color: #e6c99d; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sync-latest li a:hover { text-decoration: underline; }
.sync-latest li span { flex-shrink: 0; color: #91a49a; font-size: 12px; }
.sync-latest-all { display: inline-block; margin-top: 14px; color: #bd9660; font-size: 13px; text-decoration: none; }
.upload-hint { color: #91a49a; font-size: 13px; }
.upload-hint a, .upload-sent a:not(.primary) { color: #e6c99d; }
.upload-sent { padding: 34px; border: 1px solid #ffffff24; background: #ffffff08; }
.upload-sent h2 { margin-top: 0; font-family: Georgia, serif; font-weight: 400; }
.upload-sent .primary { display: inline-block; margin-right: 18px; padding: 13px 22px; text-decoration: none; }

@media (max-width: 760px) {
  .sync-invite { grid-template-columns: 1fr; }
  .sync-total b { font-size: 32px; }
  .sync-latest li { flex-direction: column; gap: 4px; }
  .sync-latest li a { white-space: normal; }
}

.sync-latest li .sync-latest-title { min-width: 0; overflow: hidden; color: #e6c99d; text-overflow: ellipsis; white-space: nowrap; }
.sync-latest li em { color: #ffffff99; font-style: normal; }
