/* 並べ替え（テスト用。決まったらファイルごと削除） */
.ro-btn {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 1001;
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #3a3f4b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.ro-btn.on { background: var(--primary); }

.ro-tools {
  position: fixed;
  left: 12px;
  bottom: calc(60px + env(safe-area-inset-bottom));
  z-index: 1000;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}
.ro-tools[hidden] { display: none; }
.ro-tools button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.8rem;
}

.ro-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  padding: 4px 6px 4px 10px;
  border: 1px dashed var(--primary);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}
.ro-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-bar button {
  width: 40px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.9rem;
}
.ro-bar button:disabled { opacity: 0.3; }
.ro-bar.ro-off { display: none; }
