/* 云同步 UI —— 复用项目主题变量，浅/深色自适应 */

.btn-review.synced {
  border-color: #22c55e !important;
  color: #22c55e !important;
}
.btn-review.synced::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  vertical-align: middle;
}

.sy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.sy-overlay.active {
  display: flex;
  animation: syFade 0.2s ease;
}
@keyframes syFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sy-modal {
  position: relative;
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-card, #0c1430);
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
  border-radius: 20px;
  padding: 26px 24px 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  animation: syPop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes syPop {
  from { transform: translateY(14px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sy-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.sy-close:hover {
  background: var(--bg-hover, rgba(148, 163, 184, 0.12));
  color: var(--text-primary, #e2e8f0);
}

.sy-head { margin-bottom: 18px; padding-right: 30px; }
.sy-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #e2e8f0);
}
.sy-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

.sy-card {
  background: var(--bg-elevated, rgba(148, 163, 184, 0.06));
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.sy-card.sy-on { text-align: center; }

.sy-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  margin-bottom: 8px;
}
.sy-desc {
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.55;
  margin: 8px 0 12px;
}

.sy-code {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent, #6366f1);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  margin: 6px 0 14px;
  user-select: all;
}

.sy-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.sy-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
  background: var(--bg-hover, rgba(148, 163, 184, 0.1));
  color: var(--text-primary, #e2e8f0);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sy-btn:hover { transform: translateY(-1px); border-color: var(--accent, #6366f1); }
.sy-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.sy-primary {
  background: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
  color: #fff;
}
.sy-primary:hover { filter: brightness(1.08); }
.sy-block { display: block; width: 100%; }
.sy-danger {
  display: block;
  width: 100%;
  margin-top: 6px;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: transparent;
}
.sy-danger:hover { background: rgba(239, 68, 68, 0.1); border-color: #ef4444; }

.sy-status {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.sy-join { display: flex; gap: 8px; }
.sy-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
  background: var(--bg-card, rgba(2, 6, 23, 0.4));
  color: var(--text-primary, #e2e8f0);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: ui-monospace, Menlo, monospace;
}
.sy-input:focus { outline: none; border-color: var(--accent, #6366f1); }

.sy-or {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  margin: 4px 0 12px;
  position: relative;
}

.sy-tip {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  background: var(--bg-elevated, rgba(148, 163, 184, 0.06));
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.sy-tip b { color: var(--text-secondary, #cbd5e1); }
.sy-warn { color: #f59e0b; }
.sy-desc.sy-warn { color: #f59e0b; }
